Mutual exclusion
The property that only one thread at a time may access a critical resource or code section.
Mutual exclusion is the most fundamental principle in parallel programming—without it, shared memory is meaningless. Classic mechanisms are mutexes, semaphores, and monitor objects. The problem is that mutual exclusion can lead to deadlock if multiple threads lock each other in a wait cycle, or starvation if locking is unfair. Lock-free algorithms try to avoid it entirely through atomic operations and careful ordering. Achieving both correctness and performance under mutual exclusion remains a core challenge.