Slide 6
Slide 6 text
The Producer's sole function is to insert data into the data-area, it is not
allowed to remove any data from the area. Similarly, for the Consumer to be
able to remove information from the data area, there must be information there
in the first place. Once again, the sole function of the Consumer is to remove
data from the data area.
http://www.dcs.ed.ac.uk/home/adamd/essays/ex1.html
“This problem is one ... well-known problems in concurrent programming:
a finite-size buffer and two classes of threads, producers and consumers,
put items into the buffer (producers) and take items out of the buffer
(consumers).”
https://docs.oracle.com/cd/E19455-01/806-5257/sync-31/index.html
Multi-process synchronization