From: Tony Johansson on
Hi!

Can somebody give an example when this ReaderWriterLock vlass might be good
to use.
I just wonder is it when you are accessing member data in a class or perhaps
when using some kind of external files.

//Tony


From: Arne Vajhøj on
On 10-05-2010 14:48, Tony Johansson wrote:
> Can somebody give an example when this ReaderWriterLock vlass might be good
> to use.
> I just wonder is it when you are accessing member data in a class or perhaps
> when using some kind of external files.

When do you not want it?

:-)

It is very common to want to allow only a single writer to
avoid concurrency problems but allow multiple readers because
they do not cause concurrency problems.

Arne