171k views
4 votes
A deadlock can be broken by (choose all that apply):

a) Abort one or more processes to break the circular wait
b) Abort all the process in the system
c) Preempt all resources from all processes
d) Preempt some resources from one or more of the deadlocked processes

1 Answer

4 votes

Final answer:

A deadlock can be broken by aborting processes to break circular wait or preempting resources from deadlocked processes.

Step-by-step explanation:

A deadlock can be broken by:

  • Abort one or more processes to break the circular wait: In this approach, one or more processes involved in the deadlock are terminated, allowing the remaining processes to proceed. By doing so, the circular wait condition is eliminated, and the deadlock is broken.
  • Preempt some resources from one or more of the deadlocked processes: Here, the operating system forcibly takes away some resources from one or more of the deadlocked processes, making them available to other processes. This action can break the deadlock and allow the system to make progress.

User Jokuskay
by
8.1k points