It means that if the resource(like a printer) is being used by any process and some other process comes then it has to wait for the resources to be released. This means that some of the resources involved cannot be used by more than one process at the same time. But there are some conditions that must be satisfied for Deadlock. ![]() So, here one process is waiting for the other process to release its resource and hence both the process is unable to complete its execution and the system goes into a halt. ![]() The process P2 is holding the resource R2 and needs R1 to complete its execution. The process P1 is holding the resource R1 and needs R2 to complete its execution. So, both the processses are waiting for each other to release the resources and none of them are releasing the resources.Ĭonsider a situation where there are two processes P1 and P2 executing simultaneously. In Deadlock, one process is holding some resource and is wating for some other resource and at the same time, there is some other process that is holding that resource and is waiting for the resources held by the first process. So, understand it in the easiest way.ĭeadlock is an unwanted condition where two or more processes waits indefinitely for the other process to free up their resources so that they can complete their work. In this blog, we will see in detail what is a deadlock and what are various deadlock handling techniques. Such type of situation may occur in our computer system also. ![]() This is a deadlock situation where you both are stuck and nobody is ready to take back turn. But, the person in front of you is waiting for you to give him space. Now, you wait for the person to take a back turn and provide the road to you. Suddenly you see a car approaching from the opposite direction. Suppose you are travelling on a one-way road by car.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |