Bounded Buffer problem: There is a set of buffers shared by producer and…
Bounded Buffer problem: There is a set of buffers shared by producer and consumer processes. Producer inserts resources into the buffer, and consumer removes resources from the buffer. A producer goes to sleep if the buffer is full, and a consumer goes to sleep if the buffer is empty. Now, consider the following implementation:

Choose the appropriate answer
- A.
The above implementation is correct
- B.
The above implementation is incorrect
- C.
Cannot say, the implementation depends on the size of the buffer
- D.
None of these
Attempted by 193 students.
Sign up free to check your answer
Sign up freeLoading lesson…

