Deadlock mitigation (CS 4410, Summer 2015)
cs.cornell.edu·5d·
Discuss: Hacker News
🔒Two-Phase Locking
Preview
Report Post

Lecture 11: Deadlock mitigation

review, quiz

  • deadlock prevention strategies

  • preemption

  • lock ordering

  • key terms: optimistic concurrency, rollback, livelock

deadlock detection

  • deadlock avoidance: banker’s algorithm

  • key terms: safe state

Deadlock prevention

We can design a system to avoid deadlock by making any of the 4 conditions impossible.

Breaking mutual exclusion

In some cases, deadlock can be mitigated by making resources more shareable. For example, using a reader/writer lock instead of a mutex can make deadlock less likely (since many readers can share the read lock). Using a lock-free data structure is another way to allow multiple threads to access a data structure simultaneously (without blocking).

However, many resources are inherently n…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help