CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
T1: W1(A), W1(B) and T2: R2(A), R2(B). Of all 6 interleavings that keep each transaction's own order, how many are conflict serializable?
- A. 6
- B. 3
- C. 4
- D. 2
Correct answer: C. 4
Enumerate the C(4, 2) = 6 interleavings and draw the precedence graph of each; exactly 4 have no cycle (all edges between T1 and T2 point the same way). The two serial schedules are always among them.
More DBMS and SQL questions
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- A buffer manager uses STEAL (uncommitted pages may be written to disk) and NO-FORCE (committed pages need not be written at commit). What…
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- A file of 10,000 records is physically ordered on the non-key field dept, which has 500 distinct values. A clustering index on dept has…
- Which expression is equivalent to R ÷ S, where R(A, B) and S(B)?
- Which is a correct reason why testing a schedule for VIEW serializability is rarely done in practice?