Gate CS-2010 Question Paper With Solutions

Q. 42 The following program consists of 3 concurrent precesses and 3 binary semaphores.
The semaphores are initialized as S0 = 1,S1 = 0,S2 = 0
Gate CS-2010 Question Paper With Solutions
How many times will precess P0 print ‘0’ ?

(A) At least twice

(B) Exactly twice

(C) Exactly thrice

(D) Exactly once

Answer: (A)

Explanation:

Gate CS-2010 Question Paper With Solutions

Learn More:   Gate EC-2008 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here