Consider the transactions and the schedules given below.
Which one of the following statements about the schedules is TRUE?
View worked solution
Answer: A
To determine if the schedules are conflict-serializable, we construct their precedence graphs. An edge exists if there are conflicting operations and (where at least one is a write) such that occurs before .
Analysis of Schedule :
- On : is before
- On : is before
- On : is before and
The precedence graph for contains the edges: . Since there are no cycles, is conflict-serializable (with equivalent serial order ).
Analysis of Schedule :
- On : is before
- On : is before
- On : is before
The precedence graph for contains the cycle . Since it contains a cycle, is not conflict-serializable.
Thus, only is conflict-serializable.
Free practice · Your answers on this page are not saved.
