词条 | Parallel Patterns Library |
释义 |
The Parallel Patterns Library is a Microsoft library designed for use by native C++ developers that provides features for multicore programming.[1] It was first bundled with Visual Studio 2010. It resembles the C++ Standard Library in style and works well with the C++11 language feature, lambdas, also introduced with Visual Studio 2010. For example, this sequential loop: for (int x=0; x < width; ++x) { //Something parallelizable } Can be made into a parallel loop by replacing the for with a parallel_for: #include This still requires the developer to know that the loop is parallelizable, but all the other work is done by the library. MSDN[2] describes the Parallel Patterns Library as an "imperative programming model that promotes scalability and ease-of-use for developing concurrent applications." It uses the Concurrency Runtime for scheduling and resource management and provides generic, type-safe algorithms and containers for use in parallel applications. References1. ^{{cite web | url = http://paper.li/visualc/news/2011/03/12 | title = The Visual C++ Weekly | date = March 12, 2011}} {{Compu-stub}}2. ^{{cite web | url = http://msdn.microsoft.com/en-us/library/dd492418.aspx | title = Parallel Patterns Library (PPL) on MSDN }} 3 : Concurrent programming libraries|C++ libraries|Threads (computing) |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。