Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock?
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock?
(1) 2-phase Locking
(2) Time stamp - ordering
Show answerHide answer
Correct answer: (C) (2) only
Explanation
In basic two-phase locking there is a chance of deadlock. The timestamp-ordering protocol ensures conflict serializability and, since no transaction waits, it is free from deadlock. So the answer is (2) only.