Difference between Starvation and Deadlock Sr.ĭeadlock is a situation where no process got blocked and no process proceeds The computer becomes unresponsive since all the processes got blocked. None of the process is progressing and they are all waiting. In this scenario, a cycle is being formed among the three processes. P3 also demands for R1 which is being used by P1 therefore P3 also stops its execution. P2 also stops its execution because it can't continue without R3. P2 also demands for R3 which is being used by P3. P1 halts its execution since it can't complete without R2. R1 is assigned to P1, R2 is assigned to P2 and R3 is assigned to P3.Īfter some time, P1 demands for R1 which is being used by P2. There are three different resources R1, R2 and R3. Let us assume that there are three processes P1, P2 and P3. In this situation, none of the process gets executed since the resource it needs, is held by some other process which is also waiting for some other resource to be released.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |