Hands-on route
Theory, experiments & review
INTERACTIVE SYSTEMS LAB / 01
Turn two abstract letters into visible state changes.
S = S − 1
Decrement first. If the new value < 0, block the caller.
P(S) { S--; if (S < 0) block(); }
Enable JavaScript to use the interactive presentation.