Question OS-SYNC-0078
HardWhat does a ticket lock add over a simple test-and-set spinlock?
- A.
It works without atomic instructions
- B.
It lets several threads hold the lock at once
- C.
First-come, first-served fairness: each thread takes a ticket number and waits for its turn
- D.
It never spins
Sign up free to see the answer and a step-by-step explanation.