- Schedule S2:
- S2 is
not serializable because:
- There are 2 possible
serial schedules:
Question:
- Is schedule S2
equivalent to
one of the
serial schedules ???
|
- Schedule 2 is
not equivalent to
serial schedule #1 because:
- In
schedule S2,
transaction T1
made the final update to
DB element A:
But in
the
serial schedule #1,
transaction T2
made the final update to
DB element A:
Therefore,
schedule S2
is not equivalent to
the serial schedule #1
|
- Schedule 2 is
not equivalent to
serial schedule #2 because:
- In
schedule S2,
transaction T2
used DB element B that was
written by
transaction T1:
But
in serial schedule #2,
transaction T2
used B that was
written by
another (the previous)
transaction:
Therefore,
schedule S2
is not equivalent to
the serial schedule #2
|
- Therefore:
|
- Schedule S2 is
recoverable because:
|