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 ...

Get Operating Systems: Concurrent and Distributed Software Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.