PLINQ Queries That Run Sequentially

The goal of PLINQ is to execute computationally intensive LINQ to Objects queries efficiently by splitting up the work across multiple cores on multi-core machines. However, not all queries are equally appropriate for parallelism. Usually, the best way to use PLINQ is to write short, simple queries with an expensive delegate. This is one example… Read more

What’s new in Beta 2 for the Task Parallel Library? (Part 2/3)

Related posts: What’s new in Beta 2 for the Task Parallel Library (1/3) What’s new in Beta 2 for the Task Parallel Library (3/3) Last week, we talked about how TPL adopted a new, better cancellation model.  Today, we’ll cover a change that makes Tasks Detached by Default, some ContinueWhenAll/Any Refactoring, and the handy UnobservedTaskException… Read more

Parallelism Talks at PDC09

If you’re going to PDC this year, we have four great talks on parallelism coming you’re way and, if you’re not, may we suggest you sign up? We don’t have the exact dates of the talks yet (we’ll let you know when we do) but here are the talks you won’t want to miss! Patterns… Read more

What’s new in Beta 2 for the Task Parallel Library? (Part 1/3)

Related posts: What’s new in Beta 2 for the Task Parallel Library? (Part 2/3)  What’s new in Beta 2 for the Task Parallel Library? (Part 3/3)  Visual Studio 2010 and .NET 4 Beta 2 is here!  In terms of completeness and readiness for production coding, Beta 2 promises to be much better than Beta 1, and TPL… Read more

.NET 4 Beta 2 is here!

The .NET Framework 4 Beta 2 is now available! MSDN Subscribers can download it today, and it will be generally available for download on Wednesday.  More information is available at  Additionally, one of the really exciting things about this Beta release is that it’s “go-live”; more information on that is available at “Going live”… Read more

Parallel Computing at PDC09 and TechEd Europe 2009

It’s fall, and that means conference season!  In November, members of the Parallel Computing Platform team will be descending upon both PDC09 in Los Angeles and TechEd Europe 2009 in Berlin.  We’re extremely excited to see all of you there and to discuss the new support for parallel computing that’s coming in Visual Studio 2010,… Read more

Parallel Computing Presentations in Michigan, Ohio, Kentucky, and Tennessee

In a week, I’m going to be traveling through Michigan, Ohio, Kentucky, and Tennessee, speaking about parallel computing, Visual Studio 2010, and .NET 4, primarily at corporations during the day and at user groups in the evenings. If you’re in the area and interested, please do attend, and I look forward to meeting you!  A… Read more

Task.Wait and “Inlining”

“What does Task.Wait do?” Simple question, right?  At a high-level, yes, the method achieves what its name implies, preventing the current thread from making forward progress past the call to Wait until the target Task has completed, one way or another.  If the Task ran to completion, Wait will return successfully.  If the Task completed… Read more

Parallelized Map and Filter Operations

Common operations like map and filter are available in parallelized form through PLINQ, though the names differ.  A map can be achieved with PLINQ’s Select operator, and a filter with PLINQ’s Where operator. For example, I could implement a ParallelMap operation that takes in one array and returns another as follows: public static TOutput []… Read more

Choosing Between the Task Parallel Library and the ThreadPool

If you’ve been following the development of the Task Parallel Library (TPL), or if you’re an avid reader of this blog, you’re likely aware that the default scheduler in TPL is based on the new and improved ThreadPool in .NET 4.  In light of this, though, quite a few folks have asked whether there are… Read more