微软的Parallel Patterns Library:任何人都希望看到POSIX / Linux有多难? [英] Microsoft's Parallel Patterns Library: anyone looked to see how hard it'd be to port to POSIX / Linux?

查看:555
本文介绍了微软的Parallel Patterns Library:任何人都希望看到POSIX / Linux有多难?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该书已经发布:

http://blogs.msdn.com/b/vcblog/archive/2011/03/15/10139453.aspx

我只是想知道,有没有人经过实现,看到偷取/端口到POSIX是多么容易?是否使用Managed C ++扩展名?对它的一般想法,或其异步代理库?它会很好,它有一个std ::或boost ::等效。

I just wonder, has anyone gone through the implementation and seen how easy it'd be to steal / port to POSIX? Does it use Managed C++ extensions, for example? Any thoughts on it in general, or its Aynchronous Agents library? It'd be nice it there was a std::, or boost:: equivalent.

推荐答案

DarkDust - Boost支持线程级并行,而PPL和TBB提供了一个基于任务的抽象线程池的顶部,并采用标准库的算法和容器方法。这消除了与调度和资源管理相关联的许多头痛。一些基于任务的并行特征现在开始在C ++ 11中得到支持,特别是std ::未来和其他异步相关功能。

DarkDust - Boost supports thread level parallelism, whereas PPL and TBB provide a task based abstraction on top of a thread pool and take the standard library's algorithms and containers approach. This removes a lot of the headaches associated with scheduling and resource management. Some task based parallelism features are now starting to be supported in C++11 too, notably std::future and other async related features.

Ghita - PPL不使用托管扩展,它是纯本地代码,但并不是所有的模板。 Windows实现运行在并发运行时,ConcRT之上。请参阅 http://msdn.microsoft.com/en-us/library/gg663535。 aspx 了解更多详情。英特尔的实现为PPL的一个子集提供了源代码兼容的API。请参阅 http://threadingbuildingblocks.org/docs/help/reference/appendices/ppl_compatibility。 htm 讨论TBB / PPL兼容性。

Ghita - The PPL does not use managed extensions, it is purely native code but it is not all template based. The Windows implementation runs on top the Concurrency Runtime, ConcRT. See http://msdn.microsoft.com/en-us/library/gg663535.aspx for more details. Intel's implementation provides a source code compatible API for a subset of the PPL. See http://threadingbuildingblocks.org/docs/help/reference/appendices/ppl_compatibility.htm for a discussion of TBB/PPL compatability.

Alexey - Unix上的Intel版本运行在运行时之上。在Windows上,TBB 3.0也可以在ConcRT之上运行,具体取决于您如何链接它。见这里, http://software.intel.com/en-us/blogs/2010/05/04/tbb-30-new-today-version-of-intel-threading-building-blocks

Alexey - The Intel version on Unix runs on top of their runtime. On Windows the TBB 3.0 can also run on top of ConcRT, depending on how you link it. See here, http://software.intel.com/en-us/blogs/2010/05/04/tbb-30-new-today-version-of-intel-threading-building-blocks

这本书在Amazon等上可用,内容也可以在MSDN上获得
http://msdn.microsoft.com/en-us/library/gg675934.aspx

The book is available on Amazon etc and the content is also available on MSDN http://msdn.microsoft.com/en-us/library/gg675934.aspx

这篇关于微软的Parallel Patterns Library:任何人都希望看到POSIX / Linux有多难?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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