1 votes 1 votes A computer system has 6 tape drives, with n processes competing for them. Each process may need 3 tape drives. What is the maximum value of n for which the system is guaranteed to be deadlock? Justify your answer. Operating System graph-theory + – Xuan Eric asked Jul 14, 2017 Xuan Eric 3.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes the maximum value of n for which the system is guaranteed to be deadlock is 3 . process * ( max need -1) = RESOURCES. n ( 3 - 1 ) = 6 2n = 6 n = 3 Hence at maximum we need 3 processes to be in deadlock . Bikram answered Jul 14, 2017 • selected Jul 14, 2017 by focus _GATE Bikram comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes try with hit and trial method let if having two process p1 p2 1 1 1 1 1 1 ie no deadlock let if n=3 (ie. 3 process) p1 p2 p3 1 1 1 1 1 1 here no deadlock(becoz after complition of p1 other will get chance) but other case possible for n=3 p1 p2 p3 1 1 1 1 1 1 here u can see that deadlock is possible.(becoz we have to consider all possibility) so n=3 for occurring deadlock pawan kumarln answered Jul 14, 2017 pawan kumarln comment Share Follow See 1 comment See all 1 1 comment reply Bikram commented Jul 14, 2017 reply Follow Share There is a better method than trial and error :) see my answer.. 0 votes 0 votes Please log in or register to add a comment.