Consider the database transactions T1 and T2 , and data items X and Y . Which of the schedule(s) is/are conflict serializable?
View worked solution
Answer: B
To determine which schedule is conflict serializable, we construct the precedence graph for each option. An edge exists if there is a pair of conflicting operations (on the same data item, with at least one write) such that executes before .
Let's analyze the schedules:
- Option A:
- occurs before
- occurs before
- This creates a cycle . Thus, it is not conflict serializable.
- Option B:
- occurs before and
- occurs before
- There are no conflicting operations where executes before . The precedence graph contains only the edge , which is acyclic. Thus, it is conflict serializable.
- Option C:
- occurs before
- occurs before
- This creates a cycle . Thus, it is not conflict serializable.
- Option D:
- occurs before
- occurs before
- This creates a cycle . Thus, it is not conflict serializable.
Free practice · Your answers on this page are not saved.
