Consider the following schedule S of transactions
Which one of the following statements is CORRECT?
View worked solution
Answer: C
To determine the properties of the schedule , we analyze it for conflict-serializability and recoverability.
1. Conflict Serializability
We construct the precedence graph by identifying conflicting operations (two operations by different transactions on the same data item, where at least one is a write):
- and
- and
- and
- and
- and
The directed edges in the precedence graph are:
Since there are no cycles in this precedence graph, the schedule is conflict-serializable. A valid serial order is .
2. Recoverability
A schedule is recoverable if, for every transaction that reads a data item written by , the commit operation of occurs before the commit operation of ().
Let's check the read-from relations in :
- reads written by :
- commits before (). This condition is satisfied.
- reads written by :
- commits before (). This condition is satisfied.
Since all read-from dependencies satisfy the commit order requirement, the schedule is recoverable.
Conclusion
The schedule is both conflict-serializable and recoverable.
Free practice · Your answers on this page are not saved.
