- The horizontal (vertical) axis represents the number of instructions executed by process A (B)
- Every point in the diagram represents a joint state of the two processes
- If the system ever enters the box bounded by and on the sides and and top and bottom, it will eventually deadlock when it gets to the intersection of and
- At this point, A is requesting the plotter and B is requesting the printer, and both are already assigned
- The entire box is unsafe and must not be entered
- At point the only safe thing to do is run process A until it gets to . Beyond that, any trajectory to will do
- At point B is requesting a resource. The system must decide whether to grant it or not
- If the grant is made, the system will enter an unsafe region and eventually deadlock
Figure 3.4:
Two process resource trajectories.
|
2004-05-25