CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
TS(T1) = 10, TS(T2) = 25, TS(T3) = 20; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which operation of the schedule W3(B), R3(B), W2(A), W1(B), W2(B), R1(B), R2(A), R1(A) is the first to make its transaction roll back?
- A. No operation is rejected
- B. R1(B) (operation 6)
- C. W1(B) (operation 4)
- D. W2(A) (operation 3)
Correct answer: C. W1(B) (operation 4)
Track read-TS and write-TS of each item. W1(B) (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
- Classify the schedule R3(B), R3(A), W3(A), W1(A), R2(B), W1(B), W2(A), R1(B).
- Table Stu(sid, sname) rows: (1, 'Om'), (2, 'Pia'), (3, 'Raj'), (4, 'Sia'). Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2'…
- Table P(x) rows: (1), (2), (2), (3), (NULL). Table Q(x) rows: (2), (3), (3), (NULL), (4). What does this query return? sql SELECT COUNT()…
- R(A, B, C, D, E) has the set of functional dependencies Σ = {E → BD, AE → C, C → AD}. Which of the following FDs is NOT in Σ⁺ (not implied…
- In a B+ tree every internal node can have at most 50 children and every leaf can hold at most 40 keys. With exactly 3 levels (root at…
- 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…