← 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?
- A.There is no difference
- B.A mutex has an owner that must release it; a semaphore is a counter any thread can signal
- C.A semaphore can only be 0 or 1
- 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 →