我认为这个原子操作比++
更快。我只看到有利于<code>Interlocked.Increment</code>的优点。它的缺点是什么?
As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...