Computer Science EngineeringHard

The classic bounded-buffer producer-consumer solution with semaphores uses how many semaphores?

  1. A. 1
  2. B. 2
  3. C. 4
  4. D. 3

Correct answer: D. 3

It uses mutex for exclusion plus empty and full counting semaphores.

More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions

Exams that ask this topic