Boston University




A. T1 is rolled back sometime after T3 reads A. yes
B. T2 is rolled back sometime after T1 reads B. yes
C. T3 is rolled back sometime after T2 reads C. yes
D. two of the above
E. all three of the above (A, B and C)




Locking is one way to provide concurrency control.
Locking involves associating one or more locks with each database element.
We can associate a lock with








The problem is that T1 released its lock on balance1 “too soon”.
Notice that T1 acquired a lock on balance2 later; this suggests that the transaction was not “done” when it released the lock on balance1.

































