== Quote from SK ([email protected])'s article
> Does 'synchronized' mean the exact same thing as the C 'volatile'
> qualifier when applied to basic types?
> As in:
> synchronized int x;

They're completely different.  synchronized is basically a scoped mutex and
applies to a statement, not a variable declaration.  I have no idea what your
example does, but it probably shouldn't even compile.  Volatile just prevents
certain compiler optimizations that can interfere with updates to a variable 
from
other hardware besides the CPU and is useful for things like device drivers.

Reply via email to