Showing results for PLINQ - .NET Parallel Programming

Nov 16, 2012
0
0

PLINQ and Int32.MaxValue

Stephen Toub - MSFT
Stephen Toub - MSFT

In both .NET 4 and .NET 4.5, PLINQ supports enumerables with up to Int32.MaxValue elements.  Beyond that limit, PLINQ will throw an overflow exception.  LINQ to Objects itself has this limitation with certain query operators (such as the indexed Select operator which counts the elements processed), but PLINQ has it with more.This limitati...

Parallel Extensions.NET 4.NET 4.5
Nov 10, 2011
0
0

PLINQ Queries That Run in Parallel in .NET 4.5

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

One interesting thing to know about PLINQ is that not all queries are guaranteed to execute in parallel (See PLINQ Queries That Run Sequentially for reference). You can think of the AsParallel method as a hint to run in parallel for query shapes that it believes will be faster. By default, PLINQ prefers to use a simple sequential algorithm over a p...

Parallel Extensions.NET 4.NET 4.5
Sep 17, 2011
0
0

What’s New For Parallelism in .NET 4.5

Stephen Toub - MSFT
Stephen Toub - MSFT

.NET 4 and Visual Studio 2010 saw the introduction of a wide range of new support for parallelism: the Task Parallel Library (TPL), Parallel LINQ (PLINQ), new synchronization and coordination primitives and collections (e.g. ConcurrentDictionary), an improved ThreadPool for handling parallel workloads, new debugger windows, new concurrency visualiz...

Parallel ExtensionsTask Parallel Library.NET 4.5
Jun 21, 2010
0
0

PLINQ’s Ordering Model

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

In order to execute parallel queries as efficiently as possible, Parallel LINQ (PLINQ) treats ordering as optional. By default, PLINQ considers sequences to be unordered, unless the user explicitly opts into maintaining ordering using either the AsOrdered or the OrderBy operator.Roy Patrick Tan wrote a detailed article that expl...

Parallel Extensions.NET 4PLINQ
May 25, 2010
0
0

Lesser-known Multi-threaded Debugging Support in Visual Studio 2010

Stephen Toub - MSFT
Stephen Toub - MSFT

We’ve been very excited about the new debugging windows in Visual Studio 2010, namely Parallel Tasks and Parallel Stacks, as well as the newly revamped Threads window, and thus we’ve talked about them quite a bit. For an overview, you can read the MSDN Magazine article at https://msdn.microsoft.com/en-us/magazine/ee410778.aspx, and Daniel Moth has ...

Parallel ExtensionsTask Parallel LibraryPLINQ
Apr 28, 2010
0
0

ParallelExtensionsExtras Tour – #14 – SingleItemPartitioner

Stephen Toub - MSFT
Stephen Toub - MSFT

(The full set of ParallelExtensionsExtras Tour posts is available here.) In a previous ParallelExtensionsExtras Tour blog post, we talked about implementing a custom partitioner for BlockingCollection<T>.  Custom partitioning is an advanced but important feature supported by both Parallel.ForEach and PLINQ, as it allows the develope...

Parallel ExtensionsTask Parallel Library.NET 4
Apr 21, 2010
0
0

When To Use Parallel.ForEach and When to Use PLINQ

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

If you've played around with PLINQ and Parallel.ForEach loops in .NET 4, you may have noticed that many PLINQ queries can be rewritten as parallel loops, and also many parallel loops can be rewritten as PLINQ queries. However, both parallel loops and PLINQ have distinct advantages in different situations. When writing ...

Parallel ExtensionsTask Parallel Library.NET 4
Apr 15, 2010
0
0

ParallelExtensionsExtras Tour – #11 – ParallelDynamicInvoke

Stephen Toub - MSFT
Stephen Toub - MSFT

(The full set of ParallelExtensionsExtras Tour posts is available here.)  Delegates in .NET may have one or more methods in their invocation list.  When you invoke a delegate, such as through the Delegate.DynamicInvoke method, the net result is that all of the methods in the invocation list get invoked, one after the other.  Of...

Parallel Extensions.NET 4Code Samples
Feb 10, 2010
0
0

F# PowerPack supports PLINQ

Stephen Toub - MSFT
Stephen Toub - MSFT

The F# team has released the F# PowerPack for download on CodePlex, and we're very excited that the PowerPack now has direct support for PLINQ.  From the CodePlex site: F# Parallel LINQ IntegrationFSharp.PowerPack.Parallel.dll provides an F#-style API for parallel operations on sequences that are part of .NET 4.0 as System.Linq.ParallelEnumera...

Parallel Extensions.NET 4PLINQ
Feb 10, 2010
0
0

“Parallelism in .NET” Series by Reed Copsey, Jr.

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

Reed Copsey, Jr. has been writing a great series of articles on parallelism with the .NET Framework 4. The articles provide the insights of an expert developer who has been using parallelism with .NET to speed up real-world programs. Recommended reading.Parallelism in .NETIntroductionPart 1, Decomposition Par...

Parallel ExtensionsTask Parallel Library.NET 4