Introduction - If you have any usage issues, please Google them yourself
Achieved with multi-threaded " producer- consumer problems" of the operational requirements of the design and implementation of a process that has a producer thread and a consumer thread, which use different buffer N (N is a custom to determine values, for example, N = 32). The amount you need to use the following signals: a mutex to prevent the producer and consumer threads simultaneously thread the buffer list a signal to the amount produced when the producer thread can use an item when sent to the consumer thread signal a semaphore, the consumer thread to release an empty buffer when the producer thread can use it to send a signal