Ornamental Garden - Message Passing (Choice)

In this example, the Ornamental Garden is implememented using message passing. The East and West Turnstile threads signal the Count thread when a person passes through the turnstile. The Count thread waits for a message from either West or East using the Select class which implements non-deterministic choice.

Unable to load applet

View Source

Channel Source

Demo List