CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
TS(T1) = 20, TS(T2) = 5, TS(T3) = 25; all read/write timestamps start at 0. Under basic timestamp ordering with Thomas's write rule, which operation of the schedule R3(B), W3(A), W2(A), R1(B), W2(B), R1(A), W1(B) is the first to make its transaction roll back?
- A. No operation is rejected
- B. R1(A) (operation 6)
- C. W2(A) (operation 3)
- D. W2(B) (operation 5)
Correct answer: D. W2(B) (operation 5)
Track read-TS and write-TS of each item. W2(B) (operation 5) 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, W2(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
- R(A, B, C, D, E, F) has functional dependencies D → BF, AE → B, F → CD, DE → C. How many prime attributes does R have?
- R(A, B, C, D, E) has the set of functional dependencies Σ = {CE → D, C → AD, AE → CD}. Which of the following FDs is NOT in Σ⁺ (not…
- R(A, B, C, D) has functional dependencies D → BC, B → C, C → BD. What is the highest normal form R satisfies?
- 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 functional dependencies AE → BC, B → F, E → C, BD → E, F → E. Which of the following is the complete set of…
- R(A, B) = {(a1, b2), (a1, b3), (a2, b1), (a2, b2), (a2, b3), (a3, b1), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b3}. What is R ÷ S?