what are the necessary conditions for the occurrence of deadlock?
Necessary conditions for deadlock. Mutual Exclusion: At least one resource is held in a non-sharable mode that is only one process at a time can use the resource. If another process requests that resource, the requesting process must be delayed until the resource has been released.