Consider the following two transactions:
if A=0 then B=B+1
if B=0 then A=A+1
Add lock and unlock instructions to transactions T31 and T32 so that they observe the two phase protocol. Can the execution of these transaction results in a deadlock.