在C#中锁定自由堆栈和队列 [英] Lock free stack and queue in C#

查看:377
本文介绍了在C#中锁定自由堆栈和队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道是否有任何无锁的容器库可用于.NET?



最好是被证明是有效的,并且比我们拥有的同步包装器更快在.NET中。



我已经在.NET上找到了一些文章,但没有一个指定任何速度的基准测试,也没有激发对它们的可靠性的信心。 p>

谢谢

解决方案

晚了,但比以往我以为我会添加Julian Bucknalls文章列在这个列表中。



但是他没有演出号码。在我的测试他的结构中,列表与锁定相比很好(与ReaderWriterLock相比,内核使用率非常低)。



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



无锁数据结构:堆叠


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

Preferably something that is proven to work and faster than the Synchronized wrappers we have in .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.

Thanks

解决方案

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

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).

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

LOCK-FREE DATA STRUCTURES: THE STACK

这篇关于在C#中锁定自由堆栈和队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆