Definition: Two transactions are serial if all the operations in
one transaction precede the operations in the other.
eg the following actions are serial
Ri(x)Wi(x)Ri(y)Rj(x)Wj(y)
Definition: Two operations are in conflict if:
- At least one is a write
- They both act on the same data
- They are issued by different transactions
Ri(x)Rj(x)Wi(x)Wj(y)Ri(y) has
Rj(x)Wi(x) in conflict
Definition: Two schedules are computationally equivalent if:
- The same operations are involved (possibly reordered)
- For every pair of operations in conflict, the same operation
appears first in each schedule
So, a schedule is serialisable if the schedule is computationally
equivalent to a serial schedule.
Question: Is the following schedule for these two transaction serially
equivalent?
Ri(x)Ri(y)Rj(y)Wj(y)Ri(x)Wj(x)Wi(y)
Subsections
Ian Wakeman
2005-02-22