-- Aug. 29 In-Class Excersise Thread
Let’s assume we have two users, A and B. We also have two resources, X and Y. The following scenario will lead to a deadlock and the transaction manager will have to intervene:
User A's transaction has acquired the lock to resource X. Next, User B's transaction acquires the lock to resource Y. Now, transaction A would like to get access to resource Y and transaction B wants access to resource X.
A is waiting for B to release Y, while B is waiting for A to release X. They will wait forever if the transaction manager will not intervene.
(
Edited: 2018-08-29)
Let’s assume we have two users, A and B. We also have two resources, X and Y. The following scenario will lead to a deadlock and the transaction manager will have to intervene:
User A's transaction has acquired the lock to resource X. Next, User B's transaction acquires the lock to resource Y. Now, transaction A would like to get access to resource Y and transaction B wants access to resource X.
A is waiting for B to release Y, while B is waiting for A to release X. They will wait forever if the transaction manager will not intervene.