\"\" \"\" \"\"
Go backward to Lock Variables
Go up to Top
Go forward to Shared Memory Synchronization
RISC-Linz logo

Shared Memory Synchronization

Semaphores (Dijkstra)
Semaphore s = INIT(1)
P1: loop     P2: loop
      P(s)         P(s)
      C1           C2
      V(s)         V(s)
Typically implemented by locks!
Author: Wolfgang Schreiner
Last modification: November 15, 1996