May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Parallel LINQ provides benefits when you work in extreme situations such as intensive works or large amounts of data. In different situations PLINQ is not necessarily better than classic LINQ. To understand how PLINQ works, first we need to write code that simulates an intensive work. After creating a new Console project, write the following method that simply determines if a number is odd but suspending the current thread for a big number of milliseconds invoking the System.Threading.Thread.SpinWait shared method:

Now that we have an intensive work, we can compare both classic and parallel LINQ queries.
Read now
Unlock full access