edited by
2,502 views

3 Answers

2 votes
2 votes

n processes each requiring 2 tape drives

total no of tape drives = 6 

       Process                          Process1       Process2     Process3     Process4      Process5     Process6

No. of Tape Drives                     1                       1                 1                 1                   1                  1                   

This is a deadlock Situation. So anything less than 6 process will be free from Deadlock because at least 1 tape drive will be in hand which can be used for completion of a  running process.

Here asked for maximum process with deadlock free Hence 5 only.

Option 1) is correct answer.

 

 

1 votes
1 votes

We have $6$ drives and we have to find the number of processes.

It is given in question that

Each process may need two drives

So I have $1$ Drive free and alloted all the remaining drives each to one process to maximize number of processes present in the system.

Why keep $1$ Drive free ?

Because in case if a process needs $2$ drives i can allot the drive which is free to that process.

$\therefore$ Option $A.$ is the correct choice.

edited by
0 votes
0 votes
Option(A): 5

If there will be 6 processes then let each process have 1 drive then this will create a deadlock situation

To avoid this situation,we need a maximum of 5 processes
Answer:

Related questions

1 votes
1 votes
1 answer
1
3 votes
3 votes
3 answers
3
Arjun asked Jul 2, 2019
1,916 views
Match List-I with List-II:$$\begin{array}{|c|c|c|c|} \hline {}& \text{List-I} & {} & \text{List-II} \\ \hline (a) & \text{Disk} & (i) & \text{Thread} \\ \hline (b) & \te...