Bounded Buffer Demonstration
The program uses a bounded buffer
monitor into which the Producer thread puts characters and from
which the Consumer thread gets characters. The Consumer runs
slightly faster than the Producer, so start the Producer first
and wait until a few buffer slots are filled before starting the
Consumer.
Last modified: 16:04, 17-Feb-2005