Treffer: Communicating Java Threads
Weitere Informationen
The incorporation of multithreading in Java may be considered a significant addition to the Java language, because it provides rudimentary facilities for concurrent programming. This paper describes the realisation of a systematic design method for concurrent programming in Java based on the CSP paradigm. CSP requires the availability of a 'channel' class and the addition of constructs for sequential, parallel and alternative processes. The channel class and the constructs have been implemented in Java in compliance with the definitions in CSP. The use of the channel class and the additional constructs are illustrated in an application. The complete source code is available at: ftp://ftp.rt.el.utwente.nl/pub/java/sourcecode/ 1 Introduction The programming language Java has multithreading capabilities for concurrent programming. To provide synchronization between asynchronously running threads, the Java language and runtime system uses monitors which are outlined in "Monitors: An Ope.