Examples corresponding to those in C.A.R. Hoare, "Communicating Sequential Processes" (CACM 21:8 August 1978). This paper is the precursor to his book of the same title, which can be obtained at http://www.usingcsp.com/
section 3 of the paper, "Coroutines"
section 4 of the paper, "Subroutines"
section 5 of the paper, "Monitors and Scheduling"
section 6 of the paper, "Miscellaneous"
Clone this repo into a convenient location and
cd into it.
Then open a repl, and at the prompt, type
and run any of the test functions in the corresponding .clj file.
But mainly, read the source. Comments, corrections, criticisms are welcome.
Copyright © 2013 Alan Shaw
Distributed under the Eclipse Public License, the same as Clojure.