最終更新:2009-09-16 (水) 05:28:05 (5335d)  

Parallel Extensions
Top / Parallel Extensions

Parallel Extensions is now a part of the .NET Framework 4.0. Support for this is being covered on the Visual Studio connect site.

Parallel Extensions is a managed programming model for data parallelism, task parallelism, and coordination on parallel hardware unified by a common work scheduler. Parallel Extensions makes it easier for developers to write programs that scale to take advantage of parallel hardware—providing improved performance as the numbers of cores and processors increase—without having to deal with many of the complexities of today’s concurrent programming models.

Parallel Extensionsは主に次の2つの機能を提供する。

  • Task Parallel Library?(タスク並列処理ライブラリ。以降、TPL)
  • Parallel LINQ?(並列処理LINQ。以降、PLINQ)
Parallel.For(0, 10000, delegate(int i)
{
  // 重い処理
});

参考