Consider the following schedules involving two transactions. Which one of the following statements is TRUE?
View worked solution
Answer: C
To determine if the schedules are conflict serializable, we construct the precedence graph for each schedule. A schedule is conflict serializable if and only if its precedence graph contains no cycles.
Recall that two operations conflict if they belong to different transactions, access the same data item, and at least one of them is a write operation.
1. Analysis of Schedule
Let's identify the conflicting operations between different transactions:
- Conflict on : occurs before . This creates a dependency edge:
- Conflict on : occurs before . This creates a dependency edge:
Since there is a cycle () in the precedence graph, is not conflict serializable.
2. Analysis of Schedule
Let's identify the conflicting operations between different transactions:
- Conflict on : occurs before . This creates a dependency edge:
- Conflict on : occurs before . This creates a dependency edge:
The only directed edge in the precedence graph is . Since there are no cycles, is conflict serializable (with the equivalent serial order ).
Thus, is not conflict serializable and is conflict serializable.
Free practice · Your answers on this page are not saved.
