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

查看:217
本文介绍了在.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.

直接链接到源$ C ​​$ C文件<一个href="https://$c$c.msdn.microsoft.com/Samples-for-Parallel-b4b76364/source$c$c?fileId=44488&pathId=1831994732"相对=nofollow> ConcurrentPriorityQueue.cs

Direct link to source code for file ConcurrentPriorityQueue.cs

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

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