operating-systems concurrency

Definition

Deadlock Prevention

Deadlock prevention is an approach to managing deadlocks by ensuring at least one of the four Coffman conditions can never hold.

Strategies are divided into two categories:

Techniques

ConditionPrevention Method
Mutual ExclusionUse spooling for non-shareable resources
Hold and WaitRequest all resources simultaneously
No PreemptionAllow OS to reclaim resources from blocked processes
Circular WaitEnforce strict linear ordering of resource types