Professional Documents
Culture Documents
Recovery From Deadlocks
Recovery From Deadlocks
01 INTRODUCTION 3-5
WHAT IS DEADLOCK?
• Definition
A situation where multiple processes are stopped due to the fact that
one process is waiting for a resource which is being used another
process.
For example in real life if two trains are coming from opposite
direction on the same track when they both face each other they will
stop because there is no way for them to continue on the same path
so that is a real life dead lock.
Explanation of Deadlock in reference of operation system :
-A sudden lock happening due to multiple processes waiting for one
resource to passed down for usage.
-For instance there are three processes using multiple resources but
one resource is common which is being used by process 1 and is taking
a lot of time so a deadlock will most probably occur between these
processes. PROCESS 1
ASSIGNED TO
-Diagram