Question 36
In Dijkstra's Semaphore definition, what happens when a process calls the wait(S) or P(S) operation on a counting semaphore whose current value S is 0?
Option A is correct. The wait(S) operation decrements S. If S becomes negative or zero (depending on implementation), the calling process is blocked and added to the semaphore queue until another process calls signal(S).