





















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































l Obvious how this helps!
l So it is ok, if necessary, to stall P2 until P1 completes l We will try to avoid this
2
3
n
l currently-free resources F, plus l resources currently held by P 1 , P 2 , ...P i
i
1
2
1
2
3
System 12 3 - P2 9 2 7 P1 4 2 2 P0 10 5 5 Who Max Has Room How would we show that this state is safe?
System 12 3 - P2 9 2 7 P1 4 2 2 P0 10 5 5 Who Max Has Room System 12 1 - P2 9 2 7 P1 4 4 0 P0 10 5 5 Who Max Has Room
System 12 5 - P2 9 2 7 P0 10 5 5 Who Max Has Room System 12 0 - P2 9 2 7 P0 10 10 0 Who Max Has Room
System 12 0 - P2 9 2 7 P0 10 10 0 Who Max Has Room System 12 10 - P2 9 2 7 Who Max Has Room “Run P1, P0, P2” is a safe sequence. So the system was in a safe state.
System 12 3 - P2 9 2 7 P1 4 2 2 P0 10 5 5 Who Max Has Room System 12 2 - P2 9 3 6 P1 4 2 2 P0 10 5 5 Who Max Has Room
System 12 2 - P2 9 3 6 P1 4 2 2 P0 10 5 5 Who Max Has Room System 12 0 - P2 9 3 6 P1 4 4 0 P0 10 5 5 Who Max Has Room