Question: Consider the following two transactions: T _ ( 3 4 ) :read ( A ) ; read ( B ) ; if A = 0
Consider the following two transactions:
T:readA;
readB;
if A then B:B;
write B
T:readB;
readA;
if B then A:A;
write A
Add lock and unlock instructions to transactions T and T so that they observe the two
phase locking protocol. points
Here are some instructions you can use:
LockSA
LockSB
LockXA
LockXB
UnlockA
UnlockB
Can the execution of these transactions result in a deadlock? Just Yes or No points
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
