In your own words, list and briefly describe each of the four necessary conditions for a deadlock.
The four neccesary conditions for deadlock are :
1. Mutual exclusion : It basically means no more than one process should be able to use the resources at the same time.
2. Hold and Wait : It means a process is already having atleast one resource and also waiting for another resource.
3. No preemption : It means that a resource cannot be taken from a process unless it voluntarily gives up the resource.
4. Ciruclar wait : It means that the processes are waiting for each other in the circular form , a loop is formed where each process is waiting for the resource that is with the next process in the loop thus forming a circular wait.
Note : Please feel free to ask queries , I will be glad to help.
Get Answers For Free
Most questions answered within 1 hours.