Intermediate
Operating Systems
Q61 / 100
What is the difference between a spinlock and a mutex?
Correct! Well done.
Incorrect.
The correct answer is A) Spinlocks use busy-waiting; mutexes block and yield the CPU
A
Correct Answer
Spinlocks use busy-waiting; mutexes block and yield the CPU
Explanation
Spinlocks busy-wait (spin) in a loop until acquired — efficient for very short waits on multi-core but wasteful for long waits. Mutexes block the thread, yielding the CPU.
Progress
61/100