What are the methods for handling deadlocks?
Different operating systems adopt different strategies to handle deadlocks. The
deadlock problem in a system can be handled by using one of the following three
ways.
1- We can use a protocol to prevent or avoid deadlocks, so that the system will
never enter in a deadlock state.
2- We can allow a system to enter in a deadlock state, detect the deadlock and
recover it.
3- We can ignore the deadlock problem and make believe that deadlocks never
occur in the system. This method is commonly used in most of the operating
systems including Unix and Windows. It can also be handled by developing a
program.
|