CS FundamentalsHardGATE CS
Which serial order is conflict-equivalent to the schedule R2(A), R1(B), W3(A), W1(C), R3(C), R4(B), W4(A)?
- A. T1, T3, T2, T4
- B. T1, T2, T4, T3
- C. T2, T1, T3, T4
- D. No serial order: the schedule is not conflict-serializable
Correct answer: C. T2, T1, T3, T4
Conflicts give T2 → T3 (R2(A), W3(A)), T1 → T3 (W1(C), R3(C)), T2 → T4 (R2(A), W4(A)) and T3 → T4 (W3(A), W4(A)). The graph is acyclic and T2, T1, T3, T4 respects every edge; the others put T3 before T2 or T4 before T3.
More DBMS and SQL questions
- Classify the schedule R2(X), W1(X), W2(X), W3(X) (all transactions commit afterwards).
- Classify the schedule W1(X), W2(X), R3(X), C3, C1, C2 (Ci = commit of Ti).
- Timestamp ordering with Thomas's write rule: TS(T1) = 5, TS(T2) = 10, TS(T3) = 15, and all read/write timestamps start at 0. The…
- Timestamps: T1 = 10 (oldest), T2 = 20, T3 = 30. T2 holds an exclusive lock on X. First T1 requests X, then T3 requests X. Which is correct?
- A hospital requires at least one doctor on call. Doctors Ana and Ben are both on call. Each starts a transaction under snapshot isolation…
- An account has balance 1000. Two sessions at READ COMMITTED each run SELECT bal (both read 1000 before either writes), then compute 1000 −…