CS FundamentalsVery hardProduct-company MCQ pattern
Schedule: R2(A), R1(B), W2(A), R3(A), W1(B), W3(A), R2(B), W2(B). Which statement is correct?
- A. Conflict serializable, equivalent only to T1 → T2 → T3
- B. Conflict serializable, equivalent to both T1 → T2 → T3 and T2 → T1 → T3
- C. Not conflict serializable
- D. Conflict serializable, equivalent only to T2 → T3 → T1
Correct answer: A. Conflict serializable, equivalent only to T1 → T2 → T3
Conflicts on A: W2(A) before R3(A) and W3(A) → T2 → T3. Conflicts on B: R1(B) before W2(B) and W1(B) before R2(B) → T1 → T2. The graph T1 → T2 → T3 is acyclic with only one topological order.
More DBMS and SQL questions
- Schedule: R1(A), W2(A), W1(A), W3(A). Which statement is correct?
- Classify the schedule W1(A), W2(A), C1, C2 (C = commit; T2 does not read A).
- How many of the following statements are correct? 1. Strict 2PL holds all exclusive locks until commit or abort and so avoids cascading…
- Deadlock prevention with timestamps: T1 (timestamp 5) is older than T2 (timestamp 10). T2 holds a lock on X and T1 requests it…
- Immediate-update recovery with a checkpoint. Log (oldest first): <T1 start>, <T1 commit>, <T2 start>, <checkpoint, active = {T2}>, <T3…
- A file of 30,000 records (100 bytes each, unspanned) is sorted on key K and stored in 1,024-byte blocks. A primary (sparse) index on K…