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.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Process Synchronization question
What does a ticket lock add over a simple test-and-set spinlock?
It works without atomic instructions
It lets several threads hold the lock at once
Sign up free to see the answer and a step-by-step explanation.
First-come, first-served fairness: each thread takes a ticket number and waits for its turn
It never spins