Skip to content
We areTOP 1%
Operating Systems · Intermediate · Topic 2 of 3

Deadlocks

5 questions.
Your progress0%
1st Visit
0/5
2nd Visit
0/5
Revise
0/5

Overview

A deadlock is a state in which a group of processes wait for each other forever, each holding a resource that another one needs. It can occur only when four conditions hold together: mutual exclusion, hold and wait, no preemption and circular wait. An operating system can prevent deadlock by breaking one condition, avoid it by checking every request with the Banker's algorithm, detect it with a resource-allocation graph and then recover, or simply ignore it, as Linux and Windows do for application locks. Expect to list the conditions, compare the handling strategies, distinguish deadlock from starvation and livelock, and run the Banker's safety algorithm on a small example.

Questions

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account