1 / 3

Simple Deadlock

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.

helen
Download Presentation

Simple Deadlock

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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

  3. CS 140 Lecture Notes: Deadlock

More Related