Showing results for January 2010 - .NET Parallel Programming

Jan 29, 2010
0
0

Are you using the CCR? We’d love to hear about it.

Stephen Toub - MSFT
Stephen Toub - MSFT

Are you using the CCR (Microsoft Robotics' "Concurrency & Coordination Runtime") today in production applications or libraries, and in particular for non-robotics purposes?  If so, we’d love to hear about your experiences, and any and all information you’re willing to share would be very welcome.  What do you like about it...

Jan 26, 2010
0
0

FAQ :: Are all of the new concurrent collections lock-free?

Danny Shih
Danny Shih

(This answer is based on the .NET Framework 4.  As the details below are undocumented implementation details, they may change in future releases.)No.  All of the collections in the new System.Collections.Concurrent namespace employ lock-free techniques to some extent in order to achieve general performance benefits, but traditional locks ...

.NET 4Coordination Data StructuresFAQ
Jan 19, 2010
0
0

FAQ :: You talk about performance, speedup, and efficiency…what do you mean exactly?

Danny Shih
Danny Shih

All of these terms are overloaded, even in the context of parallel computing.  However, we’ve used them extensively to describe how well our parallel algorithms and demo applications work.  And sometimes, we throw them around carelessly on the blog, forums, etc., so here are our general definitions.Performance is an attribute that r...

Parallel ExtensionsFAQ
Jan 11, 2010
0
0

FAQ :: The Debugger does not correctly handle Task exceptions?

Danny Shih
Danny Shih

The following code correctly observes and handles a Task exception and should print “gotcha!” to the console.  By default though, the Debugger will report a crash.Task t = Task.Factory.StartNew(() => { throw new Exception("poo"); }); try { t.Wait(); } catch (AggregateException) { Console.WriteLine("gotcha!"); } The issue has to ...

Parallel ExtensionsTask Parallel LibraryFAQ
Jan 8, 2010
0
1

ConcurrentDictionary’s support for adding and updating

Stephen Toub - MSFT
Stephen Toub - MSFT

ConcurrentDictionary<TKey,TValue> is a new type in the .NET Framework 4, living in the System.Collections.Concurrent namespace.  As noted in the MSDN documentation, ConcurrentDictionary “represents a thread-safe collection of key-value pairs that can be accessed by multiple threads concurrently.”  While ConcurrentDiction...

Parallel Extensions.NET 4Coordination Data Structures
Jan 5, 2010
0
0

FAQ :: Why is the speedup not X on my X-way machine?

Danny Shih
Danny Shih

We’ll be regularly posting answers to frequently asked questions that we’ve gotten on the forum, internal email lists, etc.  Here’s the first – enjoy! Why is the speedup not X on my X-way machine?  Or, why does my parallel code run slower?  Less than ideal speedup can typically be attributed to two things: 1.    &...

Parallel ExtensionsTask Parallel Library.NET 4