Skip to content

Commit

Permalink
Add a note that .NET Core uses this algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrnikitin authored Jan 11, 2023
1 parent 3750330 commit bfce9e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

Bounded multiple producers multiple consumers queue for .NET

**Note: `ConcurrentQueue<T>` uses this algorithm since .NET Core and .NET >5.0. Please use that instead. Unless you want to modify this implementation for you needs, e.g. MPSC, SCMP.**

### Overview
This is an attempt to port [the famous Bounded MPMC queue algorithm by Dmitry Vyukov][1024-mpmc] to .NET. All credit goes to Dmitry Vyukov. I let myself quote the description:

Expand Down Expand Up @@ -314,4 +316,4 @@ src\MPMCQueue.NET\MPMCQueue.cs @ 63:

[1024-mpmc]: http://www.1024cores.net/home/lock-free-algorithms/queues/bounded-mpmc-queue
[false-sharing]: http://mechanical-sympathy.blogspot.lt/2011/07/false-sharing.html
[memory-barriers-in-dot-net]: http://afana.me/archive/2015/07/10/memory-barriers-in-dot-net.aspx/
[memory-barriers-in-dot-net]: http://afana.me/archive/2015/07/10/memory-barriers-in-dot-net.aspx/

0 comments on commit bfce9e2

Please sign in to comment.