CS FundamentalsHardGATE CS
TS(T1) = 7, TS(T2) = 3, TS(T3) = 9; all read/write timestamps start at 0. The schedule W2(A), R3(A), W1(A), W3(B), R1(B), W2(B) is run, skipping an aborted transaction's later operations. Which transactions are rolled back under basic TO, and which with Thomas' write rule?
- A. Basic: T1 only; Thomas: T1 only
- B. Basic: T1 and T2; Thomas: T1 only
- C. Basic: T1 and T2; Thomas: T2 only
- D. Basic: T2 only; Thomas: none
Correct answer: B. Basic: T1 and T2; Thomas: T1 only
W1(A) fails both ways because RTS(A) = 9 > 7 (a read, so Thomas cannot help). W2(B) has TS 3 < WTS(B) = 9 with RTS(B) = 0: basic TO aborts T2, Thomas' rule just ignores the obsolete write.
More DBMS and SQL questions
- TS(T1) = 5, TS(T2) = 10, TS(T3) = 15. T2 holds an exclusive lock on X; then T1 and T3 each request X. What happens under wound-wait?
- T1 and T2 run the schedule R1(A), W2(A), R1(B), C1, C2, and each transaction may acquire any lock as early as it likes. Under which…
- Under snapshot isolation, x = 50 and y = 50 with the rule x + y ≥ 0. T1 reads x and y and, if x + y ≥ 100, sets x = x − 100. T2…
- How many of these statements are correct? (i) Under multiversion timestamp ordering, a read request is never rejected. (ii) Thomas' write…
- During ARIES restart, the analysis pass rebuilds a dirty page table with entries P1 (recLSN 140), P2 (recLSN 95) and P3 (recLSN 210). The…
- Table Emp(eid, name, mgr, dept, sal) rows: (1, 'Aru', NULL, 'D1', 90), (2, 'Bin', 1, 'D1', 60), (3, 'Cy', 1, 'D2', 70), (4, 'Dev', 2…