0% found this document useful (0 votes)
2 views1 page

Parallel Programming C#

Parallel Programming was introduced in 2010 with framework 4, allowing developers to utilize the Task Parallel Library (TPL) without directly managing threads. TPL provides a set of APIs for handling work partitioning, thread scheduling, and other low-level details. It supports data parallelism, enabling concurrent operations on elements in collections through the Parallel class.

Uploaded by

Katti Arul
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Parallel Programming C#

Parallel Programming was introduced in 2010 with framework 4, allowing developers to utilize the Task Parallel Library (TPL) without directly managing threads. TPL provides a set of APIs for handling work partitioning, thread scheduling, and other low-level details. It supports data parallelism, enabling concurrent operations on elements in collections through the Parallel class.

Uploaded by

Katti Arul
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

 Parallel Programming is available in 2010(framework 4).

 Without having to work directly with threads or the thread pool.


 TPL is set of public types and API in the [Link] and
[Link] namespace.
 TPL handles the partitioning of the work, the scheduling of threads on
the ThreadPool, cancellation support, state management, and other low-level details

Data Parallelism (Task Parallel Library)

 Operation is performed concurrently (that is, in parallel) on elements in a source


collection or array.
 TPL supports data parallelism through the [Link] class.
 You write the loop logic for a [Link] [Link] loop
 Task Scheduler partitions the task based on system resources and workload.

You might also like