Concurrency Control questions

Q51

GATE CS 2015 CS-3TransactionsMCQ2 marks−2/3 if wrong
Consider the following partial Schedule SS involving two transactions T1T1 and T2T2. Only the read and the write operations have been shown. The read operation on data item PP is denoted by read(P) and the write operation on data item PP is denoted by write(P).
Time instanceT1T2
1read(A)
2write(A)
3read(C)
4write(C)
5read(B)
6write(B)
7read(A)
8commit
9read(B)
Schedule S

Suppose that the transaction T1T1 fails immediately after time instance 9. Which one of the following statements is correct?
Show answer without attempting

Answer: B

Q39

GATE CS 2015 CS-2TransactionsMCQ2 marks−2/3 if wrong
Consider a simple checkpointing protocol and the following set of operations in the log.

(start, T4); (write, T4, y, 2, 3); (start, T1); (commit, T4); (write, T1, z, 5, 7);
(checkpoint);
(start, T2); (write, T2, x, 1, 9); (commit, T2); (start, T3), (write, T3, z, 7, 2);

If a crash happens now and the system tries to recover using both undo and redo operations, what are the contents of the undo list and the redo list?
Show answer without attempting

Answer: A

0/20 correct0 marks

Related topics in Transactions