Introduction - If you have any usage issues, please Google them yourself
Achieved by creating a thread producers, consumers mutually exclusive operation of the buffer. Settlement process with the semaphore mechanism (thread) synchronization and mutual exclusion issues. Buffer size is 31, the buffer is full, do not allow producers to production data, the buffer space is not allowed consumer spending data. Program has been run down, until hit Enter to stop.