Your computer's operating system i sits beating heart.
Without it, your computer would maybe not be dead... but would certainly resemble a zombie.
It is responsible for so many... operations!
To get started, let's do a little OS Appreciation activity.
Resource contention is a natural part of a computer system.
Many processes want to use the same resource eg CPU Time at the same time.
The Operating System manages this by using schduling algorithms and forcing processes to wait their turn for CPU Time.
However, imagine a scenarion where Process A is using the printer. Process B is using the scanner.
Process A needs access to the scanner before it can continue, but Process B needs it too and doesn't release it.
Process B needs access to the printer before it can continue, but Process A needs it too and doesn't release it.
A deadlock occurs when two or more processes are permanently blocked because each process is waiting for a resource that another process is holding.
As a result:
The OS needs to intervene when deadlock occurs.