问题描述
有谁知道是否有任何可用于 .NET 的无锁容器库?
Does anyone know if there are any lock-free container libraries available for .NET ?
最好是被证明有效且比我们在 .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.
谢谢
推荐答案
迟到了,但总比没有好,我认为我会将 Julian 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#.
无锁数据结构:堆栈
这篇关于在 C# 中锁定空闲堆栈和队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!