Speeple News Search

Sign Up! | Tags | Domains | Statistics | Options | Advanced Search

Hashtable and Dictionary thread safety considerations

msdn.com » 2008 » March » 15th » Hashtable and Dictionary thread safety considerations

Tagged: collections

Let’s start with the basics: System.Collections.Hashtable is multiple-reader, single-writer threadsafe. System.Collections.Generic.Dictionary has no thread safety guarantees. Consider a class that has a Dictionary member, and assume that multiple threads may access it simultaneously. Taking a lock is expensive, so what do you think about the following attempt to defer taking a lock? class Continue Reading »


Latest news from Kim Hamilton:

  1. FileSystemWatcher doesn't fire events for monitored network drive after changing InternalBufferSize
  2. VisualStudio 2008 install failing because of pre-release products
  3. Difference between Disposing and Finalizing (referral)
  4. The never-ending saga of Close/Dispose
  5. The (often non-) difference between Close and Dispose

Latest news from msdn.com:

  1. A sign of today's ever changing Enterprise Developer - the Podcasting Kit for Microsoft SharePoint
  2. VBA と VSTO の相互運用について(VSTOソリューションから VBA の呼び出し)
  3. IE8 Beta 2 is Out, Get It
  4. Fox Business - alternatives to the iPhone
  5. A Virtude e o Meio