CS FundamentalsHardGATE CS

Deadlock recovery by process termination: which criteria are sensible for choosing a victim? 1. Lowest priority 2. Least CPU time consumed so far 3. Fewest resources held 4. The process that most recently requested a resource

  1. A. Only 1
  2. B. Only 1 and 2
  3. C. All four can be used as cost factors
  4. D. Only 4

Correct answer: C. All four can be used as cost factors

Victim selection minimises cost: priority, work lost, resources that will be freed and how many more are needed, and rollback difficulty are all considered. The danger is starvation if the same process is always chosen, so the rollback count is also included.

More Operating Systems questions

Exams that ask this topic