Tuesday, 16 June 2015

Q33,paper2,j14. Consider a system with five processes P0 through P4 and three resource types R1, R2 and R3. Resource type R1 has 10 instances, R2 has 5 instances and R3 has 7 instances. Suppose that at time T0 , the following snapshot of the system has been taken :



Allocation,                                R1,                                          R2,                                          R3
P0
0
1
0
P1
2
0
0
P2
3
0
2
P3
2
1
1
P4
0
2
2




Max
R1
R2
R3
7
5
3
3
2
2
9
0
2
2
2
2
4
3
3

Available
R1,R2,R3
 3, 3, 2 .
Assume that now the process P1,requests one additional instance of type R1
and two instances of resource type R3.. The state resulting after this allocation will be
(A) Ready state (B) Safe state
(C) Blocked state (D) Unsafe state

No comments:

Post a Comment

Note: only a member of this blog may post a comment.