Share the meaning of a deadlock and any personal experience of deadlocks.
Share the meaning of a deadlock and any personal experience of deadlocks.
DEADLOCK:-
Deadlock occurs when many processes are awaiting one another. Let's say, for illustration, that we have the processes P1 and P2. Process P1 is currently holding Resource R1 while awaiting Resource R2. While waiting for the resource R1, process P2 has resource R2 at the same time. Therefore, while process P2 is waiting for process P1 to release its resource, process P1 is waiting for process P2 to release its resource as well. And no resources are being made available. As a result, both parties are anticipating the release of the resource. This results in never-ending waiting, and nothing gets done. This is referred to as deadlock.
Step by step
Solved in 2 steps with 2 images