Deadlocks
Sequence of transaction
Example
is blocked by is blocked by
Prevention
Deadlock Prevention (Active)
- Locks granted only if they can’t lead to a deadlock
- All other objects are ordered and locks granted in this order
Deadlock detection (Passive)
- Use wait for graphs and cycle detection
- System aborts one of the offending transactions
similar to Deadlock from CS 350