Concurrency Control questions

Q51

GATE CS 2016 CS-1TransactionsMCQ2 marks−2/3 if wrong
Consider the following two phase locking protocol. Suppose a transaction T accesses (for read or write operations), a certain set of objects {O1,…,Ok}\{O_1, \dots, O_k\}. This is done in the following manner:
Step 1. T acquires exclusive locks to O1,…,OkO_1, \dots, O_k in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released.
This protocol will
Show answer without attempting

Answer: A

Q22

GATE CS 2016 CS-2TransactionsMCQ1 mark−1/3 if wrong
Suppose a database schedule SS involves transactions T1,…,TnT_1, \dots, T_n. Construct the precedence graph of SS with vertices representing the transactions and edges representing the conflicts. If SS is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule?
Show answer without attempting

Answer: A

Q51

GATE CS 2016 CS-2TransactionsMCQ2 marks−2/3 if wrong
Consider the following database schedule with two transactions, T1T_1 and T2T_2.
S=r2(X);r1(X);r2(Y);w1(X);r1(Y);w2(X);a1;a2S = r_2(X); r_1(X); r_2(Y); w_1(X); r_1(Y); w_2(X); a_1; a_2

where ri(Z)r_i(Z) denotes a read operation by transaction TiT_i on a variable ZZ, wi(Z)w_i(Z) denotes a write operation by TiT_i on a variable ZZ and aia_i denotes an abort by transaction TiT_i.

Which one of the following statements about the above schedule is TRUE?
Show answer without attempting

Answer: C

0/30 correct0 marks

Related topics in Transactions