Deadlocks in Operating Systems

Published on
Embed video
Share video
Ask about this video

Scene 1 (0s)

Deadlocks in Operating Systems. Harsh Patle Roll No: 47.

Scene 2 (8s)

What is a Deadlock?. 2. P1. R1. R2. P2. held by P1.

Scene 3 (30s)

Necessary Conditions. 3. 1. Mutual exclusion Resource can be used by only one process at a time.

Scene 4 (51s)

Deadlock Detection. 4. Resource Allocation Graph.

Scene 5 (1m 14s)

Deadlock Avoidance. 5. Safe state A safe sequence of all processes exists.

Scene 6 (1m 35s)

Deadlock Prevention. 6. Ensure at least one of the four necessary conditions can never hold..

Scene 7 (1m 58s)

Recovery & Summary. 7. Recovery from deadlock. Process termination Abort all deadlocked processes Abort one at a time until cycle breaks Resource preemption Select a victim (minimize cost) Rollback to a safe state Prevent starvation of the victim.