Parallel Programming with .NET - A Tour of Various TPL Options
“The Task Parallel Library (TPL) exposes various options that give you more control over how tasks get scheduled and executed:
- Choose whether to optimize for fairness or for overheads when scheduling tasks.
- Specially mark tasks known to be long-running to help the scheduler execute efficiently.
- Create a task as attached or detached to the parent task.
- Schedule continuations that run if a task threw an exception or got cancelled.
- Run tasks synchronously.
Joseph E. Hoag's article A Tour of Various TPL Options explains these options in detail, accompanied by examples of correct and incorrect uses.
(This paper and many more are available through the Parallel Computing Developer Center on MSDN at http://msdn.microsoft.com/en-us/concurrency/ee851578.aspx.)” [GD: Post Leached In Full]
“Abstract: The Task Parallel Library (TPL), released as part of the new parallel programming support in .NET 4, provides various options to the user via the TaskCreationOptions, TaskContinuationOptions and ParallelOptions classes. These options, accompanied by examples of correct and incorrect uses of them, are discussed in this article.
…
…”
With the release of .Net 4, the TPL and Tasks are very much the “in” thing now (and very cool)… Come on boys and girls, lets get all the Cores busy! ;)
Related Past Post XRef:
TPL (That is, Task Parallel Library) Article of the Day: “Parent-Child Task Relationships in the .Net Framework 4”
“Samples for Parallel Programming with the .NET Framework 4” gets some VB love…
[.Net 4.0]: Get your Parallel Extensions here… All baked in and part of the Core…. Get your Task Parallel Library here…
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...