wait(S)
wait(S) : S.value = S.value -1;
if S.value < 0
add this process P to S’s queue
block this process.
Initially S is 1
What does the value of S at anytime tell you?
Previous slide
Next slide
Back to first slide
View graphic version