2 2 votes Consider a system with $4$ processes that share $16$ instances of the same resource type. Each process can request a maximum of $K$ instances. Resources can be requested and released only one at a time. The largest value of $K$ that will always avoid deadlock is: Operating System goclasses operating-system goclasses-cs-dpp goclasses-cs-dpp-day-158 goclasses-os-practice-questions numerical-answers + – GO Classes 290 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
1 1 vote The maximum number of resources that can be held by $N$ processes without causing a deadlock is given by the formula:$$\text { Max Held Resources }<R$$$$\mathbf{4 \times(K-1) + 1 \leq 16}$$$$\begin{aligned}& K-1 \leq \frac{15}{4} \\\\& K-1 \leq 3.75\end{aligned}$$$$K \leq 4.75$$Since $K$ must be an integer (number of resource instances), the largest integer value of $K$ that satisfies this condition is $\mathbf{4}$. GO Classes answered Dec 16, 2025 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes 4 JAY_THAKAR answered Jan 12 JAY_THAKAR comment Share Follow 0 reply Please log in or register to add a comment.