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.
Buffer.java
BufferImpl.java
Producer.java
Consumer.java
BufferCanvas.java
BoundedBuffer.java