[concurrency-interest] Volatiles & deadlock

Ryan LeCompte ryan.lecompte at pangonetworks.com
Wed Nov 2 08:51:40 EST 2005

Hello all,


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...
URL: /pipermail/attachments/20051102/61ce5427/attachment.htm

More information about the Concurrency-interest mailing list