A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. 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);
(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
a. Undo: T3, T1; Redo: T2
b. Undo: T3, T1; Redo: T2, T4
c. Undo: none; Redo: T2, T4, T3; T1
d. Undo: T3, T1, T4; Redo: T2
Answer:Undo: T3, T1; Redo: T2
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: