Classic Problem:Producer-Consumers with Buffer
Buffer accessed by both producer and consumers
- critical section for update of contents of buffer
- consumer must wait if buffer is empty
Use monitor to control access to buffer
- Following uses adaptation of buffer (cubbyhole) solution given in Sun documentation