in Operating System
1,700 views
2 votes
2 votes
A multiprocessor with 8 processors has 20 attached tape drives. There is a large number of jobs submitted to the system, and each requires 4 tape drives to complete execution. Assume that each job starts running with only 3 tape drives for a long period before requiring the fourth tape drive for a short period toward the end of its operation. Also assume an endless supply of such jobs. The maximum number of jobs that can execute at once are _______.
in Operating System
1.7k views

4 Comments

Must be 6
0
0

Can you explain what question actually means

0
0
There are 20 instances of the resource tape drive.

Each process requires exactly 4 tape drives.

It starts with 3 and requires 4th for short period of time.

Say N=5. For 5 jobs, we'll require 5*4=20 tape drives. But more jobs can be executed as 4th tape drive is only required for some time, thus we are making poor utilization of 5 tape drives here.

Say N=6. For 6 job, atleast 18 will be required. For the 4th tape drive, the 6 process can compete for remaining 2 tape drives. Two of them will acquire, complete its execution and leave the tape drive for another job. Hence, there is no deadlock.

N=7 would require atleast 21 resources which are not available.
2
2

1 Answer

0 votes
0 votes
Answer is 3 ..but not able to get the logic

Related questions