Introduction - If you have any usage issues, please Google them yourself
The experimental design in the same process address space implementation of the seven threads. Three producers, four consumer threads thread. Producer thread producing items, then items placed in an empty buffer for the consumer thread consumption. Consumer thread to get items from the buffer, and then release the buffer. Producer thread producing items, if not empty buffer is available, the producer thread must wait for the release of a consumer thread empty buffer consumer thread consumer goods, the absence of the buffer is full, the consumer thread will be blocked until the new items were produced.