🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Process Synchronization: all 10 questions

Quiz: Process Synchronization · Question 5 of 10

Key difference between a mutex and a semaphore?

Key difference between a mutex and a semaphore?

  1. A.There is no difference
  2. B.A mutex has an owner that must release it; a semaphore is a counter any thread can signal
  3. C.A semaphore can only be 0 or 1
  4. D.A mutex can manage many resources
Answer & explanation

Correct answer: A mutex has an owner that must release it; a semaphore is a counter any thread can signal

Ownership and counting are the main differences.

Can you get the rest right without peeking?

Take the timed Quiz: Process Synchronization quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →