GATE Computer Science (CS) 2018 Shift 1 Solved Paper
© examsnet.com
Question : 59
Total: 65
In a system, there are three types of resources: E , F and G . Four processes P 0 , P 1 , P 2 and P 3 execute concurrently. At the outset, the processes have declared their maximum resource requirements using a matrix named Max as given below. For example M a x [ P 2 , F ] is the maximum number of instances of F that P 2 would require. The number of instances of the resources allocated to the various processes at any given state is given by a matrix named allocation.
Consider a state of the system with the Allocation matrix as shown below and in which 3 instances ofE and 3 instances of F are the only resources available.
From the perspective of deadlock avoidance, which one of the following is true?
Consider a state of the system with the Allocation matrix as shown below and in which 3 instances of
Allocation | |||
E | F | G | |
| 1 | 0 | 1 |
1 | 1 | 2 | |
1 | 0 | 3 | |
2 | 0 | 0 |
MAX | |||
E | F | G | |
4 | 3 | 1 | |
2 | 1 | 4 | |
1 | 3 | 3 | |
| 5 | 4 | 1 |
Go to Question: