2 ms·
Compare and swap has a consensus number of 2. A consensus number is the maximum number of processes for which the object can solve a simple consensus problem. I
by jamesblonde 11y ago
Compare and swap has a consensus number of 2. A consensus number is the maximum number of processes for which the object can solve a simple consensus problem. It is impossible to construct a wait-free implementation of an object with consensus number n from an object with a lower consensus number.
In other words, test-and-set is weaker than transactions or Paxos for >2 concurrent clients.
http://cs.brown.edu/~mph/Herlihy91/p124-herlihy.pdf http://cs.brown.edu/~mph/Herlihy91/p124-herlihy.pdf
- jhallenworld 11y agoWait, compare and swap has a consensus number of infinite (from Herlihy's paper).
- jamesblonde 11y agoOops, you're right. I was thinking of test-and-set.