edited by
22,760 views
51 votes
51 votes

Which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock?

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

6 Answers

2 votes
2 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 transaction’s life. 2PL may be lead to deadlocks that result from the mutual blocking of two or more transactions. See the following situation, neither T3 nor T4 can make progress.

Timestamp-based concurrency control algorithm is a non-lock concurrency control method. In Timestamp based method, deadlock cannot occur as no transaction ever waits.

0 votes
0 votes
Consider about the case of Strict 2PHASE locking protocol,

it is not deadlock free

Also

Time stamp ordering is no guarantee to have conflict serialisabilty

 

HENCE D is answer
Answer:

Related questions

31 votes
31 votes
4 answers
1
go_editor asked Sep 30, 2014
10,577 views
Consider the following schedule for transactions $T1, T2$ and $T3:$$$\begin{array}{|c|c|c|}\hline \textbf{T1} & \textbf{T2} & \textbf{T3} \\\hline \text{Read(X)} & \text...
42 votes
42 votes
8 answers
2
29 votes
29 votes
2 answers
3
go_editor asked Sep 29, 2014
8,359 views
A relational schema for a train reservation database is given below.passenger(pid, pname, age)reservation(pid, class, tid)$$\overset{\text{Passenger}}{\begin{array}{|c|c|...
56 votes
56 votes
8 answers
4
go_editor asked Sep 29, 2014
32,930 views
Consider a $B^+$-tree in which the maximum number of keys in a node is $5$. What is the minimum number of keys in any non-root node?$1$$2$$3$$4$