Question OS-SYNC-0079
HardA thread busy-waits on a spinlock held by another thread on the same single-core CPU. What is the problem?
- A.
Nothing; it is efficient
- B.
The CPU speeds up
- 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
A thread busy-waits on a spinlock held by another thread on the same single-core CPU. What is the problem?
Nothing; it is efficient
The CPU speeds up
Sign up free to see the answer and a step-by-step explanation.
The lock is released automatically
It wastes its whole time slice, since the lock holder can't run until it is pre-empted