previous up next
Go backward to Lock Variables
Go up to Top
Go forward to Barriers
RISC-Linz logo

Semaphores

Edgar 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: October 27, 1997

previous up next