CS FundamentalsHardGATE CS
In multiple-granularity locking, how many of these lock-mode pairs (held, requested) on the same node are compatible? IS–IX, IX–IX, S–IX, SIX–IS, SIX–IX
- A. 2
- B. 4
- C. 3
- D. 5
Correct answer: C. 3
IS–IX, IX–IX and SIX–IS are compatible. S conflicts with IX (someone may write below a node another reads in full), and SIX conflicts with IX for the same reason, since SIX contains S.
More DBMS and SQL questions
- Which statement correctly states the write-ahead logging (WAL) rule?
- Which statement about compensation log records (CLRs) in ARIES is correct?
- Which locking scheme guarantees BOTH freedom from deadlock and schedules without cascading rollback?
- Table T has 7 rows. What does SELECT COUNT() FROM T HAVING COUNT() > 10; return? (Standard SQL; SQLite accepts HAVING without GROUP BY…
- Table U(x INT UNIQUE) is empty. These statements run one at a time: INSERT (1); INSERT (NULL); INSERT (NULL); INSERT (1). How many succeed…
- Table K(amt INT CHECK (amt > 0)) is empty. These run one at a time: INSERT (-5); INSERT (NULL); INSERT (0); INSERT (3). How many rows does…