Professional Documents
Culture Documents
OS - WEEK 8
OS - WEEK 8
CONCEPT:
Deadlock is a condition in which a process P1 wants a resource that is held by any other process
P2 & process.
P2 wants a resource that is held by process P1.
No processes that are in deadlock can further proceed and get blocked.
EXPLANATION:
Deadlock detection algorithm is used to detect any chance of deadlock while allocating
resources to the
processes.
If any process will cause or has a chance of creating a deadlock, then this algorithm will not give
resources to that.
process causing deadlock.
Step 1.