Sangjin Lee wrote:
I don't see how it can be dangerous, as far as you synchronized the code correctly.IMHO using non-volatile variables in a multi-threaded situation is living dangerously.
-- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org