Consider a counting semaphore S. The operation P(S) performs the operation --S and operation V(S) perform the operation ++V. During a program execution, 21P and 13V operation is performed in same order. What is the smallest initial value of S for which at most 7 processes are in blocked state?

1
-1
2
0
3
1
4
2

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation