Description: Producers and consumers ◦ a buffer of size 3, initially empty ◦ 2 producers' - random waiting time, add data to the buffer,- if the buffer is full, waiting for consumers to get data and then add- repeated six times ◦ 3 个 consumers- random waiting time, the data is read from the buffer- if the buffer is empty, waiting for the producers to add data after the read- repeated four times Description: ◦ display each time you add and read Take the time and the data buffer status with the producers and consumers of simulation processes.
To Search:
File list (Check if you may need any files):
windows3.c