Correct Answer - Option 1 : A condition where each process is blocked and Waiting for others to release resources
The correct answer is option 1.
A deadlock occurs when a process or thread enters a waiting state because a requested system resource is held by another waiting process, which in turn is waiting for another resource held by another waiting process.
A deadlock is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in both programs ceasing to function. This led to the problem of the deadlock.
The condition where each process is blocked and Waiting for others to release resources.
Hence the correct answer is a condition where each process is blocked and Waiting for others to release resources.
These 4 conditions must hold simultaneously for the occurrence of deadlock.
Conditions for Deadlock
- Mutual Exclusion,
- Hold and Wait,
- No preemption,
- Circular wait.