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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top