We have a project aimed at RTM.NET 2.0 (yes, it should be RTM.NET 2.0, we have some Orthodox clients). And I'm just wondering what are the disadvantages of ReaderWriterLock ? Why is it so bad that everyone says "do not use it, try to use something else, like a lock statement"? If we could use .NET 3.5, I would definitely use ReaderWriterLockSlim , but with ReaderWriterLock I am a little ReaderWriterLock with all this warning coming from outside. Has anyone measured performance or something else? If there are any performance issues, by what payload can we meet them?
We have a classic situation from the point of view of the ReaderWriterLock main goal, i.e. repeated reading and rarely writes. Using the lock statement blocks all readers. This may not be a terrible problem for us, but if I could use ReaderWriterLock , I would be more satisfied. IMO representing multiple monitors is really a very bad idea.
Dmitry Lobanov
source share