Deadlocks

Sequence of transaction (T1,,Tn) where Ti must wait for Ti+1 to release locks, 1i<n, and where Tn must wait for T1 to release locks

Example

r1[x],r2[y],w2[x],w1[y]

  • w2[x] is blocked by T1
  • w1[y] is blocked by T2

Prevention

Deadlock Prevention (Active)

Deadlock detection (Passive)

similar to Deadlock from CS 350