CS FundamentalsHardGATE CS
For the schedule W2(B), R1(B), W1(A), R3(A), C3, C1, C2, which statement is correct?
- A. It is not conflict serializable but it is recoverable
- B. It is conflict serializable (as T2 T1 T3) but not recoverable
- C. It is conflict serializable and recoverable, but not cascadeless
- D. It is neither conflict serializable nor recoverable
Correct answer: B. It is conflict serializable (as T2 T1 T3) but not recoverable
The edges T2 → T1 and T1 → T3 are acyclic, giving T2 T1 T3. But T3 reads from T1 and commits before T1, and T1 reads from T2 and commits before T2, so it is not recoverable: serializability says nothing about commit order.
More DBMS and SQL questions
- 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…
- How many of these statements are correct? (i) Under multiversion timestamp ordering, a read request is never rejected. (ii) Thomas' write…