CS FundamentalsVery hardGATE CS
Classify the schedule R1(X), W2(X), W1(X), W3(X), R4(X).
- A. Conflict serializable, equivalent to T2 T1 T3 T4
- B. View serializable (as T1 T2 T3 T4) but not conflict serializable
- C. Neither conflict nor view serializable
- D. Conflict serializable, equivalent to T1 T2 T3 T4
Correct answer: B. View serializable (as T1 T2 T3 T4) but not conflict serializable
R1(X) → W2(X) and W2(X) → W1(X) form a cycle, so it is not conflict serializable. In T1 T2 T3 T4, T1 reads the initial X, T4 reads T3's write and T3 writes last, exactly as here; the blind writes make the views match.
More DBMS and SQL questions
- Classify the schedule W1(A), W2(A), C1, R3(A), C2, C3 (Ci = commit of Ti) by the strongest property it satisfies.
- For the schedule W1(A), W2(B), R1(B), W2(A), C2, C1, which statement is correct?
- For the schedule W2(B), R1(B), W1(A), R3(A), C3, C1, C2, which statement is correct?
- TS(T1) = 1, TS(T2) = 2, TS(T3) = 3; all read/write timestamps start at 0. The schedule R1(A), W3(A), W2(A), R2(B), W1(B) is run under…
- TS(T1) = 7, TS(T2) = 3, TS(T3) = 9; all read/write timestamps start at 0. The schedule W2(A), R3(A), W1(A), W3(B), R1(B), W2(B) is run…
- TS(T1) = 5, TS(T2) = 10, TS(T3) = 15. T2 holds an exclusive lock on X; then T1 and T3 each request X. What happens under wound-wait?