MPMCQueue.NET
MPMCQueue.NET copied to clipboard
Bounded multiple producers multiple consumers queue for .NET
See #8. This is helpful to see the diff.
FYI * Do spin with Spinwait, especially given that this queue is not lock-free per author's [description](http://www.1024cores.net/home/lock-free-algorithms/queues/bounded-mpmc-queue). * Do not use `_bufferMask`, but use `& _buffer.Length - 1`. This probably...
Performance doesn't change for few parallel threads but it could help a lot for many parallel threads because CAS doesn't scale well. Need to test it on multi socket system.