F. Boussinot EMP-CMA/INRIA - MIMOSA Project 2004 route des Lucioles - BP 93 F-06902 Sophia Antipolis, Cedex Frederic.Boussinot@sophia.inria.fr |
1. Introduction 2. Threads 3. Fair Thread Framework 4. Java FairThreads API 5. Examples 6. Links with Reactive Programming 7. Conclusion |
Fair threads are cooperative threads run by a fair scheduler which gives them equal access to the processor. Fair threads can communicate using broadcast events, and are fully portable as their semantics does not depends on the executing platform. Fine control over fair threads execution is possible allowing the programming of specific user-defined scheduling strategies. This paper presents fair threads in the context of the Java language, and describes the API to use them. Link with reactive programming, which is at the basis of the fair threads proposal, is also considered.
[3] Reactive Programming Web Site. [6] Arnold, Ken and Goslin, James -- The Java Programming Language -- Addison-Wesley, 1996. [11] Hollub, A. -- Taming Java Threads -- Apress, 2000. [12] Nichols, B. and Buttlar, D. and Proulx Farrell J. -- Pthreads Programming -- O'Reilly, 1996. [13] Reppy, John H. -- Concurrent Programming in ML -- Cambridge University Press, 1999. |