Browse by Tags
All Tags »
Code Samples »
PLINQ (RSS)
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
Read More...
One of the great features that crosses all of Parallel Extensions types is a consistent approach to cancellation (see http://blogs.msdn.com/pfxteam/archive/2009/05/22/9635790.aspx ). In this post we explore some of the ways cancellation is used in Parallel
Read More...
Along with the release of the .NET Framework 4 Beta 1 , we've just published a slew of samples that demonstrate using Parallel Extensions in a variety of ways. You can download these from Code Gallery at http://code.msdn.microsoft.com/ParExtSamples .
Read More...
Thanks to everyone who attended our PDC pre-conference session yesterday on parallelism and concurrency! We had a wonderful turnout at the event, and David, Joe, and I all had a terrific time. Attached to this post are the slides we presented. (It turns
Read More...
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
Read More...
The June 2008 Community Technology Preview (CTP) of Parallel Extensions to the .NET Framework was released on Monday, and we’re really pleased at the level of excitement in the community that we’re seeing in response. As part of the CTP, we included a
Read More...
We've just released a new community technology preview (CTP) of Parallel Extensions to the .NET Framework! You can download it from http://www.microsoft.com/downloads/details.aspx?FamilyId=348F73FD-593D-4B3C-B055-694C50D2B0F3 . This release contains a
Read More...
Frequently when attempting to do multiple operations in parallel, ordering becomes an issue. Consider an application where I'm rendering and writing out to a video file frames of a movie: for ( int i = 0; i < numberOfFrames; i++) { var frame = GenerateFrame(i);
Read More...
When teaching recursion in an introductory computer science course, one of the most common examples used involves a tree data structure. Trees are useful in this regard as they are simple and recursive in nature, with a tree's children also being trees,
Read More...
Consider a simplified version of Luke Hoban's LINQ ray tracer var Xs = Enumerable .Range(1, screenWidth); var Ys = Enumerable .Range(1, screenHeight); var sequentialQuery = from x in Xs from y in Ys select new { X = x, Y = y, Color = TraceRay(x, y) };
Read More...
If you look in the PLINQ samples in the December 2007 CTP , you'll see a parallel implementation of Luke Hoban's LINQ ray tracer . The sample parallelizes the ray tracer by changing very few lines of code. Luke's original query started as follows: from
Read More...