Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data ite x, denoted by r(x) and ω(x) respectively. Which of them is/are conflict serializable.
A
r1(x);r2(x);ω1(x);r3(x);ω2(x)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
r2(x);r1(x);ω2(x);r3(x);ω1(x)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
r2(x);ω2(x);r3(x);r1(x);ω1(x)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
r3(x);r2(x);r1(x);ω2(x);ω1(x)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C
r2(x);ω2(x);r3(x);r1(x);ω1(x)
option (d) has first all operations of transaction 2, then 3 and finally 1.
There can not be any conflict as it is a serial schedule with sequence 2→3→1.