Monthly Archives: October 2008

A nice site on .NET threading

http://www.albahari.com/threading/   BTW:  ReaderWriterLockSlim  rocks, especially when wrapped with IDisposable and usings: http://devplanet.com/blogs/brianr/archive/2008/09/26/thread-safe-dictionary-in-net.aspx     public static class Locks { public static void GetReadLock(ref ReaderWriterLockSlim locks) { bool lockAcquired = false; while (!lockAcquired) lockAcquired = locks.TryEnterUpgradeableReadLock(1); }   public static … Continue reading

Posted in Uncategorized | 1 Comment