So, these were the four conditions of deadlock. As a result, deadlocks are also called “circular wait” since they get a process stuck in a circular fashion. This keeps them waiting forever, and they never get executed. Every set of processes waits in a cyclic manner. As a result, deadlocks are called “circular wait” since they get a process stuck in a circular fashion. Circular waitĮvery set of processes waits in a cyclic manner. This implies that only when a process is completed, then only the allocated or occupied resource will be duly released. So, it is said that no two processes can be executed simultaneously. Only one process can be scheduled at a point in time. Hold and waitĪs the name suggests, this deadlock condition in OS requires a process to wait for an occupied resource. Henceforth, no two processes can ask for the same resource. Mutually exclusive means that for every process, there is a designated resource that cannot be shared. This is because a deadlock is earmarked by four conditions that are to be fulfilled anyhow. It isn’t necessary that a deadlock will happen whenever more than one process, along with more than one resource, is involved. So, this was a deadlock example resulting in a potential deadlock in the operating system. Subsequently, neither Process 1 nor Process 2 gets executed because the resources needed by them are held up.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |