operating-systems concurrency

Definition

Deadlock Prevention

Deadlock prevention is an approach to managing deadlocks by designing the operating system or its resource-allocation protocols such that at least one of the four Coffman conditions is guaranteed to never hold.

Deadlock prevention strategies are divided into two categories:

Summary of Techniques

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