Showing results for June 2008 - .NET Parallel Programming

Jun 21, 2008
0
0

Fork/Join parallelism with .NET CountdownEvent

cristina manu
cristina manu

A common asynchronous pattern in code today is the pattern known as fork/join parallelism. This typically manifests by starting n pieces of work and later joining with that work. The existing set of the .NET synchronization primitives does not offer a simple solution for handling this common scenario. It can be achieved, for example, by using a Ma...

Jun 18, 2008
0
0

Coordination Data Structures Overview

Emad Omara
Emad Omara

The June 2008 CTP of Parallel Extensions provides the first look at its 3rd major piece, a set of coordination data structures we lovably refer to as CDS. It contains lightweight and scalable thread-safe data structures and synchronization primitives.  There are of course already many synchronization primitives present in the System.Threading ...

Parallel ExtensionsCoordination Data Structures
Jun 18, 2008
0
0

Introducing ConcurrentStack

cristina manu
cristina manu

A common problem users run into when writing parallel applications is the lack of the thread-safety support in the .NET collection classes. Users typically need to implement their own synchronization mechanism for achieving the goal of safely reading/writing data to the same shared collection. A largely deprecated solution was to use the synchroni...

Jun 11, 2008
0
0

PLINQ Ordering

essey
essey

There is a natural tension between ordering and performance in a parallel partitioning system such as PLINQ, which we addressed as guidance in the Dec07 CTP documentation:  “Although you can opt into ordering, this does come at a cost to performance because it constrains the options which PLINQ can use for executing a query, so it is bet...

Parallel ExtensionsPLINQParallelism Blockers
Jun 11, 2008
0
0

Parallel Extensions Demo Fun on Channel 9

Stephen Toub - MSFT
Stephen Toub - MSFT

When I was at TechEd 2008 Developer last week, I met up with the great Dan Fernandez from Channel 9 to show off Parallel Extensions and to demonstrate some of the sample applications included with our June 2008 CTP.  The cameras were at the ready, so you can see the demonstrations, too: Thanks, Dan!

Parallel ExtensionsTask Parallel LibraryCode Samples
Jun 9, 2008
0
0

Image Colorizer Sample in the June 2008 CTP

Mike Liddell
Mike Liddell

Continuing the tour of the samples included in the Parallel Extensions June 2008 CTP, we now turn our attention to the "Image Colorizer" application.   This sample uses the following constructs from Parallel Extensions: System.Threading.Parallel.For() and also the following from the standard .NET libraries: System.ComponentModel.BackgroundWor...

Parallel ExtensionsTask Parallel LibraryCode Samples
Jun 7, 2008
0
0

Announcing the “Parallel Programming in Native Code” Blog

essey
essey

Our colleagues working on native concurrency have just launched the Parallel Programming in Native Code blog.  We’re all on the same team and work really closely to ensure that the right programming models are exposed both for managed and native consumers, so you will be able to use your language of choice. Here’s a little bit...

C++
Jun 7, 2008
0
0

More Channel 9 Parallel Extensions Goodness

Stephen Toub - MSFT
Stephen Toub - MSFT

Charles from Channel 9 came over to building 112 last week for an in-depth look at what's new in the June 2008 CTP of Parallel Extensions.  We spoke on the subject for an hour and a half or so, which you can see in a two-part series that was posted to Channel 9 yesterday (by the way, Channel 9 team, the new site looks great!): What bett...

Parallel ExtensionsTask Parallel LibraryPLINQ
Jun 6, 2008
0
0

Mandelbrot in Parallel with C++/CLI

Stephen Toub - MSFT
Stephen Toub - MSFT

Since the release of the December 2007 CTP of Parallel Extensions, we've received several questions about whether Parallel Extensions can be used from C++/CLI.  In short, yes, it can! (It can be used with any .NET language, one of the beauties of this functionality being provided through a library.)  To demonstrate, we included in the Jun...

Parallel ExtensionsTask Parallel LibraryCode Samples
Jun 6, 2008
0
0

More Powerful Aggregations in PLINQ

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

In the June 2008 CTP, PLINQ aggregations are more powerful than they were in the December 2007 CTP. The reason why they are more powerful is a bit subtle, but this new power enables many useful scenarios, so it is worth it to follow along with the explanation.To understand where the difference is coming from, let’s quickly review how aggregat...