[Mono-list] ReaderWriterLockSlim

Maciej Paszta paszczi at go2.pl
Tue Sep 16 17:35:22 EDT 2008


On Sep 16, 2008, at 10:12 PM, James Mansion wrote:

> paszczi at go2.pl wrote:
>> Hi!
>>
>> I know that MS implementation of ReaderWriterLock was buggy (or so  
>> they say). That's why they've created new lock  -  
>> ReaderWriterlockSlim
> Who is 'they'?
>
> You know that there are new rw locks in 2008/Vista (and condition  
> variablesand some other changes)?  It may be that they can deliver  
> the same code in a different form.
>
> I'd beinterested to see a critique of the readerWriterLock.

As for the rw lock in 2008/Vista - I'm not aware of any, could you  
please post any links. I would be grateful. As for 'they' I have just  
read ReaderWriterLock documentation on msdn:

http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlock.aspx

which has some interesting notes here:

http://www.bluebytesoftware.com/blog/PermaLink,guid,54bf6c16-ce42-49d5-94db-aafbd7cb0c27.aspx

And another page referring to ReaderWriterLock's problems:

http://www.albahari.com/threading/part3.html#_ReaderWriterLock

Best regards,
Maciej Paszta



More information about the Mono-list mailing list