Deadlock: follow the waiting arrows
Draw who holds and who waits, spot the loop that freezes work until someone intervenes, and learn why a second instance of a resource can open the loop. Synchronization and deadlock · Operating systems.
Two jobs each hold a device the other one needs, and nothing crashes. How can a drawing of who waits for whom show that work needs intervention, and when does a loop in it prove nothing?
What you will learn
- Read assignment and request arrows on a resource graph
- Name the four conditions a deadlock needs
- Decide whether a loop is a deadlock by asking which job can still finish
Lesson outline
- Draw who holds and who waits
- Four things must hold at once
- When a loop is not a deadlock
- Staying out of the loop
14 minutes · 3 scenes · 0 predict checks · 10 quiz questions
The full lesson is available with Premium.