无锁栈和队列在C#队列、无锁栈

2023-09-02 12:02:38 作者:许你似水温柔

有谁知道是否有任何锁定的容器中的库可用于.NET?

Does anyone know if there are any lock-free container libraries available for .NET ?

preferably东西被证明比同步包装,我们在.NET工作和更快的。

Preferably something that is proven to work and faster than the Synchronized wrappers we have in .NET.

我发现在.NET的一些文章,但它们都没有指定任何速度标杆,也没有激发出更大的信心,他们的可靠性。

I have found some articles on the .NET, but none of them specify any speed benchmarking, nor do they inspire much confidence in their reliability.

感谢

推荐答案

晚了,但总比不来,我想我要补充朱利安Bucknalls文章列表更好。

Late, but better than never I thought I would add Julian Bucknalls articles to this list.

但他没有性能数据。在我自己的结构测试以及规模的列表进行比较,以锁定(非常低的内核使用比ReaderWriterLock)。

But he does not have performance numbers. In my testing of his structures the list scaled well compared to locking (very low kernel usage compared to ReaderWriterLock).

他的博客有一系列的在C#中的无锁结构的文章。

His blog has a series of articles on lock free structures in C#.

LOCK-free的数据结构:堆叠的