Questions On Transactions Control
Questions On Transactions Control
Q1. Consider the following schedule for transactions T1, T2 and T3:
T1 T2 T3
Reads (X)
Reads (Y)
Reads (Y)
Writes (Y)
Writes (X)
Writes (X)
Reads (X)
Writes (X)
Which one of the schedules below is the correct serialization of the above?
(a) T1->>T3->>T2
(b) T2->>T1->>T3
(c) T2->>T3->>T1
(d) T3->>T1->>T2
Q2. Consider the following schedule S of transactions T1, T2, T3, T4:
T1 T2 T3 T4
Reads (X)
Writes (X)
Commit
Writes (X)
Commit
Writes (Y)
Reads (Z)
Commit
Reads (X)
Reads (Y)
Commit