Skills101
← Tech dictionary

Operating systems

What is Deadlock?

A deadlock is a situation where processes wait for each other forever because each holds a resource the other needs. It requires four conditions together: mutual exclusion, hold and wait, no preemption and circular wait.

Example

Process A holds the printer and waits for the scanner while process B holds the scanner and waits for the printer.

Learn it properlyOperating systems tutorials — free, with diagrams, quizzes and a certificate

Related terms