Answer
Producer adds data; consumer removes it.
Requires thread coordination and shared buffers.
Uses wait(), notify(), or BlockingQueue.
Requires thread coordination and shared buffers.
Uses wait(), notify(), or BlockingQueue.