Description: • a buffer of size 3, initially empty • 2 x producers- random wait time, add data to the buffer,- if the buffer is full, waiting for consumers to get data and then add- repeated six times • 3 Consumer- random wait some time to read data from the buffer- if the buffer is empty, add data and then wait for the producer to read- repeated four times Description: • Display and read the data every time you add a time and buffer status • producers and consumers to use process simulation.
To Search:
File list (Check if you may need any files):
Producers_consumers\Linux\consumer.c
...................\.....\head.h
...................\.....\linux.vsdx
...................\.....\pc.c
...................\.....\producer.c
...................\Producers_consumers.docx
...................\修改说明.docx
...................\Linux
Producers_consumers