Geeks With Blogs
Simon Cooper Peering into the depths of .NET January 2012 Entries
Inside the Concurrent Collections: ConcurrentQueue
ConcurrentQueue is, like ConcurrentStack, a lockless collection, in that it is implemented without using any locks at all. However, the semantics required for a queue impose a quite different approach; unlike ConcurrentStack, which has a single point of concurrent contention, a queue can be changed at both the head and tail. This means that at least two variables are involved, most likely more. The simple approach of atomically modifying a single variable won't work here. What does System.Collections.Generic.... ......

Posted On Tuesday, January 24, 2012 10:14 PM

Inside Red Gate - Experimental Results
As a brief interlude from my Concurrent Collections series, I thought I would give an roundup of how the lean startup experiments have been progressing. As you can expect, there's been some good aspects and some bad aspects. The experiments so far After lots of discussions, arguments, posing and ruling out hypotheses, we came up with two 'starter' hypotheses we could test fairly easily: Customers don't agree to send data on how they use SmartAssembly; which features they use, the versions of .NET ......

Posted On Tuesday, January 17, 2012 5:42 PM

Inside the Concurrent Collections: ConcurrentStack
The first concurrent collection we'll look at is ConcurrentStack. This is conceptually the same as System.Collections.Generic.... but is geared towards occasional concurrent modifications. Now, in these posts I won't be looking to explain what every method does; just like my other explorations of various collection types, I'll be concentrating on the core implementation and concepts used by the collections, and glossing over the more sordid implementation details and scaffolding required to support ......

Posted On Thursday, January 12, 2012 1:56 PM

Inside the Concurrent Collections
The concurrent collections, located in the System.Collections.Concurrent namespace, were introduced in .NET 4 as thread-safe collections that could be used without locking, and there are plenty of posts and articles out on the interwebs giving an overview of the collections and how to use them. Instead, I'll be focusing these posts on how the concurrent collections are implemented; how they achieve thread-safety and the principles behind their implementation. Not only because I find that sort of ......

Posted On Thursday, January 5, 2012 2:43 PM

Copyright © simonc | Powered by: