Hmm... Could you share a simple example of a non-volatile variable that respects the volatile contract? Thanks, Sangjin
On Wed, May 14, 2008 at 8:38 AM, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote: > Sangjin Lee wrote: > >> If it wasn't obvious (I guess it was not), what I meant was "using >> non-volatile variables *in the absence of any synchronization* ...". :) >> >> > Even then, this is not dangerous, as far as you respect the Volatile > contract. Synchronization is not needed in this case. > > > -- > -- > cordialement, regards, > Emmanuel Lécharny > www.iktek.com > directory.apache.org > > >