7 Task-based functional parallelism

This chapter covers

  • Task parallelism and declarative programming semantics
  • Composing parallel operations with functional combinators
  • Maximizing resource utilization with the Task Parallel Library
  • Implementing a parallel functional pipeline pattern

The task parallelism paradigm splits program execution and runs each part in parallel by reducing the total runtime. This paradigm targets the distribution of tasks across different processors to maximize processor utilization and improve performance. Traditionally, to run a program in parallel, code is separated into distinct areas of functionality and then computed by different threads. In these scenarios, primitive locks are used to synchronize the access ...

Get Concurrency in .NET 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.