Stephen Toub - MSFT

Partner Software Engineer, .NET

Stephen Toub is a developer on the .NET team at Microsoft.

Post by this author

Slides from Parallelism Tour

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

.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 https://msdn.microsoft.com/en-us/vstudio/dd582936.aspx.  Additionally, one of the really exciting things about this Beta release is that it’s &...

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

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

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

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

TaskScheduler.FromCurrentSynchronizationContext

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

The meaning of TaskStatus

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

Implementing Parallel While with Parallel.ForEach

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

Parallel Computing at Imagine Cup 2009

On Wednesday, Microsoft announced the Imagine Cup 2009 worldwide winners: https://www.microsoft.com/presspass/press/2009/jul09/07-07ImagineCup2009WinnersPR.mspxCongratulations to Team Biollel that took first place in the Parallel Computing Award for their “Parallel implementation of maximum likelihood method of phylogenetic tree ...