BT
rss

Changes and Guidance for the Task Parallel Library in .NET 4.5

by Jonathan Allen on  Mar 27, 2012

With .NET 4.5 the way you work with the Task class has changed in a subtle but important way.

More on TPL Data Flow from Zlatko Michailov

by Jonathan Allen on  Jan 19, 2012

We briefly interviewed Zlatko Michailov, author of the Guide to Implementing Custom TPL Dataflow Blocks.

Implementing Custom TPL Dataflow Blocks

by Jonathan Allen on  Jan 02, 2012 8

Dataflow Blocks are the backbone of the .NET 4.5’s new high performance parallel processing library. And while they offer a lot of functionality out of the box, there will be times when a custom block is necessary. Zlatko Michailov has put together a document outlining the process and many of the traps you may encounter.

Task Parallel Library Improvements in .NET 4.5

by Jonathan Allen on  Dec 02, 2011 2

Microsoft has been working on ways to improve the performance of parallel applications in .NET 4.5, specifically those using the Task Parallel Library. One of most impressive improvements is reducing the overhead for waiting on 100,000 tasks from 12,000,000 bytes to a mere 64 bytes.

Task Parallel Library for Silverlight

by Jonathan Allen on  Aug 25, 2011 4

Silverlight’s asynchronous service model forces developers to deal with multi-threading from the very beginning. So it seems odd that Microsoft choose to omit the Task Parallel Library, which is the core of .NET’s multi-threading infrastructure. Fortunately there are options.

Using Messaging and Scheduling for Lock-free Access to Shared State

by Jonathan Allen on  Apr 27, 2011 7

In a message passing system there may be times when mutable data must be shared amongst many tasks. In traditional programming this would be handled by a read-writer block, which would allow one writer thread to block all other threads while it updates the shared data. With a technique found in frameworks such as TPL Dataflow it is possible to avoid this.

Asynchronous Message Processing using Task Parallel Library and Reactive Extensions

by Jonathan Allen on  Apr 25, 2011

A new preview of TPL Dataflow has recently been released along with Visual Studio Async. Along with performance enhancements and stronger ties with the Reactive Framework, it is being positioned as a foundation for building actor/agent style frameworks as opposed to a complete solution.

TPL Dataflow – The Successor to CCR

by Jonathan Allen on  Jan 06, 2011

TPL Dataflow is Microsoft’s new library for highly concurrent applications. Using asynchronous message passing and pipelining, it promises to offer more control than thread pools and better performance than manual threading. The downside is that you have to adhere to design patterns that may be unfamiliar to .NET programmers.

Why Microsoft Believes that VB and C# Need an Asynchronous Syntax

by Jonathan Allen on  Jan 04, 2011 2

The new Async CPT for VB and C# looks like it may actually make it into the core language. But with all the emphasis on multi-core systems, why is Microsoft investing so heavily in syntax for designed specifically for making single-threaded asynchronous programming easier?

Sneak Peak: Asynchronous Syntax for Visual Basic and C#

by Jonathan Allen on  Oct 28, 2010 4

In a recent blog post the Visual Basic team let slip an announcement that Visual Basic and C# would be getting a new syntax for asynchronous programming. Built on top of the Task Parallel Library that was introduced in .NET 4, this adds the Async and Await keywords to both languages.

Introducing the Task Parallel Library’s new Cancellation Framework

by Jonathan Allen on  Nov 11, 2009 2

Task Parallel Library, .NET 4.0’s replacement for ThreadPool, got a face lift for beta 2. In addition to performance improvements, it The most important change is probably the new cancellation framework that replaces parent/child relationships with cancellation tokens that can be freely given to logical groups of tasks.

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT