Description: Producers and consumers (15 points) ◦ a buffer of size 3, initially empty ◦ 2 producers - random waiting time, add data to the buffer,- if the buffer is full, wait consumer removed 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 times added time and read data buffer and the state with the producers and consumers of simulation processes.
To Search:
File list (Check if you may need any files):
linux.c