Concurrency Control questions

Q13

GATE CS 2021 CS-1TransactionsMSQ1 mark
Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery.
Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Answer: A

Q32

GATE CS 2021 CS-1TransactionsMCQ2 marks−2/3 if wrong
Let ri(z)r_i(z) and wi(z)w_i(z) denote read and write operations respectively on a data item zz by a transaction TiT_i. Consider the following two schedules.
S1S_1: r1(x) r1(y) r2(x) r2(y) w2(y) w1(x)r_1(x)\ r_1(y)\ r_2(x)\ r_2(y)\ w_2(y)\ w_1(x)
S2S_2: r1(x) r2(x) r2(y) w2(y) r1(y) w1(x)r_1(x)\ r_2(x)\ r_2(y)\ w_2(y)\ r_1(y)\ w_1(x)
Which one of the following options is correct?
Show answer without attempting

Answer: B

Q32

GATE CS 2021 CS-2TransactionsMCQ2 marks−2/3 if wrong
Let SS be the following schedule of operations of three transactions T1T_1, T2T_2 and T3T_3 in a relational database system:

R2(Y),R1(X),R3(Z),R1(Y),W1(X),R2(Z),W2(Y),R3(X),W3(Z)R_2(Y), R_1(X), R_3(Z), R_1(Y), W_1(X), R_2(Z), W_2(Y), R_3(X), W_3(Z)

Consider the statements P and Q below:

P: SS is conflict-serializable.
Q: If T3T_3 commits before T1T_1 finishes, then SS is recoverable.

Which one of the following choices is correct?
Show answer without attempting

Answer: B

0/30 correct0 marks

Related topics in Transactions