Question: Distributed Transactions: b) Given the following interleaving of two distributed transactions T and U, both requesting services from servers X and Y: Schedule at server
Distributed Transactions:
b) Given the following interleaving of two distributed transactions T and U, both requesting services from servers X and Y: Schedule at server X: T: U: Read(A); Write(A); Read(A); Write(A); Schedule at Server Y: T: U: Read(B); Write(B); Read(B); Write(B); (i) Is this interleaving serially equivalent at each server? Please briefly justify your answer. (ii) Is this interleaving serially equivalent globally? Please briefly justify your answer. (iii) Assuming a strict Two-phase locking is in use, and a strict Two-phase locking in a distributed transaction requires that the distributed transaction cannot acquire a lock at any server after it has released a lock at any server. Can the use of two-phase locking result in the above interleaving? Will it lead to a deadlock? Please briefly justify your answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
