Semaphores and Monitors
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
647 views • 30 slides