WHEN TO USE PLINQ?

Anupam Mishra

Total Post:135

Points:949
Posted by  Anupam Mishra
C#  .NET 
C#
 414  View(s)
Ratings:
Rate this:
I want to know which scenario PLINQ is better? Please give me a answer.
thank you
  1. Shiva Shukla

    Post:13

    Points:91
    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!