Describe the two-phase, multi server commit protocol. In the banking transaction given below, suppose accounts X and
Question:
Describe the two-phase, multi server commit protocol. In the banking transaction given below, suppose accounts X and Y belong to two different branches of a bank. The local records of the two branches are managed by file servers Si and S2, respectively.
al: begin_transaction
a2: read balance (x) of account X a3: read balance (v) of account Y a4: write (x-5) to account X a5: write (v+5) to account Y a6: end transaction
For the above transaction, if SI is the coordinator and $2 is the worker, give the list of messages exchanged among the client and file servers S1 and $2 for the successful execution of this transaction. What will happen if S2 crashes after performing operation a5?
Introduction to Management Science A Modeling and Cases Studies Approach with Spreadsheets
ISBN: 978-0078024061
5th edition
Authors: Frederick S. Hillier, Mark S. Hillier