How to: Specify the Execution Mode in PLINQ
This example shows how to force PLINQ to bypass its default heuristics and parallelize a query regardless of the query's shape.
This example is intended to demonstrate usage, and might not run faster than the equivalent sequential LINQ to Objects query. For more information about speedup, see Understanding Speedup in PLINQ.
Compiling the Code
Cut and paste this code into the PLINQ Data Sample and call the method from Main.