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

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?

Step by Step Solution

3.54 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer It consists of two phases the Prepare Phase and the Commit Phase Heres how it works Prepare Phase The coordinator in this case S1 sends a Prepa... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!