Gate2020 cs Q61

  • Option : D
  • Explanation :
    R2(B) is conflicting with W1(B) so, W1(B) should always come after R2(B)
    W2(B) is conflicting with W1(B) similarly, W1(B) should always come after W2(B)
    R2(D) is conflicting with W1(D), so, W1(D) should always come after R2(D)
    R1(C) is conflicting with W2(C) so, W2(C) should always come after R1(C)
    Therefore the transaction will be:
    T1T2
     R(B)
     W(B)
     R(D)
    R(A) 
    R(C) 
    W(D) 
    W(B) 
     W(C)
    Commit 
     Commit
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *