Parallel programming
As you may remember, we've already talked about asynchronous programming, when we were dealing with the async/await
keywords that appeared in .NET Framework 4.5 as a solution to avoid performance bottlenecks and improve the overall responsiveness of our applications.
Parallelism was present earlier, in version 4.0 of the framework, and it was programmatically related to the Task Parallel Library (TPL). But first, let's define the concept of parallelism (at least according to Wikipedia):
"Parallelism is a form of computation in which several operations can execute simultaneously. It's based on the 'Divide and Conquer' principle, fragmenting a task in smaller tasks, which are later solved in parallel."
This is, obviously related ...
Get Mastering C# and .NET Framework 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.