1 votes 1 votes A computer has six tape drivers, with n processes competing for them. Each process may need two drivers. What is the maximum value of n for the system to be deadlock free? a] 6 b] 5 c] 4 d] 3 Operating System deadlock-prevention-avoidance-detection operating-system gate1997 + – Cruise Device asked Jan 16, 2016 Cruise Device 744 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply DIPAK4ALL commented Jan 16, 2016 reply Follow Share No. of user * No. of resource req. < No. of user + available resource N * 2 < N+6 N<6 so, N=5, 0 votes 0 votes Cruise Device commented Jan 16, 2016 reply Follow Share i did'nt get this part N<6, so N = 5 0 votes 0 votes DIPAK4ALL commented Jan 16, 2016 reply Follow Share its asking for maximum value of n, and the condition say n must be less then 6, so answer will be 5 , dude :) 1 votes 1 votes Please log in or register to add a comment.
Best answer 6 votes 6 votes Give each process 1 less than it requires . and then add 1 resource So , n*1 + 1 <= 6 so , n <=5 worst_engineer answered Jan 16, 2016 selected Jan 16, 2016 by Pooja Palod worst_engineer comment Share Follow See 1 comment See all 1 1 comment reply Cruise Device commented Jan 16, 2016 reply Follow Share what we are giving each process is driver. right? 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Without any deadlock we can have 5 processes bcz we can allocate resources(2,1,1,1,1) for processes so that one process gets finished followed by other shivanisrivarshini answered Jan 16, 2016 shivanisrivarshini comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes No. of user * No. of resource req. < No. of user + available resource N * 2 < N+6 N<6 so, N=5, DIPAK4ALL answered Jan 16, 2016 DIPAK4ALL comment Share Follow See all 0 reply Please log in or register to add a comment.