> Unlike longs, integer assignments are atomic. If we keep the  
> statistics in a volatile int, we make sure different threads see the  
> most current value, without the need to lock.

Just a minor point, double and long assigments are atomic if volatile.

        Kev

Kevin Conner
This is a personal e-mail. Any views or opinions presented are 
solely those of the author and do not necessarily represent those 
of Orchard Information Systems Ltd.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to