Mutual Exclusion
Explains how mutual exclusion prevents race conditions around shared resources and summarizes the requirements of correct synchronization.
// TAG
Posts in this collection, ordered newest first.
Explains how mutual exclusion prevents race conditions around shared resources and summarizes the requirements of correct synchronization.
Explains how race conditions arise in critical sections and how locks, mutexes, semaphores, and spinlocks protect them.
Explains how busy waiting consumes CPU while waiting for a lock, along with its benefits, costs, and appropriate use cases.
Compares spinlocks and mutexes by waiting behavior, context-switch cost, and the conditions under which each is appropriate.