Top "Plinq" questions

PLINQ is a parallel query execution engine for LINQ.

When to dispose CancellationTokenSource?

The class CancellationTokenSource is disposable. A quick look in Reflector proves usage of KernelEvent, a (very likely) unmanaged resource. Since …

c# c#-4.0 task-parallel-library plinq parallel-extensions
Running a simple LINQ query in parallel

I'm still very new to LINQ and PLINQ. I generally just use loops and List.BinarySearch in a lot of …

c# linq plinq
Max Degree of Parallelism for AsParallel()

While using Parallel.ForEach we have the option to define the Parallel options and set the Max Degree of Parallelism …

c# .net task-parallel-library parallel.foreach plinq
Exactly what is PLINQ?

PLINQ was added in the .NET 4.0 Framework as an extension to LINQ. What is it? What problems does it solve? …

c# .net linq plinq
Where to call .AsParallel() in a LINQ query

The question In a LINQ query I can correctly (as in: the compiler won't complain) call .AsParallel() like this: (from …

c# linq parallel-processing plinq
How exactly does AsParallel work?

It doesn't seem to do squat for the following test program. Is this because I'm testing with a small list? …

c# .net plinq
Can we add new elements to a list using Parallel.ForEach()?

My code does very simple stuff list already has elements. I have approximately 25000 elements (and I'm expecting to have more) …

c# multithreading linq plinq
Track progress when using TPL's Parallel.ForEach

What is the best way way to track progress in the following long total = Products.LongCount(); long current = 0; double Progress = 0.0; …

c# multithreading c#-4.0 task-parallel-library plinq
Parallel Linq query optimization

For some time now I've been structuring my code around methods with no side-effects in order to use parallel linq …

c# linq c#-4.0 parallel-processing plinq
How to properly parallelise job heavily relying on I/O

I'm building a console application that have to process a bunch of data. Basically, the application grabs references from a …

c# multithreading parallel-processing task-parallel-library plinq