Types of Resources

Deadlock

Deadlock Modelling

Approaches for Handling Deadlocks

Ignoring

Deadlock Detection

One Resource per Type

Multiple Resources per Type

Recovery from Deadlocks

Pre-emption

Kill Process

Rollback

Deadlock Avoidance

Banker's Algorithm

Difficulties with Deadloc Avoidance

Guarantee Conditions for Deadlocks are not met in the first place

Mutual Exclusion

Hold and Wait

No-Pre-Emption

Circular Wait

Two-Phase Locking

Communication Deadlocks

Livelock

Starvation