Assignment 1
Assignment 1
Q2. An OS contains 3 resource classes. The number of resource units in these classes is 7,7,10 respectively. The
Current resource allocation is shown below:
R1 R2 R3 R1 R2 R3
P1 2 2 3 3 6 8
P2 2 0 3 4 3 3
P3 1 2 4 3 4 4
A B C A B C A B C
P0 0 1 0 7 5 3 3 3 2
P1 2 0 0 3 2 2
P2 3 0 2 9 0 2
P3 2 1 1 2 2 2
P4 0 0 2 4 3 3
a) Find the Content of Need Matrix?
b) Find the Safe sequence? if exist
c) If P4 request for additional resource (3, 3, 0), should it be granted immediately..