edited by
1,550 views
0 votes
0 votes

Which of the following concurrency protocol ensues both conflict serializability and freedom from deadlock:

  1. $2$-phase locking
  2. Time phase ordering
  1. Both I & II
  2. II only
  3. I only
  4. Neither I nor II
edited by

2 Answers

1 votes
1 votes

2 Phase Locking (2PL) is a concurrency control method that guarantees serializability. The protocol utilizes locks, applied by a transaction to data, which may block (interpreted as signals to stop) other transactions from accessing the same data during the transactions life. 2PL may be lead to deadlocks that result from the mutual blocking of two or more transactions. 
Timestamp-based concurrency control algorithm is a non-lock concurrency control method. In Timestamp based method, deadlock cannot occur as no transaction ever waits.

ans is B

Answer:

Related questions

17 votes
17 votes
3 answers
1
2 votes
2 votes
1 answer
2
makhdoom ghaya asked Jul 24, 2016
1,603 views
Match the following $:$ $\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{Call Control protocol} &\text{i.} & \text{Interface b...