Unit 4 Locking Based Protocol
Unit 4 Locking Based Protocol
2 lock-S(A)
lock-
3
X(B)
4 ……. ……
Unlock(
5
A)
6 Lock-X(C)
Unlock(
7
B)
8 Unlock(A)
9 Unlock(C)
10 ……. ……
• This is just a skeleton transaction which shows how
unlocking and locking works with 2-PL. Note for:
Transaction T1:
• Growing Phase is from steps 1-3.
• Shrinking Phase is from steps 5-7.
• Lock Point at 3
• Transaction T2:
• Growing Phase is from steps 2-6.
• Shrinking Phase is from steps 8-9.
• Lock Point at 6
• LOCK POINT ?The Point at which the growing
phase ends, i.e., when transaction takes the
final lock it needs to carry on its work.