Hire Our Expert Programmer & Technical Writer To Do Your Capstone Project
+1 vote
in Compilers & Operating Systems by (user.guest)

1 Answer

0 votes
by (user.guest)
edited by (user.guest)

Deadlock detection and recovery usually comes as a last resort, this is usually after all else has failed, a way to recover from the deadlock is devised. There are a few things that can be done and these are: 

  • Termination of the processes involved, one or more processes:  You can terminate all processes involved, this would solve the problem but ends all process, or terminate processes individually until you find one that stops the deadlock.  
  • Preemption of resources: Resources can be preempted, when a process resource is preempted, there is a possibility or starvation, so we roll it back all the way to the beginning of the process just where the resource are allocated, and after each time we take a resource we need to use a priority system to increase the priority of the process.

Related questions

0 votes
1 answer
Welcome to CPENTalk.com

Disclaimer: Every user is solely responsible for anything that he/she posts or uploads on CPENTalk.
...