I am using a ReaderWriterLock on a .net remoting server, when I put a break point on the line: ReaderWriterLock.AcquireReaderLock, it takes about 1 minute to hit this break point because the writes are very frequent. Is there a way to get this lock on so hat the reads have a higher priority. There seems to be several functions for releasing and upgrading locks, but not sure how to use them.
Here is what I MSDN docs says (http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlock.aspx):
Open in new window