1. (6 points) Consider the following snapshot of a system
R1 has 9 instances, R2 has 10 instances, and R3 has 6 instances
Allocation
Max
Need
Available
R1
R2 R3
R1
R2
R3
R1
R2 R3
R1 R2 R3
P1 1
1
1
5
3
3
P2 3
1
2
5
4
4
P3 2
2
1
2
3
4
P4 1
1
0
4
2
3
Is the system in a safe state? If yes, list an ordered sequence of processes. Show all work.
2. (6 points) Consider the following snapshot of a system
R1 has 8 instances, R2 has 9 instances, and R3 has 5 instances
Allocation
Max
Need
Available
R1
R2 R3
R1
R2
R3
R1
R2
R3
R1 R2 R3
P1 1
1
1
5
3
3
P2 3
1
2
5
4
5
P3 1
1
1
1
2
2
P4 1
1
0
4
2
3
Is the system in a safe state? If yes, list an ordered sequence of processes. Show all work.