retagged by
1,250 views
1 votes
1 votes

Assume there are n transactions  $T^{1}$., $T^{2}$., .... ,$T^{n}$.

Every transaction Writes a value  of variable $X$  and then it is read by its successive transaction, like, $T^{1}$ writes a value of $X$ that is read by $T^{2}$ 

$T^{2}$  writes a value of X that is read by $T^{3}$

$T_{n-1}$writes a value of X that is read by $T^{n}$     

Now, if $T_1$ fails then total number of transaction rollbacks are required to recover the schedule is ?

  1. $0$
  2. $\left ( n \right )$
  3. $1$
  4. $\left ( n-1 \right )$
retagged by

1 Answer

Best answer
1 votes
1 votes

Here  cascading rollback is occured between transactions .

So total number of transaction rollbacks are required to recover the schedule is  n .

Answer is   n .

Which is option B .

selected by
Answer:

Related questions

8 votes
8 votes
2 answers
2