In a producer-consumer scenario also known as Bounded-Buffer Problem, what…

ISRO Scientist/Engineer SC 2023

In a producer-consumer scenario also known as Bounded-Buffer Problem, what would be the most appropriate synchronization primitive to ensure that the consumer waits when the buffer is empty?

  1. A.

    Spinlock

  2. B.

    Mutex lock

  3. C.

    Semaphore

  4. D.

    Monitors

Attempted by 1053 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…