




































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!





































(preempt resources and rollback).
CPU cycles, memory space, I/O devices
A set of vertices V and a set of edges E.
Pi
Pi Rj
Rj
Resource Allocation Graph With A
Deadlock
Graph With A Cycle But No Deadlock
Restrain the ways request can be made.
Make sure at least one of the four conditions for deadlock
cannot hold:
information available.
if immediate allocation leaves the system in a safe state.
Suppose a system has 12 tape drives and 3 processes.
At time t0, the system is as follows:
Process Max need Current allocated P0 10 5 P1 4 2 P2 9 2
3 tape drives are unallocated.
Is the system safe?
Suppose process P2 is allocated another tape drive at time t1.
Is the system safe?