in Databases
215 views
0 votes
0 votes
Consider the following two transactions:
$T_{31}$:   $read(A);$
           $read(B);$
          $if A = 0$ $then$ $B := B + 1;$
          $write(B);$
$T_{32}$:   $read(B);$
          $read(A);$
          $if B = 0$ $then$  $A := A + 1;$
          $write(A);$
Add lock and unlock instructions to transactions $T_{31}$ and $T_{32}$, so that they observe the two-phase locking protocol. Can the execution of these transactions result in a deadlock ?
in Databases
215 views

Please log in or register to answer this question.

Related questions