300 likes | 647 Views
2. Mutual Exclusion with Swap. Initially, s == false;entry () {bool spin = true;Swap(spin, s);while (spin) Swap(spin, s);}exit() {s = false;}. 3. Semaphores (Dijkstra). Synchronization tool that does not require busy waiting.Semaphore is an object contains a (private) integer value
E N D