write(T1, balx), read(T2, balx), write(T1, balx), commit(T2), abort(T1)
I'm revising for an exam and these are one of the questions that I've been looking over on the mock paper.
According to the Marking Scheme the answer is that the transaction is serializable. But I just don't understand how.
T1 and T2 get trapped in a cycle as T1 points to T2 and then point backs to T1 in a precedence graph, therefore not making it serializable. Is the marking wrong or am I missing something here?