What are the three basic techniques to control deadlocks?


1 . Deadlock prevention. A transaction requesting a new lock is aborted when there is the possibility that a deadlock can occur. If the transaction is aborted, all changes made by this transaction are rolled back and all locks obtained by the transaction are released. The transaction is then rescheduled for execution. Deadlock prevention works because it avoids the conditions that lead to deadlocking.
2 . Deadlock detection. The DBMS periodically tests the database for deadlocks. If a deadlock is found, the "victim" transaction is aborted (rolled back and restarted) and the other transaction continues.
3 . Deadlock avoidance. The transaction must obtain all of the locks it needs before it can be executed. This technique avoids the rolling back of conflicting transactions by requiring that locks be obtained in succession. However, the serial lock assignment required in deadlock avoidance increases action response times.

Business

You might also like to view...

A ________ is a separate entity that involves a partnership between two or more active participants.

A. joint venture B. leveraged buyout C. franchise D. merger

Business

According to Table M7-2, which is a summarized solution output from simplex analysis, if the amount of resource A were decreased so that there were only 550 units available instead of 600, what would happen to total profits?

A) They would decrease. B) They would increase. C) They would not change. D) Unable to determine from the given information. E) None of the above

Business

A plaintiff may win a lawsuit and only be awarded one dollar; that is, given nominal damages

a. True b. False Indicate whether the statement is true or false

Business

The APR on a charge account is 13.8%. What is the monthly rate?

Business