Intel® Advisor User Guide

ID 766448
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Microsoft Task Parallel Library* (TPL)

Microsoft Task Parallel Library* (TPL) in the Microsoft .NET* Framework is a combination of public types and APIs that allow addition of parallelism and concurrency on Windows* OS systems. For Intel Advisor users, use Microsoft TPL for C# and managed C++ libraries.

NOTE:
C# and .NET support is deprecated starting Intel® Advisor 2021.1.

Microsoft TPL is a high-level parallel programming framework for .NET code to help you harness the performance of multi-core processors. It lets you specify logical parallelism instead of threads. That is, you specify potential parallelism - what can be run in parallel. The library decides the actual parallelism at run-time, matching it to the available hardware.

Microsoft TPL provides two main classes:

  • System.Threading.Tasks.Parallel: includes For and ForEach loops.

  • System.Threading.Tasks.Task: is the preferred way to express asynchronous operations.

Other classes are also available. For example, System.Collections.Concurrent provides for concurrent collections that do not require external locking.

You can use Microsoft TPL for introducing parallelism into either C# programs or managed C++ code.

Please refer to your Microsoft MSDN* help documentation for information about this parallel framework. For example: MSDN Library > .NET Development > .NET Framework 4 > .NET Framework Advanced Development > Parallel Programming > Task Parallel Library