For the schedule given below, which of the following is correct:
View worked solution
Answer: D
To determine the properties of the given schedule, let us analyze the conflicts between transactions (left column) and (right column):
- Conflict on : writes at step 3, and reads at step 4. This creates a conflict dependency: .
- Conflict on : writes at step 6, and reads at step 7. This creates a conflict dependency: .
The precedence graph contains a cycle: . Because of this cycle, the schedule is not conflict serializable. Since there are only two transactions, conflict serializability is equivalent to view serializability, meaning the schedule is not serializable.
Furthermore, any schedule allowed by the Two-Phase Locking (2PL) protocol is guaranteed to be conflict serializable. Since this schedule is not conflict serializable, it cannot occur under any 2PL scheme.
Thus, the schedule is not serializable and cannot occur in a scheme using 2PL protocol.
Free practice · Your answers on this page are not saved.
