Package threadExamples

Class Summary
BatonMessageBox<V> Implements a message box which can hold only a single message at a time.
Channel<V,W> A pair of Queues, representing a two-way channel between Threads.
Counter This class illustrates the use of a Channel (a pair of Queues) to provide two-way communication between Threads.
Main This program demonstrates three ways to keep Threads in sync.
Producer Once started, a Producer will unilaterally start producing numbers (using the increment with which it is started).
Queue<V> A synchronized queue.
SingleMessageBox<V> Implements a message box which can hold only a single message at a time.