













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These lecture slides are very easy to understand the computer operating system. The major points in these lecture slides are:Deadlocks, Deadlock Problem, System Model, Deadlock Characterization, Methods For Handling Deadlocks, Deadlock Prevention, Deadlock Avoidance, Deadlock Detection, Recovery From Deadlock, Develop
Typology: Slides
1 / 21
This page cannot be seen from the preview
Don't miss anything!














Chapter 7: Deadlocks
2
Happy scheduling 1 Illustration of a deadlock — scheduling path 1 Q executes everything before P can ever get A when P is ready, resources A and B are free and P can proceed
Get B ... Get A ... Release B ... Release A ... A required B required B required A required
Get A ... Get B ... Release A ... Release B ... Deadlock Principles
Happy scheduling 2 Illustration of a deadlock — scheduling path 2 Q gets B and A, then P is scheduled; P wants A but is blocked by A’s mutex; so Q resumes and releases B and A; P can now go
Get B ... Get A ... Release B ... Release A ... A required B required B required A required
Get A ... Get B ... Release A ... Release B ... Deadlock Principles
Joint progress diagram Stallings, W. (2004) Operating Systems: Internals and Design Principles (5th Edition). Deadlock Principles
Deadlocks depend on the program and the scheduling program design the order of the statements in the code creates the “landscape” of the joint progress diagram this landscape may contain gray “swamp” areas leading to deadlock scheduling condition the interleaved dynamics of multiple executions traces a “path” in this landscape this path may sink in the swamps Deadlock Principles
Joint progress diagram → no swamp area: there exists no path leading to deadlock (^) Stallings, W. (2004) Operating Systems: Internals and Design Principles (5th Edition). Deadlock Principles
1
2
n
1
2
m
A set of vertices V and a set of edges E. Docsity.com
Pi Rj Rj
Resource Allocation Graph With A Deadlock