Use ReaderWriterLockSlim to Protect Access to Resources in C#
It is normally safe to allow let multiple threads read data at the same time, but when a thread is required to perform a write, all other threads will need to be blocked. The .NET framework originally provided ReaderWriterLock for this circumstance, but it has performance issues which often outweigh its usefulness. [...]
Read more



22. Jul, 2010