6 6 votes Consider a system having $m$ resources of the same type. These resources are shared by $3$ processes $A, B, C,$ which have peak time demands of $3, 4, 6$ respectively. The minimum value of $m$ that ensures that deadlock will never occur is: $11$ $12$ $13$ $14$ Operating System isro2018 deadlock-prevention-avoidance-detection operating-system + – Arjun 9.1k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Akshay Koli 4 commented Apr 22, 2018 reply Follow flag option A is correct m=11. 1 1 replyShare Himanshu Kumar Gupta commented Sep 4, 2020 reply Follow flag 11 is answer 0 0 replyShare Please log in or register to add a comment.
Best answer 9 9 votes The sufficient condition for ensuring that deadlock doesn't occur: Si <n+m where Si = Total request resource of ith process n = Total number of process m = Total number of resource if above condition is false then DL may occur, if the condition is true then-No DL. for the above problem, total demand is: 3+4+6=13 13<3+m 10<m, the minimum value of m that ensure deadlock is never occurring is 11. Hira Thakur answered Apr 22, 2018 • selected Apr 23, 2018 by ManojK Hira Thakur comment Share Follow 0 reply Please log in or register to add a comment.
13 13 votes option a abhishekmehta4u answered Apr 22, 2018 abhishekmehta4u comment Share Follow See all 2 Comments 2 2 Comments reply `JEET commented Jan 2, 2020 reply Follow flag This is the right and easiest technique. 2 2 replyShare Kunal_Verma 1 commented Jan 11, 2025 reply Follow flag beautiful 0 0 replyShare Please log in or register to add a comment.
3 3 votes Option A is correct. Maximum requirement of A, B and C are 3, 4 and 6 instances of a resource, respectively. Minimum instances of the resource required without creating a deadlock: (3-1)+(4-1)+(6-1) + 1 = 11. The last one added is shared among all three. Akhilesh Singla answered Apr 22, 2018 Akhilesh Singla comment Share Follow 0 reply Please log in or register to add a comment.
2 2 votes Option A, minimum value of m=11 that ensures deadlock will never occur. So we have three process A, B and C and the peak demands is 3, 4 and 6 respectively, if we allocate A=2 , B=3 and C=5 so with 10 resources there is deadlock but if we allocate one more so deadlock will never occur. Akshay Koli 4 answered Apr 22, 2018 Akshay Koli 4 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Answer is (C) 13. If anyone's peak demand satisfy we don't get deadlock. jjayantamahata answered Apr 22, 2018 jjayantamahata comment Share Follow See 1 comment 1 1 comment reply hacker16 commented Apr 25, 2018 reply Follow flag they ask for the minimum, therefore the answer is 11, not 13. 0 0 replyShare Please log in or register to add a comment.