.NET 4.0中的并发优先级队列 [英] Concurrent Priority Queue in .NET 4.0

查看:149
本文介绍了.NET 4.0中的并发优先级队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎在.NET 4.0中有许多与并发相关的改进,这些改进可能依赖于并发优先级队列。在框架中是否有适当的优先级队列实现可供重用?

It seems there are lots of improvements in .NET 4.0 related to concurrency that might rely on concurrent priority queues. Is there decent priority queue implementation inside framework available for reuse?

推荐答案

.NET Framework在msdn。请参见 ParallelExtensionsExtras

There is an implementation as part of "Samples for Parallel Programming with the .NET Framework" at msdn. See ParallelExtensionsExtras.

直接链接到文件的源代码 ConcurrentPriorityQueue.cs

Direct link to source code for file ConcurrentPriorityQueue.cs

这篇关于.NET 4.0中的并发优先级队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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