Abort one process at a time until the deadlock cycle is eliminated

Q1. Explain abort one process at a time until the deadlock cycle is eliminated method of Deadlock Recovery of Process Termination.

Ans. This method incurs considerable overhead, since after each process is aborted, a deadlock detection algorithm must be invoked to determine whether any processes are still deadlocked.

Many factors may affect which process is chosen to abort:

  1. What the priority of the process is.
  2. How long the process has computed and how much longer the process will compute before completing its designated task.
  3. How many and what type of resources the process has used (For example: Whether the resources are simple to preempt).
  4. How many more resources the process needs in order to complete.
  5. How many processes will need to be terminated?
  6. Whether the process is interactive or batch.

Leave a Reply

Your email address will not be published. Required fields are marked *

104 Views
%d bloggers like this: