Tweaking Parallel Querying Behavior

Various methods are available in PLINQ to control some aspects of the parallelization of queries. Those methods start with the With prefix and control aspects such as the following:

Image Degree of parallelism, specifying how many parallel workers can be running during query execution

Image Execution mode, allowing force parallelism even if PLINQ concludes it’s not worth the effort

Image Merge options, controlling query result ...

Get C# 5.0 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.