HiveBrain v1.2.0
Get Started
← Back to all entries
gotchaMinor

What is the difference between consensus and mutual exclusion in Distributed Systems?

Submitted by: @import:stackexchange-cs··
0
Viewed 0 times
theexclusionwhatsystemsconsensusdifferencebetweendistributedandmutual

Problem

If we can achieve consensus, does it imply we can achieve mutual exclusion? Is there a difference?

Example : Paxos solves the consensus problem, can it also be used to solve mutual exclusion?

Solution

If you have a consensus mechanism, then you can achieve consensus on who owns a critical section, and thus solve mutual exclusion. This is exactly what happens in, say, single-master distributed database systems when they are doing leader election to decide which machine will accept writes (this has to be mutually exclusive).

However, different algorithms for mutual exclusion provide different guarantees of progress in the presence of failures; those that are fully fault-tolerant are essentially equivalent to consensus; those that aren't, are weaker.

Context

StackExchange Computer Science Q#30581, answer score: 4

Revisions (0)

No revisions yet.