3 ms·
> it has a cas loop in it so lock-free is a bit of a stretch. To be fair, if that's your standard, there are virtually no lock-free algorithms. The multi-consu
by atq2119 4y ago
> it has a cas loop in it so lock-free is a bit of a stretch.
To be fair, if that's your standard, there are virtually no lock-free algorithms. The multi-consumer has a wait-free retry loop. That's pretty much as good as it gets.
And the SPSC case is lock-free under even the strictest definitions, though of course that's not particularly difficult to achieve.
- JonChesterfield 4y agoThat's reasonable. I'm twitchy about CAS loops because I'm used to unfair schedulers, but they're a great choice in Linux/x64 land