CS FundamentalsHardGATE CS · Product placement
Under basic two-phase locking, a conflict-serializable schedule is equivalent to the serial schedule that orders transactions by their:
- A. Timestamps assigned at start
- B. Lock points (the moment each acquires its last lock)
- C. Start times
- D. Commit times, always
Correct answer: B. Lock points (the moment each acquires its last lock)
Under 2PL, if Ti → Tj in the precedence graph, Ti's lock point precedes Tj's, so ordering by lock points gives an equivalent serial order. Commit order works only for strict/rigorous variants.
More DBMS and SQL questions
- A weak entity set Dependent (partial key dname) is owned by Employee (key eid) through the identifying relationship HasDep. Which table…
- R(A, B, C, D, E, F) has functional dependencies B → C, AF → E, AC → E, CE → A. How many prime attributes does R have?
- R(A, B, C, D, E) has functional dependencies E → AB, A → D, D → BE. Which decomposition of R is lossless-join?
- TS(T1) = 30, TS(T2) = 20, TS(T3) = 10; all read/write timestamps start at 0. Under basic timestamp ordering (no Thomas write rule), which…
- 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'…
- R(A, B) = {(a1, b2), (a1, b3), (a2, b2), (a2, b3), (a3, b1), (a3, b3), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b2}. What is R ÷ S?