They should be, but aren't in SUN JDK 1.3.x and others. There is a test
case for this on Bill Pugh website at
http://www.cs.umd.edu/~pugh/java/memoryModel/
Stefan
On Friday, Feb 28, 2003, at 07:41 US/Pacific, Kevin Conner wrote:
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
-------------------------------------------------------
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