Showing tag results for Task Parallel Library

Nov 19, 2009
Post comments count0
Post likes count0

Reactive Extensions and Parallel Extensions

Stephen Toub - MSFT

It’s awesome to see the Reactive Extensions to .NET (Rx) live on the DevLabs site.  If you haven’t checked out this exciting project, we urge you to do so.  Not only is it cool and useful technology, but the download includes a back ported (and unsupported) release of Parallel Extensions for the .NET Framework 3.5 in the form ...

.NET Parallel Programming
Nov 4, 2009
Post comments count0
Post likes count0

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

Danny Shih

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? (2/3) Last time, we covered Tasks being detached by default and some refactorings in our multiple-Task continuation APIs.  The final post of this series will discuss Nested Tasks and Unwrap, a Parallel namespace chang...

.NET Parallel Programming
Nov 1, 2009
Post comments count0
Post likes count0

Slides from Parallelism Tour

Stephen Toub - MSFT

Last week, I had the privilege of touring around Tennessee, Kentucky, Ohio, and Michigan, speaking about the new parallel computing support in Visual Studio 2010 and the .NET Framework 4.  Many folks I spoke with were interested in getting a copy of the slide deck I used, so I’ve attached it to this blog post.  Enjoy! Toub_ParallelismTour...

.NET Parallel Programming
Oct 27, 2009
Post comments count0
Post likes count0

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

Danny Shih

Related posts: 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 event.Tasks are Detached by DefaultIn Beta 2, we have changed an important default.  Tasks are now...

.NET Parallel Programming
Oct 19, 2009
Post comments count0
Post likes count0

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

Danny Shih

Related posts: 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 is one component that delivers significant improvements over what was previously available.  To get you excited about it, this series of posts details...

.NET Parallel Programming
Oct 15, 2009
Post comments count0
Post likes count2

Task.Wait and “Inlining”

Stephen Toub - MSFT

“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 th...

.NET Parallel Programming
Oct 12, 2009
Post comments count0
Post likes count0

Parallelized Map and Filter Operations

Stephen Toub - MSFT

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...

.NET Parallel Programming
Sep 22, 2009
Post comments count0
Post likes count1

TaskScheduler.FromCurrentSynchronizationContext

Stephen Toub - MSFT

The Task abstractions in .NET 4 run on instances of the TaskScheduler class.  Two implementations of TaskScheduler ship as part of the .NET Framework 4.  The first is the default scheduler, which is integrated with the .NET 4 ThreadPool and takes advantage of its work-stealing queues.  The second is the type of TaskScheduler returned...

.NET Parallel Programming
Aug 30, 2009
Post comments count0
Post likes count1

The meaning of TaskStatus

Stephen Toub - MSFT

Every System.Threading.Tasks.Task instance goes through a lifecycle, and it only makes this journey once.  To provide insight into where in that lifecycle a given Task is, the Task class provides an instance Status property.  That property returns a value from the TaskStatus enumeration that reflects the current point in the lifecycle.&ld...

.NET Parallel Programming
Aug 12, 2009
Post comments count2
Post likes count0

Implementing Parallel While with Parallel.ForEach

Stephen Toub - MSFT

The Parallel class in .NET 4 includes methods that implement three parallel constructs: parallelized for loops (Parallel.For), parallelized foreach loops (Parallel.ForEach), and parallelized statement regions (Parallel.Invoke).  One of the interesting things about Parallel.Invoke is that, in some cases and at least in the current implementatio...

.NET Parallel Programming