30 likes | 126 Views
Simple Deadlock. Thread A: Thread B: lock_acquire (l1); lock_acquire (l2); lock_acquire (l2); lock_acquire (l1); ... ... lock_release (l2); lock_release (l1); lock_release (l1); lock_release (l2 );. Circular Requests. T2. T4. R4. "Owned by". R2. R3. R4. R2. R3. Resource. T3.
E N D
Simple Deadlock Thread A:Thread B: lock_acquire(l1); lock_acquire(l2); lock_acquire(l2); lock_acquire(l1); ... ... lock_release(l2); lock_release(l1); lock_release(l1); lock_release(l2); CS 140 Lecture Notes: Deadlock
Circular Requests T2 T4 R4 "Owned by" R2 R3 R4 R2 R3 Resource T3 T1 T1 T2 "Waiting for" R1 R1 Thread No Circularity Circularity CS 140 Lecture Notes: Deadlock