When a process is rolled back as a result of deadlock the difficulty which arises is
Question
When a process is rolled back as a result of deadlock the difficulty which arises is
Solution
When a process is rolled back due to a deadlock, several difficulties can arise:
-
Loss of Computation: The main difficulty is the loss of computation. The process might have altered some data from its original state before it entered the deadlock. Rolling back the process means losing all the computations and changes it made, which can be costly in terms of time and resources.
-
Starvation: If a process is repeatedly rolled back due to deadlocks, it may never get a chance to execute fully. This situation is known as starvation.
-
Resource Management: After rollback, the system needs to manage the resources that were previously held by the process. This can be complex, especially if resources were shared among multiple processes.
-
Determining Rollback Point: It can be difficult to determine how far to roll back a process. The system needs to ensure that rolling back to a certain point will indeed break the deadlock.
-
Overhead Costs: The process of rolling back itself can be expensive in terms of system overhead, as it involves context switching, memory management, and possibly re-loading data from disk.
-
Repeated Deadlocks: If the conditions that led to the deadlock are not addressed, the deadlock situation may occur again after the process is rolled back and resumed.
Similar Questions
what are necessary conditions for Deadlock explain with RAG & example.
What is Deadlock? List the conditions that lead to deadlock.
Deadlock occurs when each process holds a resource and wait for other resource held by an
Process A is waiting for the result produced by process B. Also, process A has higher priority than B. So the OS prefers process A and refuses to give CPU time to B. Therefore, both A and B are stuck. What is this scenario called?a.Process IDb.Deadlockc.Starvationd.Demand paging
A set of processes is deadlock ifGroup of answer choicesall processes are trying to kill each othereach process is blocked and will remain so forevernone of the mentionedeach process is terminated
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.