3 3 votes A system has $4$ processes $(P_1$ to $P_4)$ and $10$ instances of a single resource type $R$. Each process requires a maximum of $m$ instances to complete. What is the MAXIMUM value of $m$ such that the system is guaranteed to be deadlock-free, regardless of the order in which processes request and release resources? Operating System goclasses operating-system goclasses-cs-dpp goclasses-cs-dpp-day-208 goclasses-os-practice-questions numerical-answers + – GO Classes 352 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
2 2 votes \begin{aligned} &\text {To ensure a system is guaranteed to be deadlock-free, the total resources } R \text { must satisfy: }\\\\ &R \geq \sum\left(\text { Max_Need }_i-1\right)+1\\\\ & 10 \geq 4(m-1)+1 \\\\ & 10 \geq 4 m-4+1 \\\\ & 10 \geq 4 m-3 \\\\ & 13 \geq 4 m \\\\ & m \leq 3.25 \end{aligned} $\text { Since } m \text { must be an integer, the maximum value is } 3 \text {. }$ GO Classes answered Feb 28 GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes 4(m−1)+1≤10m<=3.25m=3 VIPIN_CHANDRA answered Feb 28 1 flag: ✌ Duplicate (chidambareswar23) VIPIN_CHANDRA comment Share Follow 0 reply Please log in or register to add a comment.