- Consider the following
3 transactions:
- Consider the following
2 schedules with the
3 transactions:
Schedule S2 is
a serial schedule !!!
- The effect
(= state of the
database) of
schedules
S1 and
S2 are
identical:
(The database state =
the values of
the database elements)
Therefore:
- The schedule
S1 is
a serializable schedule !!!
because
(by definition):
- Schedule
S1 is
equivalent to
the serial schedule S1
for every database state !!!
|
|
- However:
- We cannot
transform
the schedule
S1
into a serial schedule by
swapping
adjacent
non-conflicting actions:
|
Therefore,
by
definition:
- The schedule
S1 is
not
a conflict-serializable
schedule !!!
|
|