Sangjin Lee wrote:
Even then, this is not dangerous, as far as you respect the Volatile contract. Synchronization is not needed in this case.If it wasn't obvious (I guess it was not), what I meant was "using non-volatile variables *in the absence of any synchronization* ...". :)
-- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org