Question: Q . 2 Set. ( A ) i ) Consider the following code and Find out the what type of 2 PL locking is used:
QSet. A
i Consider the following code and Find out the what type of PL locking is used:
a
LockSbasic
LockXnetsal
LockSdeduct
LockXhra
RBasic
deduct
Hrahrahra
Netsal basic deduct hra
Unlockbasic
Unlockdeduct
Wnetsal
Whra
Commit
Unlock netsal
Unlockhra
b
LocksA
LockXB
UnlockB
UnlockA
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
