Showing results for Task Parallel Library - .NET Blog

Sep 17, 2011
Post comments count0
Post likes count0

What’s New For Parallelism in .NET 4.5

Stephen Toub - MSFT
Stephen Toub - MSFT

.NET 4 and Visual Studio 2010 saw the introduction of a wide range of new support for parallelism: the Task Parallel Library (TPL), Parallel LINQ (PLINQ), new synchronization and coordination primitives and collections (e.g. ConcurrentDictionary), an improved ThreadPool for handling parallel workloads, new debugger windows, new concurrency visualiz...

.NET Parallel Programming
Sep 1, 2011
Post comments count0
Post likes count0

Tasks are in Silverlight

Danny Shih
Danny Shih

So many of you have asked about it, and it's finally here.  You can now download the RC SDK and Developer Runtime of Silverlight 5, which includes TPL Tasks! https://10rem.net/blog/2011/09/01/silverlight-5-rc-now-available http://www.silverlight.net/downloads

.NET Parallel Programming
Jun 27, 2011
Post comments count0
Post likes count0

Using Tasks to implement the APM Pattern

Stephen Toub - MSFT
Stephen Toub - MSFT

Several times recently, folks have asked how to use tasks to implement the APM pattern, otherwise known as the Asynchronous Programming Model pattern, or the IAsyncResult pattern, or the Begin/End pattern.  While moving forward we encourage folks to use a Task-based pattern for exposing asynchronous operation, the APM pattern has been the prev...

.NET Parallel Programming
Jun 6, 2011
Post comments count0
Post likes count0

Parallel Merge Sort using Barrier

Emad Omara
Emad Omara

Sorting is one of the most fundamental problems in software algorithms; there are many sequential sorting algorithms with different time and memory complexities, but when it comes to parallel sort, things get more complicated. I will explain a simple and scalable algorithm to write a parallel sort using the .NET 4.0 System.Threading.Barrier synchro...

.NET Parallel Programming
Apr 13, 2011
Post comments count0
Post likes count0

TPL Dataflow CTP Refresh

Stephen Toub - MSFT
Stephen Toub - MSFT

Today, we released a new CTP of TPL Dataflow, otherwise known as System.Threading.Tasks.Dataflow.dll.  You can download this as part of the Microsoft Visual Studio Async CTP, which will also install the new C#/Visual Basic support for writing asynchronous methods, or you can install the DLL itself through the installer available on the DevLabs...

.NET Parallel Programming
Jan 13, 2011
Post comments count1
Post likes count4

await anything;

Stephen Toub - MSFT
Stephen Toub - MSFT

One of the very cool things about the new await keyword in C# and Visual Basic is that it’s pattern based.  It works great with Task and Task<TResult>, and awaiting those two types will represent the vast majority of uses, but they’re by no means the only types that can be awaited.  The languages support awaiting any ins...

.NET Parallel Programming
Jan 13, 2011
Post comments count2
Post likes count5

Await, and UI, and deadlocks! Oh my!

Stephen Toub - MSFT
Stephen Toub - MSFT

It’s been awesome seeing the level of interest developers have had for the Async CTP and how much usage it’s getting.  Of course, with any new technology there are bound to be some hiccups.  One issue I’ve seen arise now multiple times is developers accidentally deadlocking their application by blocking their UI thread, ...

.NET Parallel Programming
Nov 21, 2010
Post comments count0
Post likes count1

Processing Sequences of Asynchronous Operations with Tasks

Stephen Toub - MSFT
Stephen Toub - MSFT

Of late, I’ve seen multiple folks asking about how to use tasks to asynchronously execute a sequence of operations.  For example, given three synchronous functions: public string DoA(string input); public string DoB(string aResult); public string DoC(string bResult); you could invoke these functions with code like: strin...

.NET Parallel Programming
Oct 28, 2010
Post comments count0
Post likes count0

TPL Dataflow preview available for download

Stephen Toub - MSFT
Stephen Toub - MSFT

As mentioned here, the Visual Studio Async CTP is now available for download from https://msdn.com/vstudio/async.  Not only does this download add language support into C# and Visual Basic for writing asynchronous methods (in which you can easily “await” tasks), it also includes a new .NET library we lovingly refer to as “TPL...

.NET Parallel Programming
Oct 27, 2010
Post comments count0
Post likes count0

Language support for Tasks!

Stephen Toub - MSFT
Stephen Toub - MSFT

Today is a very exciting day for Parallel Extensions, and indeed for all developers using C# and Visual Basic and who are interested in writing more responsive and scalable applications. At the PDC this morning, Anders Hejlsberg just announced the Visual Studio Async CTP, which you can download immediately from the landing page at https://msdn.com/...

.NET Parallel Programming