in Databases
567 views
0 votes
0 votes
Consider the following schedule

R1(a) W1(a) R2(a) commit2 W1(a) commit1

Is this schedule recoverable.I feel it is recoverable even though there is a dirty read
in Databases
567 views

4 Comments

what do you mean by not vice-versa? even schedule which you mentioned it's also not recoverable.
1
1
In my example, T1 is getting committed first so it's recoverable..
0
0
ohh sorry i haven't checked the commit part i thought you just modified the write operation.... :)
0
0

1 Answer

0 votes
0 votes
Best answer

RECOVERABLE SCHEDULE$:-$ A recoverable schedule is one where, for each pair of Transaction $T_{i}$ and $T_{j}$ such that if $T_{j}$ reads data item previously written by $ T_{i},$ then the commit operation of $T_{i}$ appears before the commit operation $T_{j}.$

$T_{1}$ $T_{2}$
R(a)  
W(a)  
  R(a)
  Commit
Commit  

So this schedule is not recoverable.

selected by