What are the four conditions required for the deadlock to occur?
Answer:
The four conditions required for deadlock to occur are:
-Mutual Exclusion – the processes must be trying to access the same resource at the same time
-Circular Wait – the processes exist in a circular chain, where each is waiting for the resource held by the next member of the chain.
-Hold & Wait – process holds a resource, DOESN'T GIVE IT BACK, and blocks because it's waiting for more
-No Preemption – resource can't be forcibly taken from the process holding it