CS FundamentalsHardGATE CS
Classify the schedule R2(X), W1(X), W2(X), W3(X) (all transactions commit afterwards).
- A. Conflict-serializable
- B. View-serializable but not conflict-serializable
- C. Neither conflict- nor view-serializable
- D. Conflict-serializable but not view-serializable
Correct answer: B. View-serializable but not conflict-serializable
R2(X) → W1(X) gives T2 → T1 and W1(X) → W2(X) gives T1 → T2, a cycle, so it is not conflict-serializable. The serial order T2, T1, T3 has the same initial read (T2) and the same final write (T3), so it is view-serializable thanks to the blind writes.
More DBMS and SQL questions
- 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 −…
- Two transactions each read row X under a shared lock and later want to update it, so each requests an upgrade to an exclusive lock. What…