waitdie
Wait-die is a deadlock avoidance protocol used in database systems to manage concurrent access to shared data. It is a timestamp-based concurrency control scheme and is commonly discussed alongside the wound-wait protocol. In wait-die, each transaction receives a unique timestamp when it starts, which establishes a global order of transactions.
When a transaction requests a lock on a data item currently held by another transaction with a
This approach guarantees that no deadlocks occur, because a waiting chain cannot form a cycle with decreasing
Compared with wound-wait, where older transactions may abort younger ones to allow the older to proceed, wait-die