Showing tag results for Parallel Extensions

Sep 18, 2011
Post comments count0
Post likes count0

Parallelism BUILD talks available on Channel9

Stephen Toub - MSFT
Stephen Toub - MSFT

Thanks to everyone who attended my two talks at BUILD this past week, and I hope you enjoyed the sessions!  For those of you unable to attend in person, the recordings of the talks are now available on Channel9: There were hundreds of other sessions this week at BUILD, and you can find their videos here: https://channel9.msdn.com/Events/BUI...

.NET Parallel Programming
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
Feb 15, 2011
Post comments count0
Post likes count0

SpinWait.SpinUntil for unit testing

Stephen Toub - MSFT
Stephen Toub - MSFT

One of the hidden gems in .NET 4 is the System.Threading.SpinWait type.  This type is typically used for implementing lock-free solutions, and is used heavily throughout the rest of the threading and parallelism support in .NET 4.  That’s why I call it “hidden”, because most folks don’t implement their own lock-fre...

.NET Parallel Programming
Jan 26, 2011
Post comments count0
Post likes count0

TPL Dataflow on TC Labs

Stephen Toub - MSFT
Stephen Toub - MSFT

After releasing a CTP of TPL Dataflow as part of the Async CTP, we had multiple requests for a standalone download for just the System.Threading.Tasks.Dataflow.dll.  Thanks to everyone who asked for this, and as of this morning, such an installer for an updated version of the preview is now available!  This is part of a special ...

.NET Parallel Programming
Jan 15, 2011
Post comments count5
Post likes count5

AsyncLazy

Stephen Toub - MSFT
Stephen Toub - MSFT

A question I’ve seen come up from time to time is “Why doesn’t Lazy<T> support asynchronous initialization?”  It’s a fair question.  After all, if you’re using Lazy<T> because you have an expensive resource you want to delay the creation of until it’s absolutely needed, it’s fair...

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

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