tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Goetz <>
Subject Re: Thread-safety
Date Tue, 30 Jan 2001 11:40:04 GMT
> There are IMHO two reasons why these statements may be 'executed' out of
> order:

Good explanation.  

> AFAIK the only mechanism the Java language provides to ensure this is
> the use of synchronized blocks.

One could also consider the volatile keyword in this category.  But
few JVMs implement volatile according to spec...

View raw message