C#中的无锁栈和队列 [英] Lock free stack and queue in C#

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

问题描述

有谁知道是否有任何可用于 .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#中的无锁栈和队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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