Method for Handling Deadlock

Q1. What are the Method for Handling Deadlock?

Ans. Deadlock problem can be handled in one of three ways:

  1. We can use a protocol to prevent or avoid deadlock, ensuring that the system will never enter a deadlock state.
  2. We can allow the system to enter a deadlock state, detect it, and recover.
  3. We can ignore the problem altogether and pretend that deadlocks never occur in the system

To ensure that deadlocks never occur, the system can use either a deadlock prevention or deadlock avoidance scheme.


Leave a Reply

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

%d bloggers like this: