Binary semaphores - Example - Operating System
Q. The program given below consists of three concurrent processes P0, P1, P2 and three binary semaphores with the values S0 = 1, S1 = 0, S2 = 0.
How many times the process P0 will print ‘0’ ?- Published on 27 Aug 15a. At least thrice
b. Exactly thrice
c. At least twice
d. Exactly twice
ANSWER: At least twice