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

ISRO Scientist/Engineer SC · 2023 · Computer Science · Part A · Discipline

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 894 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…