Introduction - If you have any usage issues, please Google them yourself
A buffer of size 3, is initially empty
Two producers
- Wait for a random time, to add the data in the buffer,
- If the buffer is full, and then wait for the consumers to get data added
- Repeat 6 times
3 consumers
- Wait for a random time, read data from the buffer
- If the buffer is empty, waiting for producers to add data can then be read
- Repeated four times
Description:
Displayed every time you add and read data time and buffer status
Producers and consumers with process simulation.