Description: Two threads of execution within the same process address space. Producer thread production items, then items placed in an empty buffer for the consumer thread consumption. Consumer thread from the buffer items, and then release the buffer. When the producer thread producing goods, if there is no empty buffer is available, then the producer thread must wait for the consumer thread to release an empty buffer. When the consumer thread consumer goods, if not a full buffer, then the consumer thread will be blocked until the new items have been produced.
To Search:
File list (Check if you may need any files):
代码.txt