Wait-for graph
A wait-for graph in computer science is a directed graph used for deadlock detection in operating systems and relational database systems.[src] 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.[src] One such deadlock detection algorithm makes use of a wait-for graph to track which other processes a process is currently blocking on.[src] In a wait-for graph, processes are represented as nodes, and an edge from process P_i to P_j implies P_j is holding a resource that P_i needs and thus P_i is waiting for P_j to release its lock on that resource.[src] If the process is waiting for more than a single resource to become available (the trivial case), multiple edges may represent a conjunctive (and) or disjunctive (or) set of different resources or a certain number of equivalent resources from a collection.[src] The possibility of a deadlock is implied by graph cycles in the conjunctive case, and by knots in the disjunctive case.[src] There is no simple algorithm for detecting the possibility of deadlock in the final case.…[src]
A wait-for graph in computer science is a directed graph used for deadlock detection in operating systems and relational database systems.[src] 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.[src] One such deadlock detection algorithm makes use of a wait-for graph to track which other processes a process is currently blocking on.[src] In a wait-for graph, processes are represented as nodes, and an edge from process P_i to P_j implies P_j is holding a resource that P_i needs and thus P_i is waiting for P_j to release its lock on that resource.[src] If the process is waiting for more than a single resource to become available (the trivial case), multiple edges may represent a conjunctive (and) or disjunctive (or) set of different resources or a certain number of equivalent resources from a collection.[src] The possibility of a deadlock is implied by graph cycles in the conjunctive case, and by knots in the disjunctive case.[src] There is no simple algorithm for detecting the possibility of deadlock in the final case.[src] A wait-for graph is a graph of conflicts blocked by locks from being materialized; it can be also defined as the graph of non-materialized conflicts; conflicts not materialized are not reflected in the precedence graph and do not affect serializability.[src] The wait-for-graph scheme is not applicable to a resource allocation system with multiple instances of each resource type.[src] An arc from a transaction T1 to another transaction T2 represents that T1 waits for T2 to release a lock (i.e., T1 acquired a lock which is incompatible with a previously acquired lock from T2).[src] A lock is incompatible with another if they are on the same object, one is a write, and they are from different transactions.[src] A deadlock occurs in a schedule if and only if there is at least one cycle in the wait-for graph.[src] Not every cycle necessarily represents a distinct deadlock instance.[src] ==References==[src]
21 sentences · 21 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Wait-for graph." encyclopegia.org, 2024, https://encyclopegia.org/wiki/wait-for-graph. Accessed 25 November 2026.
Chicago
"Wait-for graph." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/wait-for-graph.
APA
encyclopegia.org. (2024). Wait-for graph. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/wait-for-graph
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON