CS FundamentalsHardGATE CS

No transaction has committed. T1 writes A; T2 reads A and writes B; T3 reads B; T4 reads C, which only T5 wrote; T5 reads nothing written by others. If T1 now aborts, how many OTHER transactions must be rolled back?

  1. A. 1
  2. B. 3
  3. C. 4
  4. D. 2

Correct answer: D. 2

T2 read T1's uncommitted A, and T3 read T2's uncommitted B, so both cascade. T4 depends only on T5 and T5 on nobody, so they are unaffected: 2 transactions.

More DBMS and SQL questions

Exams that ask this topic