Which of the following concurrency-control protocols ensures both conflict serializability and freedom from deadlock?
Statement I: Two-phase locking
Statement II: Timestamp ordering
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. Statement I is incorrect but Statement II is correct
Explanation
2PL guarantees conflict serializability but can deadlock. Timestamp ordering ensures conflict serializability and, since transactions never wait, it is deadlock-free.More Database Management Systems questions
- Which of the following is/are true in case of tree locking (the tree protocol)? A. It ensures shorter waiting times. B. It ensures freedom…
- Which of the following statements is/are FALSE? A. A user can assign privileges to any user on any relation. B. A user can assign privilege…
- The techniques used to handle the phantom problem are: A. Time stamping B. Index locking C. Predicate locking D. Execution indexing Choose…
- What will be the order of the typical steps when processing a high-level query? A. Query optimizer B. Runtime database processor C. Scannin…
- Which SQL query retrieves the total number of orders placed by a specific customer?
- Based on the passage, which of the following statements is true?