Question
Consider the following read-write schedule over three transactions , and , where the subscripts in the schedule indicate transaction IDs:
Which of the following transaction schedules is/are conflict equivalent to ?
Official answer and solution
- Official answer
- B, C and D
- From
- Official GATE 2024 answer key
Solution
Construct the conflict precedence graph for schedule and find all valid topological orderings of .
Checking conflicting operations (pairs of operations from different transactions on the same data item where at least one is a write):
- Data item : Accessed only by () no conflicts.
- Data item : Accessed only by () no conflicts.
- Data item : performs before performs . Thus the conflicts , , and all yield the single directed edge in the precedence graph.
Since has no edges and must precede , the serial schedules conflict-equivalent to are all topological sorts with before : (B), (C), and (D).
Options (B), (C), (D)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
- Question
- 46 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.