Showing results for Task Parallel Library - .NET Blog

Mar 16, 2008
Post comments count0
Post likes count0

Wrapping an APM implementation with Future

Stephen Toub - MSFT
Stephen Toub - MSFT

In a previous post, I talked about implementing the Asynchronous Programming Model pattern using Future<T> from Parallel Extensions to the .NET Framework.  It's also possible to go in the opposite direction, to create a Future<T> from an existing APM implementation.As has been shown in previous examples, in this example we'll take ...

.NET Parallel Programming
Mar 13, 2008
Post comments count0
Post likes count0

Parallel loop performance

Stephen Toub - MSFT
Stephen Toub - MSFT

We've received several questions on the MSDN Forums for Parallel Extensions about the performance of the Parallel class, and specifically of the loop constructs we provided in the CTP.  We're very much aware that the performance of Parallel.For/ForEach in the CTP is not optimal, and that for some situations, the overhead for these constructs w...

.NET Parallel Programming
Mar 12, 2008
Post comments count0
Post likes count0

Ordering the output of parallel computations

Stephen Toub - MSFT
Stephen Toub - MSFT

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);    WriteToMovie(frame);}For a bit of pizzazz, I'...

.NET Parallel Programming
Feb 29, 2008
Post comments count0
Post likes count0

Implementing the Asynchronous Programming Model with Future

Stephen Toub - MSFT
Stephen Toub - MSFT

One of our design goals for the Task Parallel Library is to integrate well into existing asynchronous mechanisms in the .NET Framework.  And one of the most common concurrency-related patterns in the .NET Framework is the Asynchronous Programming Model (APM), which typically manifests as a BeginXx method that kicks off an asynchronous operatio...

.NET Parallel Programming
Feb 29, 2008
Post comments count0
Post likes count0

VSj article on Parallel Extensions

Stephen Toub - MSFT
Stephen Toub - MSFT

Daniel Moth is back with a nice article introducing the preview release of Parallel Extensions to the .NET Framework.  Great work, Daniel!

.NET Parallel Programming
Feb 27, 2008
Post comments count0
Post likes count0

Custom parallel looping constructs

Stephen Toub - MSFT
Stephen Toub - MSFT

For those of you that have examined the internals of the Task Parallel Library in our December '07 CTP release, you've likely noticed that the methods on the System.Threading.Parallel type are implemented on top of System.Threading.Tasks.Task type, and that they do so taking advantage of Task's self-replicating functionality.  The idea behind ...

.NET Parallel Programming
Feb 19, 2008
Post comments count0
Post likes count0

Task Parallel Library on Channel 9

Stephen Toub - MSFT
Stephen Toub - MSFT

Charles from Channel 9 sat down with several of us from the Parallel Computing Platform team to discuss the Task Parallel Library component of Parallel Extensions. A video of the conversation is now available on Channel9: https://channel9.msdn.com/Showpost.aspx?postid=384229. We hope you like it, and as always, feedback is welco...

.NET Parallel Programming
Jan 31, 2008
Post comments count0
Post likes count1

Recursion and Concurrency

Stephen Toub - MSFT
Stephen Toub - MSFT

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, and allow for teaching different kinds of traversals (in-order, pre-order, post-order...

.NET Parallel Programming
Dec 31, 2007
Post comments count0
Post likes count0

Parallel Extensions on .NET Rocks

Stephen Toub - MSFT
Stephen Toub - MSFT

Joe Duffy, our dev lead, appeared on the 12/25/07 edition of .NET Rocks!, speaking about Parallel Extensions and the Task Parallel Library: "Carl and Richard talk to Microsoft's Joe Duffy about the Task Parallel Library, which promises to make multi-threaded programming easier for us all."Enjoy!

.NET Parallel Programming
Dec 19, 2007
Post comments count0
Post likes count0

F# and the Task Parallel Library

Stephen Toub - MSFT
Stephen Toub - MSFT

Over on his blog, Don Syme has a post about F# and Parallel Extensions: "Over the coming year I expect we'll be seeing this library used very widely from F#, and we'll eventually be using the TPL as a key underlying technology for F# asynchronous workflows. TPL excels at CPU-intensive parallelism and exploiting multiple cores, especially ...

.NET Parallel Programming