Semaphore released. One thread resumed, count stillO.
Waitfor semaphore. Count 0. Thread suspended.
Semaphore released. One thread resumed, count stillO.
Semaphore released. Count incremented to 1
C ount incremente d to 2
C ount incremente d to 3
Waitfor semaphore. Decrement count from3 to 2.
Waitfor semaphore. Decrement count from2 to 1.
Waitfor semaphore. Decrement count from 1 to 0.
Waitfor semaphore. Count0. Thread suspended.