Answer : 4 (None)
Thomas’ write rule :
Suppose that transaction Ti issues write(Q).
1. If TS(Ti) < R-timestamp(Q), then the value of Q that Ti is producing was previously needed, and it had been assumed that the value would never be produced. Hence, the system rejects the write operation and rolls Ti back.
2. If TS(Ti) < W-timestamp(Q), then Ti is attempting to write an obsolete value of Q. Hence, this write operation can be ignored.
3. Otherwise, the system executes the write operation and sets W-timestamp(Q) to TS(Ti).
Thus, None of the options A and B is correct. Because A makes the schedule legal under both Basic TSO protocol and Thomas write TSO protocol.
And B makes the schedule illegal under both Basic TSO protocol and Thomas write TSO protocol because when T1 issues W(A) in Q statement, then according to Condition_1 of Thomas Rule TS(T1) < (Read_TS(A) = TS(T2)) thus , the system rejects the write operation and rolls T1 back.
So, The correct answer is None.