Approaches for handling the deadlocks

What do you mean by deadlock? Write down the approaches for handling the deadlocks?

E

Expert

Verified

Deadlock is a state that takes place when two or more processes are waiting indefinitely for events which can be caused just by one of the waiting processes. The deadlock takes place only if the below given four essential conditions hold concurrently in the system:

a) Mutual exclusion.
b) Hold and wait.
c) No pre-emption
d) Circular wait

Techniques for handling the deadlocks:

a) Use some protocol to prevent or avoid the deadlocks, making sure that the system will never enter in the deadlock state.

b) Permit the system to enter into deadlock state, detect it and then recover.

c) Avoid the problem together and pretend that deadlocks never take place in the system.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.