CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
TS(T1) = 25, TS(T2) = 5, TS(T3) = 30; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which operation of the schedule W2(A), R3(B), W1(A), W3(A), W3(B), W2(B), R2(A), R1(A) is the first to make its transaction roll back?
- A. W2(B) (operation 6)
- B. W2(A) (operation 1)
- C. No operation is rejected
- D. W1(A) (operation 3)
Correct answer: A. W2(B) (operation 6)
Track read-TS and write-TS of each item. W2(B) (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).
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies DE → B, C → E, D → AC. What is the highest normal form R satisfies?
- R(A, B, C, D, E, F) has functional dependencies C → B, F → C, DF → B, B → F, A → F. What is the closure {AE}⁺?
- R(A, B, C, D, E) with functional dependencies B → E, CE → B, C → E, E → C is decomposed into R1(A, C, E), R2(A, B, D), R3(B, C). Which…
- Classify the schedule W1(B), R3(A), W2(B), R2(B), W1(A), C2, C1, W3(B), C3 (Ci = commit of Ti) by the strongest property it satisfies.
- Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2', NULL), (2, 'C1', 65), (3, 'C2', 90), (3, 'C3', 75), (5, 'C1', 50). What does…
- R(A, B, C, D, E, F) has FDs A → BCE, C → ABD, DF → BE. Each option is a relation schema obtained by projecting R, with the dependencies…