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

  1. A.

    The above implementation is correct

  2. B.

    The above implementation is incorrect

  3. C.

    Cannot say, the implementation depends on the size of the buffer

  4. D.

    None of these

Attempted by 193 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…