Explore Parallel LINQ (PLINQ), a parallel implementation of the LINQ pattern. It can be used for both sequential and parallel execution.
- [Instructor] PLINQ, or Parallel LINQ…when is deduced to automate parallelization.…As you might have already guessed that it is…parallellization using the same link queries…that we are used to.…Except is all we do is say dot as parallel…and then that query could run as a parallel query.…If we were to execute a certain operation in parallel,…we would need to partition the work into tasks,…execute those tasks on multiple different threads,…and then combine the results.…
The good news is that all this is done…by PLINQ automatically and that's why…its declarative and not imperative.…In case of declarative programming,…all we do is we need to parallelize the work…and we declare the statement,…and then the framework takes care of the rest of it.…That's why it's called declarative,…in contrast to imperative approaches,…where we might need to explicitly write code…to parallelize the operation,…combine the results after we have executed…all of that on different tasks.…
So which operations can prevent…a query from being parallelized?…
Released
4/2/2018- Thread safety and affinity
- Signaling
- Task Parallel Library (TPL) basics
- PLINQ introduction
- Task-based Asynchronous Pattern (TAP)
Share this video
Embed this video
Video: PLINQ introduction