3 3 votes Consider a NON-NEGATIVE COUNTING SEMAPHORE $S$. The operation $P(S)$ (wait) attempts to decrement $S$, and the operation $V(S)$ (signal) increments $S$. A process executing a $P(S)$ operation will BLOCK if the current value of $S$ is $0$ .During a specific execution sequence, $\mathbf{35}$ $P(S)$ OPERATIONS and $\mathbf{18}$ $V(S)$ OPERATIONS are issued in an arbitrary order. What is the LARGEST INITIAL VALUE of $S$ for which at least THREE $P(S)$ operations will remain blocked at the end of the sequence?$13$ $14$ $15$ $16$ Operating System goclasses operating-system goclasses-cs-dpp goclasses-cs-dpp-day-170 goclasses-os-practice-questions + – GO Classes 365 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Total $P(S)$ issued $=35$. Total $V(S)$ issued $=18$. Let $I$ be the initial value of the semaphore. Total potential successful $P(S)$ operations $=I+18$. Number Blocked $=$ Total $P(S)-($ Initial $S+$ Total $V(S))$ $3 \leq 35-(I+18)$ $I \leq 14$ GO Classes answered Jan 2 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes 14 JAY_THAKAR answered Jan 9 1 flag: ✌ Low quality (antisocial_2005) JAY_THAKAR comment Share Follow 0 reply Please log in or register to add a comment.