Computer Sciences > Gate 2016 Set-1 > Transactions
Consider the following two phase locking protocol. Suppose a transaction T accesses (for read or write operations), a certain set of objects {O1,...,Ok}. This is done in the following manner:

Step 1. T acquires exclusive locks to O1,...,Ok in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.

This protocol will
A
guarantee serializability and deadlock-freedom
B
guarantee neither serializability nor deadlock-freedom
C
guarantee serializability but not deadlock-freedom
D
guarantee deadlock-freedom but not serializability

Correct : Transactions

Similar Questions

Consider the following transaction involving two bank accounts x and y. read(x); x := x – 50; write(x); read(y); y := y + 50; write(y) The constraint th...
#58 MCQ
Consider the following database schedule with two transactions, T1 and T2. S = r2(X); r1(X); r2(Y); w1(X); r1(Y); w2(X); a1; a2; where ri(Z) denotes a read op...
#84 MCQ
Suppose a database schedule S involves transactions T1, ....Tn. Construct the precedence graph of S with vertices representing the transactions and edges repres...
#101 MCQ

Related Topics

two phase locking transaction management GATE 2016 lock ordering protocol deadlock prevention serializability guarantee two phase locking protocol transaction locks management GATE computer science 2016

Unique Visitor Count

Total Unique Visitors

Loading......