Professional KnowledgeHardIBPS SO IT

Producer-consumer with a bounded buffer of N slots uses semaphores. Initial values are:

  1. A. empty=0, full=N, mutex=1
  2. B. empty=N, full=0, mutex=1
  3. C. empty=N, full=N, mutex=0
  4. D. empty=1, full=0, mutex=N

Correct answer: B. empty=N, full=0, mutex=1

empty counts free slots (N), full counts items (0), mutex guards the buffer.

More IT Officer Professional Knowledge (IBPS SO) questions

Exams that ask this topic