From: Tony Johansson on 10 May 2010 14:48 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 10 May 2010 21:23 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
|
Pages: 1 Prev: deadlock Next: First deployment of .net winforms help needed |