Consider the following schedule for transactions and
Which one of the schedules below is the correct serialization of the above?
View worked solution
Answer: A
To find the correct serialization order of the given schedule, we construct its precedence graph by identifying conflicting operations. Two operations conflict if they belong to different transactions, access the same data item, and at least one of them is a Write operation.
Let's analyze the conflicting operations chronologically:
- Conflicts on data item :
- occurs before . This gives the precedence edge:
- Conflicts on data item :
- occurs before . This gives:
- occurs before . This also gives:
- occurs before . This gives:
- occurs before . This also gives:
Combining all the precedence constraints, we get the following directed edges in the precedence graph:
Since there are no cycles, the schedule is conflict-serializable. Performing a topological sort on this graph yields the unique serialization order:
Therefore, the correct option is A.
Free practice · Your answers on this page are not saved.
