CS FundamentalsHardGATE CS
Under basic two-phase locking, which order of serial execution is a schedule conflict equivalent to?
- A. The order in which they started
- B. The order of their commit records
- C. The order of their lock points
- D. The order of their timestamps
Correct answer: C. The order of their lock points
In 2PL, if Ti's lock point precedes Tj's, every conflict between them goes from Ti to Tj, so ordering by lock point (when each takes its last lock) gives an equivalent serial schedule. Start order can differ; commit order equals it only under strict variants.
More DBMS and SQL questions
- A query plan computes σ{dept = 'D1' ∧ sal > 50}(Emp ⋈ Dept). Which rewrite is a heuristic optimizer most likely to apply first, and why?
- A B+ tree has order p = 4 (at most 4 children per internal node, at most 3 keys per leaf) and every node except the root is at least half…
- A relation R has candidate keys AB and BC, and FDs AB → C, C → A. Which statement explains why R is in 3NF but not BCNF?
- Which relational-algebra equivalence is NOT valid in general?
- R(A, B, C, D, E, F, G) has the functional dependencies AB -> C, C -> D, D -> A, BE -> F, F -> E, CG -> B. How many candidate keys does R…
- R(A, B, C, D, E) has the functional dependencies C → B, A → D, A → C, BE → A. How many superkeys does R have (counting every attribute set…