Showing results for 2011 - Page 3 of 4 - .NET Parallel Programming

Sep 17, 2011
0
0

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

Parallel ExtensionsTask Parallel Library.NET 4.5
Sep 1, 2011
0
0

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

Parallel ExtensionsTask Parallel LibrarySilverlight
Jun 29, 2011
0
0

Quick microbenchmarks in Visual Studio with Code Snippets

Stephen Toub - MSFT
Stephen Toub - MSFT

Parallelism is all about performance.  After all, in the majority of cases, introducing parallelism into code adds some level of complexity, and the primary reason we’re ok with that additional complexity is because we get great performance enhancements as a result.  As such, as we develop our parallel runtimes and libraries to help...

Jun 27, 2011
0
0

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

Parallel ExtensionsTask Parallel Library.NET 4
Jun 6, 2011
0
0

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

Parallel ExtensionsTask Parallel Library.NET 4
May 3, 2011
0
0

More case studies on .NET 4 parallelism support

Stephen Toub - MSFT
Stephen Toub - MSFT

When .NET 4 was launched, we blogged about several case studies published regarding usage of .NET 4 to parallelize applications.  Quite recently, several additional case studies have been published.  I love reading these in order to better understand how folks are applying this technology, and parallelism in general, to improve their solu...

.NET 4
May 3, 2011
0
0

Static constructor deadlocks

Igor Ostrovsky - MSFT
Igor Ostrovsky - MSFT

One important fact to know about static constructors is that they effectively execute under a lock. The CLR must ensure that each type is initialized exactly once, and so it uses locking to prevent multiple threads from executing the same static constructor. A caveat, however, is that executing the static constructor under a loc...

May 2, 2011
0
0

Presentation on TPL Dataflow in financial applications

Stephen Toub - MSFT
Stephen Toub - MSFT

Matt Davey from Lab49 presented at the Waters North American Trading Architecture Summit April 2011 on using TPL Dataflow in trading solutions.  You can see his slide deck at http://www.slideshare.net/mattdotdavey/waters-north-american-trading-architecture-summit-april-2011. It's awesome to see the technology being used effectively to help bui...

TalksDataflow
Apr 13, 2011
0
0

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

Task Parallel Library.NET 4Async
Apr 2, 2011
0
2

Little-known gems: Atomic conditional removals from ConcurrentDictionary

Stephen Toub - MSFT
Stephen Toub - MSFT

ConcurrentDictionary<TKey,TValue>, first introduced in .NET 4, is an efficient dictionary data structure that enables thread-safe reading and writing, meaning that multiple threads may all be accessing the dictionary at the same time without corrupting it.  It supports adding through its TryAdd method, conditional updates through its Try...

.NET 4Coordination Data Structures