CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
TS(T1) = 30, TS(T2) = 20, TS(T3) = 10; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which operation of the schedule W1(A), R1(B), R2(B), R3(A), W3(B), R2(A), W2(B) is the first to make its transaction roll back?
- A. No operation is rejected
- B. R3(A) (operation 4)
- C. R2(A) (operation 6)
- D. W1(A) (operation 1)
Correct answer: B. R3(A) (operation 4)
Track read-TS and write-TS of each item. R3(A) (operation 4) 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).
More DBMS and SQL questions
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- R(A, B) = {(a1, b2), (a1, b3), (a2, b2), (a2, b3), (a3, b1), (a3, b3), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b2}. What is R ÷ S?
- Classify the schedule R3(A), R3(B), W1(A), R1(A), C3, R2(A), C1, W2(B), W2(A), C2 (Ci = commit of Ti) by the strongest property it…
- Consider the schedule W1(A), R1(B), W2(A), R1(A), R3(B), W3(A), R2(A). Which statement is correct?
- In multiple-granularity locking, transaction T1 holds an SIX lock on a table. Which lock request by another transaction on the same table…
- On R(A, B, C, D, E), F = {D → C, C → AB, E → BC} and G = {BE → AC, CD → B, BD → C}. Which statement is correct? ("F covers G" means every…