🎙 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 9 of 9

What is the main problem with a busy-waiting (spinlock) wait()?

What is the main problem with a busy-waiting (spinlock) wait()?

  1. A.It never lets any process in
  2. B.A waiting process keeps using the CPU while doing nothing useful
  3. C.It breaks mutual exclusion
  4. D.It only works with counting semaphores
Answer & explanation

Correct answer: A waiting process keeps using the CPU while doing nothing useful

A blocked queue lets the OS run other work instead.

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 →