Topics / Operating System Concepts / Q56
Why can spinlocks be inefficient in user space?
A spinning thread wastes CPU cycles and may wait while the lock owner is descheduled. They can still be useful for very short critical sections.
A spinning thread wastes CPU cycles and may wait while the lock owner is descheduled. They can still be useful for very short critical sections.