🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Semaphores and Classic Problems: all 9 questions

Quiz: Semaphores and Classic Problems · Question 1 of 9

In the textbook implementation, a semaphore's value is −3. What does that mean?

In the textbook implementation, a semaphore's value is −3. What does that mean?

  1. A.The semaphore is broken
  2. B.Three processes are blocked in its queue
  3. C.Three instances are free
  4. D.The next signal will set it to 3
Answer & explanation

Correct answer: Three processes are blocked in its queue

Each blocked process made the value go one below zero.

Can you get the rest right without peeking?

Take the timed Quiz: Semaphores and Classic Problems quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →