Synchorization with ReadeWriterLock class

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

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
 
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
 
Back
Top