Strategies for dealing with deadlocks can be divided into threeapproaches, namely:
1. Ignoring the existence of deadlock.
2. Ensure that deadlock will never exist, either by the method ofprevention, by preventing the four conditions of deadlock that will never happen. Avoiding deadlocks method, allowing fourdeadlock conditions, but stop any process that may reach a deadlock.
3. Allowing deadlocks to occur, this approach requires twomethods support each other, namely:
1. Deadlock detection, to identify when a deadlockoccurs.
2. Deadlock recovery, restoring the resources needed toprocess the request.
From the explanation of the above approaches, there are fourmethods to overcome the deadlock that will occur, namely:
Ostrich strategy
The simplest approach is to use the ostrich strategy: put your head in the sand and as if there never was a problem at all. A variety of opinion arising in connection with this strategy.According to the mathematician, the way is totally unacceptableand all deadlock situation should be handled. While experts saytechnique, if the computer more often suffered damage caused by a hardware failure, error on the compiler or bugs in the operating system. Then the cost paid for deadlock handling isbigger and better to ignore such a deadlock situation. This method is applicable to UNIX and MINIX operating system.
1. Ignoring the existence of deadlock.
2. Ensure that deadlock will never exist, either by the method ofprevention, by preventing the four conditions of deadlock that will never happen. Avoiding deadlocks method, allowing fourdeadlock conditions, but stop any process that may reach a deadlock.
3. Allowing deadlocks to occur, this approach requires twomethods support each other, namely:
1. Deadlock detection, to identify when a deadlockoccurs.
2. Deadlock recovery, restoring the resources needed toprocess the request.
From the explanation of the above approaches, there are fourmethods to overcome the deadlock that will occur, namely:
Ostrich strategy
The simplest approach is to use the ostrich strategy: put your head in the sand and as if there never was a problem at all. A variety of opinion arising in connection with this strategy.According to the mathematician, the way is totally unacceptableand all deadlock situation should be handled. While experts saytechnique, if the computer more often suffered damage caused by a hardware failure, error on the compiler or bugs in the operating system. Then the cost paid for deadlock handling isbigger and better to ignore such a deadlock situation. This method is applicable to UNIX and MINIX operating system.
0 komentar:
Posting Komentar