0
1.7kviews
Explain the deadlock
written 7.3 years ago by | modified 2.2 years ago by |
Mumbai University > Information Technology > Sem 3 > Database Management System
Marks: 2M
Year: Dec 2013
ADD COMMENT
EDIT
1 Answer
written 7.3 years ago by | modified 2.2 years ago by |
Mumbai University > Information Technology > Sem 3 > Database Management System
Marks: 2M
Year: Dec 2013
written 7.3 years ago by |
A second transaction has locked those needed items but is awaiting the release of locks the first transaction is holding so it can continue.
Two main ways to deal with deadlock:
a. Prevent it in the first place by giving each transaction exclusive rights to acquire all locks needed before proceeding.
b. Allow the deadlock to occur, and then break it by aborting one of the transactions.