retagged by
910 views
2 votes
2 votes
Consider a non-negative counting semaphore S. During an execution, 16P (wait) operations, and 4V (signal) operations are issued in some order. The largest initial value of S for which at least three up operations will remain blocked is ___________

 

Can someone explain me the solution
retagged by

1 Answer

0 votes
0 votes
Assume Semaphore value as S

so according to question S-16(down operation) + 4(up operation)  <=  -3(here  – sign denotes number of process waiting in ready queue)

thus  S<=9   hence largest value of S is 9.

Related questions

1 votes
1 votes
1 answer
2
Rahul_Rathod_ asked Dec 12, 2018
1,570 views
a) s1-wait(p) , s2-wait(q) , s3-wait(q) , s4-wait(p)b) s1-wait(p) , s2-wait(q) , s3-wait(p) , s4-wait(q)c) s1-wait(q) , s2-wait(p) , s3-wait(p) , s4-wait(q)d) none of...