23 votes 23 votes Consider a system having $m$ resources of the same type. These resources are shared by $3$ processes $A, B$, and $C$ which have peak demands of $3, 4$, and $6$ respectively. For what value of $m$ deadlock will not occur? $7$ $9$ $10$ $13$ $15$ Operating System gate1993 operating-system resource-allocation normal ugcnetcse-dec2012-paper3 multiple-selects + – Kathleen asked Sep 29, 2014 • recategorized Apr 22, 2021 by Lakshman Bhaiya Kathleen 26.7k views answer comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments ankit3009 commented Dec 12, 2021 reply Follow Share Give the maximum possible resources to each of the processes such that deadlock will not occur if you add one more resource to any of the available processes. So, peak demand is 3,4,6. We will get 2,3,5, now adding a single resource to any of the processes will surely be deadlock-free. So, our result would be 2 +3+5+1 = 11. 11 resources would be sufficient. So, options D and E both are correct. 0 votes 0 votes Reigning Monarch commented Mar 14, 2023 reply Follow Share let's subtract one from each peak demand and add them and add the total obtained to 1 (3-1)+(4-1)+(6-1) + 1<= m 2 + 3 + 5 + 1 <= m m >= 11 Therefore, m = 13 or 15 0 votes 0 votes Akash 15 commented Dec 30, 2023 reply Follow Share In worst case, $2+3+5=10$ will lead to deadlock situation. if $m \geq 11$ then deadlock will not occur. Ans should be $(D),(E)$. But minimum value will be $11$. 0 votes 0 votes Please log in or register to add a comment.
3 votes 3 votes Condition for deadlock free R >= Sum(p×(n-1))+1 Here R= total no. Of resources n= Max demand of resources for each process p m >= ([1×(3-1)]+[1×(4-1)]+[1×(6-1)]) +1 m>=(2+3+5)+1 m>=11 : for deadlock free So, answer should be 13,15 shivam001 answered Aug 18, 2019 shivam001 comment Share Follow See all 0 reply Please log in or register to add a comment.