Search code examples
c#.netmultithreadingtask-parallel-libraryparallels

TPL-like library for .NET 2.0


After discovering the Parallels library in .NET 4.0, I'd like to have something similar in my .NET 2.0 application.

Are there any parallel programming helper libraries for .NET 2.0, that simplify common tasks?


Solution

  • Threadpool would be a nomination in .NET 2.0 which is kind of similar with TPL.

    Provides a pool of threads that can be used to execute tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers.

    TPL actually uses Threadpool under the hood:

    TPL handles the partitioning of the work, the scheduling of threads on the ThreadPool, cancellation support, state management, and other low-level details.