Showing category results for .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
Oct 5, 2009
Post comments count0
Post likes count0

Choosing Between the Task Parallel Library and the ThreadPool

Danny Shih

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 any advantages (particula...

.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
Aug 4, 2009
Post comments count0
Post likes count0

Parallel Extensions and I/O

Danny Shih

In this post, we’ll investigate some ways that Parallel Extensions can be used to introduce parallelism and asynchrony to I/O scenarios. Here’s a simple scenario.  I want to retrieve data from a number of web resources. static string[] Resources = new string[] {     "http://www.microsoft.com", "http://www.msdn.com",   ...

.NET Parallel Programming
Jul 20, 2009
Post comments count0
Post likes count0

Asynchronous programming in .NET survey

phillips.joshua

Update:  The survey is now closed.  Thanks to all that participated! We’ve heard our customers’ frustrations with asynchronous programming and their call for improved support.  We are hoping to better understand why and how you and your customers use asynchronous programming in .NET and how the support we provide for...

.NET Parallel Programming
Jul 10, 2009
Post comments count0
Post likes count0

Parallel Computing at Imagine Cup 2009

Stephen Toub - MSFT

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

.NET Parallel Programming
Jul 10, 2009
Post comments count0
Post likes count0

Interested in parallel computing? We’re hiring!

Stephen Toub - MSFT

If you're reading this post, you most likely have an interest in parallel or distributed computing, writing concurrent software, and the like.  Take that interest a step further, and help us make the manycore era a successful reality by coming to work on the Parallel Computing Platform team at Microsoft.We currently have several positions avai...

.NET Parallel Programming
Jul 9, 2009
Post comments count0
Post likes count0

Parallel.Invoke() vs. Explicit Task Management

cristina manu

  Parallel Extensions offers a large variety of APIs supporting parallelism. During this blog the discussion will be focused on the methodology for making a choice between two of the new Parallel Extensions concepts: parallelism achieved by using Parallel.Invoke() and parallelism achieved through the use of Tasks. Suppose that you wa...

.NET Parallel Programming