O'Reilly logo

Operating Systems: Concurrent and Distributed Software Design by Tim Harris, Jean Bacon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

22.8. Atomic commitment: The two-phase commit (2PC) protocol

We assume a number of participating nodes and a commit manager at the co-ordinating node of the transaction (see Figure 22.3(a)). Each participating node 'votes' for commit or abort of the transaction. Ultimately, all the nodes must make the same decision and the purpose of the protocol is to ensure this. The two phases involved are, broadly:

Phase 1:the commit manager requests and assembles the 'votes' for commit or abort of the transaction from each participating node;
Phase 2:the commit manager decides to commit or abort, on the basis of the votes, and propagates the decision to the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required