Jump to content

Wait-for graph

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by ClueBot (talk | contribs) at 22:52, 28 April 2010 (Reverting possible vandalism by 82.10.67.221 to version by David Eppstein. False positive? Report it. Thanks, ClueBot. (608034) (Bot)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A Wait-For Graph in computer science is a directed graph used for deadlock detection in operating systems and relational database systems.

In Computer Science, a system that allows concurrent operation of multiple processes and locking of resources and which does not provide mechanisms to avoid or prevent deadlock must support a mechanism to detect deadlocks and an algorithm for recovering from them.

One such deadlock detection algorithm makes use of a Wait-For Graph to track which other processes a process is currently blocking on. In a Wait-for Graph, processes are represented as nodes, and an edge from process to implies is holding a resource that needs and thus is waiting for to release its lock on that resource.

References

Silberschatz, Abraham (2003). Operating System Concepts. John Wiley & Sons, INC. p. 260. ISBN 0-471-25060-0. {{cite book}}: Unknown parameter |coauthors= ignored (|author= suggested) (help)