Transaction Processing
Transaction Processing
What is a Transaction?
T1 T2
1. read(A)
2. A := A – 50
3. write(A)
read(A), read(B), print(A+B)
4. read(B)
5. B := B + 50
6. write(B
Example; Suppose, there are two transactions T1 and T2 and Let timestamp of any
transaction T be TS (T).
• Now, If there is a lock on T2 by some other transaction and T1 is requesting for
resources held by T2, then DBMS performs following actions: