CS FundamentalsHardGATE CS

Which property distinguishes a mutex from a binary semaphore in most implementations?

  1. A. A mutex has an owner: only the thread that locked it may unlock it, which enables priority inheritance and error checks
  2. B. A mutex can count above 1
  3. C. A binary semaphore cannot be used for mutual exclusion
  4. D. A mutex is always implemented with busy waiting

Correct answer: A. A mutex has an owner: only the thread that locked it may unlock it, which enables priority inheritance and error checks

A semaphore has no notion of ownership: any thread may signal it, which suits signalling between threads. Ownership lets a mutex detect misuse and boost the owner's priority.

More Operating Systems questions

Exams that ask this topic