Task Parallel Library (TPL)

TPL is the recent feature in .NET programming for well managed parallel processing.  The main purpose is to increase the developer's productivity by simplifying the programming related to parallelism and concurrency to any enterprise applications.  In my view, it is a highly recommended approach to write parallel processing code in .NET.

In spite of simplicity at TPL, I recommend the programmers to have a basic understanding of the fundamental threading concepts like deadlocks and race conditions. By doing so, TPL will be effectively used in the source code.

Let's start the implementation of TPL with a simple example by simply adding two Threading namespaces:

    using System;    using System.Threading; using System.Threading.Tasks; ...

Get Enterprise Application Architecture with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.