When to use PLINQ?

Total Post:135

C#  .NET 
 636  View(s)
Rate this:
I want to know which scenario PLINQ is better? Please give me a answer.
thank you
  1. Post:13

    Re: When to use PLINQ?

    PLINQ is a set of LINQ extensions that can be used to operate on lists in parallel through methods such as the LINQ Select statement.  You can just place the extension AsParallel before the Select call inside your LINQ statement and the software will attempt to take advantage of multiple threads in your system to perform the calculation in the LINQ statement concurrently when acting upon a collection.   If you want to get load balancing you can use the Partitioner.

      Modified On Apr-11-2018 12:50:50 AM