Semaphores
< await (s > 0) s = s - 1; >
< s = s + 1; >
1
0
Interleavings
Class exercises
0 <= s1+s2 <= 1