11/24/2023 0 Comments Deadlock key numberNow, think of a situation, when you go for submitting the bus fee and the accountant says that you have to submit the tuition fee first and then the bus fee. Suppose, you are studying in a school and you are using the bus service also. Let's take one real-life example to understand the concept of Deadlock in a better way. If a process is in the waiting state and is unable to change its state because the resources required by the process is held by some other waiting process, then the system is said to be in Deadlock. This leads to infinite waiting and no work is done here. So, both are waiting for each other to release the resource. So, the process P1 is waiting for process P2 to release its resource and at the same time, the process P2 is waiting for process P1 to release its resource. At the same time, the process P2 is having the resource R2 and is waiting for the resource R1. Now, process P1 is holding the resource R1 and is waiting for the resource R2. For example, let us assume, we have two processes P1 and P2. What are Deadlock handling techniques in Operating System?ĭeadlock is a situation where two or more processes are waiting for each other. If you are already familiar with deadlock and its four necessary conditions, then you can skip this blog and read We will find what a Deadlock is and we will also see the four necessary conditions of Deadlock. In this blog, we will learn one of the most important concepts of Operating System i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |