Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Operating Systems Concurrency and Synchronization Operating System Solution
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