- Maintain wait-for graph
- Nodes are processes.
- Pi ® Pj if Pi is waiting for Pj.
- Periodically invoke an algorithm that searches for a cycle in the graph.
- An algorithm to detect a cycle in a graph requires an order of n2 operations, where n is the number of vertices in the graph.
No comments:
Post a Comment