Showing results for Task Parallel Library - .NET Parallel Programming

Mar 16, 2008
0
0

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

Parallel ExtensionsTask Parallel LibraryCode Samples
Mar 13, 2008
0
0

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

Parallel ExtensionsTask Parallel LibraryCode Samples
Mar 12, 2008
0
0

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

Parallel ExtensionsTask Parallel LibraryCode Samples
Feb 29, 2008
0
0

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

Parallel ExtensionsTask Parallel LibraryCode Samples
Feb 29, 2008
0
0

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!

Parallel ExtensionsTask Parallel LibraryPLINQ
Feb 27, 2008
0
0

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

Parallel ExtensionsTask Parallel LibraryCode Samples
Feb 19, 2008
0
0

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

Parallel ExtensionsTask Parallel LibraryThreadPool
Jan 31, 2008
0
1

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

Parallel ExtensionsTask Parallel LibraryCode Samples
Dec 31, 2007
0
0

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!

Parallel ExtensionsTask Parallel LibraryMedia
Dec 19, 2007
0
0

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

Parallel ExtensionsTask Parallel LibraryF#