(no title)
nano_o
|
12 years ago
I'm a bit skeptical about the code: it seems that it's using only the atomic fetch-and-add synchronization instruction, and not compare-and-swap.
However, I think that whether queues are implementable with only fetch-and-add is an open problem in distributed computing (in technical terms, whether queues are in the Common2 family. See for example Afek et al., "Common2 Extended to Stacks and Unbounded Concurrency".)
eloff|12 years ago
nano_o|12 years ago
colanderman|12 years ago
colanderman|12 years ago
[1] http://en.wikipedia.org/wiki/Fetch-and-add