Deadlock conditions or Or Write about the Deadlock Explain about the conditions Prevention? of Deadlock? Deadlock will occur, if the Its goal is to prevent any one of below four conditions hold the necessary conditions for simultaneously deadlock. So deadlock will not Occur.
Mutual Exclusion: 1.Mutual Exclusion condition is
Only one process at a time can applicable to non-shareable use a resource. resource only. Shareable resource do not require mutual exclusion access. Hold and Wait: A process holding a resource 2.Eliminate the Hold and Wait and waiting for another resource held by other process. i. Allocate the required resources to process before it begins the No preemption: A resource execution ii. process will request the new can be released only resource after releasing voluntarily by the holding process.
Circular Wait: A set of
processes are waiting for each other's resource in circular form.