in Unknown Category edited by
361 views
1 vote
1 vote

Consider a Simple Checkpointing Protocol and the following set of operations in the log.

$(start, T_4);(write, T_4,y,2,3);(start,T_1);$

$(commit,T_4);(write,T_1,z,5,7);$

$(Checkpoint);$

$(start,T_2);(write,T_2,x,1,9);$

$(commit,T_2);(start,T_3);(write,T_3,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?

  1. $Undo : T_3,T_1;Redo\;T_2$
  2. $Undo : T_3,T_1;Redo\;T_2,T_4$
  3. $Undo : none; \;Redo\;T_2, T_4, T_3, T_1$
  4. $Undo : T_3,T_1,T_4; \;Redo\;T_2$
in Unknown Category edited by
by
361 views

1 comment

edited by
0
0

1 Answer

3 votes
3 votes
before check point $T4$ is committed. So it's neither in undo list nor in redo list.

$T1$ is started but not committed before check point, even after check point. So it should be in undo list.

$T2$ is started after check point and committed, So it should be redo list.

$T3$ is started after check point and not committed, so it should be in undo list.

Option $(A)$ is correct.
edited by
Answer:

Related questions