Consider three data items and and the following execution schedule of transactions and In the diagram, and denote the actions reading and writing the data item respectively.
Which of the following statements is correct?
View worked solution
Answer: D
To determine if the given schedule is serializable, we construct its precedence (dependency) graph. A directed edge exists if there is a conflict between an operation in and a subsequent operation in on the same data item (where at least one of the operations is a write).
1. Identify Conflicting Operations
- On Data Item :
- occurs before
- occurs before
- On Data Item :
- occurs before
- On Data Item :
- occurs before (already captured)
2. Construct the Precedence Graph
Combining the dependency edges, we get:
The precedence graph contains a cycle: .
Conclusion
Since the precedence graph contains a cycle, the schedule is not conflict serializable. Furthermore, because there are no blind writes (every write is preceded by a read on the same data item by the same transaction), conflict serializability is equivalent to view serializability. Thus, the schedule is not serializable at all.
Therefore, the correct option is D.
Free practice · Your answers on this page are not saved.
