Introduction - If you have any usage issues, please Google them yourself
The producer, the consumer thread, producers have found that the buffer is full, wake up the consumers, their sleep. Consumers find the buffer is empty, awaken the producers, their sleep.