On Wed, Oct 08, 2003 at 12:12:22PM +0200, Pawel Jakub Dawidek wrote: > But I'm not talking about non-atomic reads. What I'm want to show is that > even atomic read (without lock) is dangerous in some cases. > > +> If you don't care about occasionally reading false data (for statistics or > +> such stuff) you can go without the lock. > > I'm afraid that many developers thinks that atomic reads are always safe > without locks (there are many such reads in sources). I hope I'm wrong.
Correcto. A while back peter@ and I discussed this. If you can think of such places, share what you've found, and let's discuss fixing the offending code so as to avoid nasty races. BMS
pgp00000.pgp
Description: PGP signature