CS FundamentalsVery hardGATE CS · DBMS
TS(T1) = 15, TS(T2) = 30, TS(T3) = 25; all read/write timestamps start at 0. Under basic timestamp ordering with Thomas's write rule, which operation of the schedule W3(A), R1(B), W1(A), R3(A), R2(B), R1(A), W2(A) is the first to make its transaction roll back?
- A. R3(A) (operation 4)
- B. W1(A) (operation 3)
- C. R1(A) (operation 6)
- D. No operation is rejected
Correct answer: C. R1(A) (operation 6)
Track read-TS and write-TS of each item. R1(A) (operation 6) is the first operation that violates the protocol (a read of a value with a newer write-TS, or a write after a newer read or write). Earlier, W1(A) (operation 3) was an obsolete write and is simply ignored under Thomas's rule instead of causing a rollback.
More DBMS and SQL questions
- Table Att(emp, day, status) rows: ('u', 1, 'P'), ('u', 2, 'P'), ('u', 3, 'A'), ('u', 4, 'P'), ('u', 5, 'P'), ('u', 6, 'P'), ('v', 1, 'A')…
- Which of the following is NOT one of the anomalies that normalisation into BCNF is meant to remove?
- Under the write-ahead logging (WAL) rule, which ordering must hold?
- A B+ tree index uses 2048-byte blocks, 14-byte search keys, 8-byte block (tree) pointers and 10-byte record pointers. What is the maximum…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {E → ABF, F → BE, C → F, B → C}. Which of the following FDs is NOT in Σ⁺…