Introduction - If you have any usage issues, please Google them yourself
Design Objective: To study the mechanism and process of Linux semaphores to achieve producer-consumer problem of concurrency control. Description: bounded buffer storage units are equipped with 20, bounded buffer can be used to achieve the array, the contents of the buffer Custom. Design requirements: (1) Each producer and consumer of the bounded buffer operations immediately after the show the entire contents of a bounded buffer, the current pointer position and the producer/consumer process identifier (2) Producer and consumers have at least two or more (3) A number of producers or consumers should have to share operation of the buffer function of the code (note the mutual exclusion and synchronization).