In context of two phase locking protocol, which of the following statements is correct?
1
Growing phase occurs after shrinking phase.
2
In shrinking phase, transaction can obtain as well as release locks but in growing phase, it can only obtain locks.
3
In growing phase, transaction can obtain as well as release locks but in shrinking phase, it can only release locks.
4
In growing phase, transaction can only obtain locks and in shrinking phase, it can only release locks.