Producer and consumer
Answers
Answered by
0
Answer:
I am not cleared by your question
Answered by
0
- The producer–consumer problem (also known as the bounded-buffer problem) is a classic example of a multi-process synchronization problem.
- Edsger W. Dijkstra proposed the first version of the problem in 1965 in an unpublished manuscript with an unbounded buffer, which was later published in 1972 with a bounded buffer.
- There are two cyclic processes, a producer and a consumer, in the first form of the issue, who share a shared, fixed-size buffer that serves as a queue.
- The data is generated and written into the buffer by the producer on a regular basis.
- The consumer reads the data from the buffer several times, deleting it in the process, and then uses it in some fashion.
Similar questions