The wait-for graph has one node per active transaction and an edge when waits for a lock that holds; with one lock per request, the transactions are in deadlock exactly when the graph has a cycle. Two schemes prevent the cycles instead, by giving each transaction a timestamp at its start, the smaller the older, kept when it restarts. Under wait–die an older transaction asking for a lock held by a younger one waits, and a younger one asking for a lock an older one holds aborts (dies). Under wound–wait an older transaction asking for a lock held by a younger one aborts the younger (wounds it), and a younger one asking waits.
Computer Science · Glossário
O que é Wait-for graph, wound–wait, wait–die?
Também chamado de: wait-for graph · wait--die · wound--wait