CS FundamentalsVery hardGATE CS · Amazon/Microsoft SDE MCQ
For the schedule W1(A), W2(B), R1(B), W2(A), C2, C1, which statement is correct?
- A. It is recoverable but neither cascadeless nor conflict serializable
- B. It is conflict serializable and cascadeless
- C. It is conflict serializable but not recoverable
- D. It is cascadeless but not conflict serializable
Correct answer: A. It is recoverable but neither cascadeless nor conflict serializable
T1 reads B from uncommitted T2 (not cascadeless), but T2 commits first (recoverable). W2(B) → R1(B) gives T2 → T1 and W1(A) → W2(A) gives T1 → T2, a cycle, so it is not conflict serializable.
More DBMS and SQL questions
- 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?
- T1 and T2 run the schedule R1(A), W2(A), R1(B), C1, C2, and each transaction may acquire any lock as early as it likes. Under which…
- Under snapshot isolation, x = 50 and y = 50 with the rule x + y ≥ 0. T1 reads x and y and, if x + y ≥ 100, sets x = x − 100. T2…