2,982 views
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.

2 Answers

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 .
selected by
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
Answer:

Related questions

5 votes
5 votes
4 answers
2
Prateek Dwivedi asked Jun 27, 2015
31,766 views
This is a question from Operating System concepts by Silberschatz, Gagne and Galvin. On very first go I could make that in such a situation deadlock can never occur. But ...