[concurrency-interest] Volatiles & deadlock
ryan.lecompte at pangonetworks.com
Wed Nov 2 08:51:40 EST 2005
Is there any possible way for variables that are declared as "volatile" to
possibly get in a deadlock by the JVM? I know that if access to a particular
shared mutable variable is protected by methods that are "synchronized",
that it's still possible for a deadlock to occur depending on the
implementations of these synchronized methods. However, if there is nothing
to worry about when declaring a variable as volatile and not using the
"synchronized" approach to ensure correctness, right?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest