retagged by
317 views
0 votes
0 votes
A computer has 20 tape drivers, with n processes competing for them. Each process may need five drivers. What is the maximum value of n for the system to be deadlock free?
retagged by

2 Answers

Best answer
1 votes
1 votes

If we have 4 process than

process         p0                                       p1                          p2                                  p3          
drivers 5 5 5 5

so no deadlock will occur but if we have 5 processes

process p0 p1 p2 p3 p4
drivers 4 4 4 4 4

 when their is 5 processes then this condition may occur so this will result in deadlock

so max 4 processes will always  ensure deadlock free operation of system.

0 votes
0 votes

Consider that all processes are deadlocked with 4 resources allocated to each. Now, if I allocate 1 resource to one of them, the system will be become deadlock free.

So, 4(n)+1 <= 20

i.e. n<= 4.xxxxx

i.e. n=4

Related questions

0 votes
0 votes
2 answers
3
sanyam53 asked Jan 10, 2017
1,043 views
0 votes
0 votes
0 answers
4
ms17436 asked Dec 13, 2016
516 views
A system using fixed partitioning memory allocation technique where 10 partitions are available and each partition size is 90KB. The request of processes are 60 KB, 40 KB...