Producer Consumer
|
producerConsumer | |
AbstractBuffer | Abstract class implementing the common parts of BoundedBuffer and UnboundedBuffer |
BoundedBuffer | BoundedBuffer has a limited capacity. Trying to Add an element to a full buffer will make the calling thread wait. This class is thread safe. |
Consumer | |
Copier | |
Duplicator | Duplicator is worker that takes from one buffer, and copies the element to TWO outgoing buffers |
IBuffer | |
MiddleMan | MiddleMan is a worker that takes from one buffer and adds into another buffer- |
Producer | Produces items and Adds them into the specified buffer |
Program | |
UnboundedBuffer | A buffer with unlimited capacity. |