CS FundamentalsVery hardGATE CS
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 locking protocols can this exact schedule occur?
- A. Basic 2PL only, not strict or rigorous 2PL
- B. None of the basic, strict or rigorous variants
- C. Basic and strict 2PL, but not rigorous 2PL
- D. All three: basic, strict and rigorous 2PL
Correct answer: C. Basic and strict 2PL, but not rigorous 2PL
T1 can take S(A) and S(B) first and release S(A) before W2(A), still being two-phase. Strict 2PL holds only exclusive locks to commit, so releasing T1's shared lock early is allowed; rigorous 2PL holds every lock to commit, so W2(A) could not run before C1.
More DBMS and SQL questions
- 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…
- During ARIES restart, the analysis pass rebuilds a dirty page table with entries P1 (recLSN 140), P2 (recLSN 95) and P3 (recLSN 210). The…
- Table Emp(eid, name, mgr, dept, sal) rows: (1, 'Aru', NULL, 'D1', 90), (2, 'Bin', 1, 'D1', 60), (3, 'Cy', 1, 'D2', 70), (4, 'Dev', 2…
- Table Emp(eid, name, mgr, dept, sal) rows: (1, 'Aru', NULL, 'D1', 90), (2, 'Bin', 1, 'D1', 60), (3, 'Cy', 1, 'D2', 70), (4, 'Dev', 2…
- Table Emp(eid, name, mgr, dept, sal) rows: (1, 'Aru', NULL, 'D1', 90), (2, 'Bin', 1, 'D1', 60), (3, 'Cy', 1, 'D2', 70), (4, 'Dev', 2…