Showing results for 2010 - Page 14 of 14 - .NET Blog

Jan 19, 2010
Post comments count0
Post likes count0

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

.NET Parallel Programming
Jan 11, 2010
Post comments count0
Post likes count0

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

.NET Parallel Programming
Jan 8, 2010
Post comments count0
Post likes count1

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

.NET Parallel Programming
Jan 5, 2010
Post comments count0
Post likes count0

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

.NET Parallel Programming