[concurrency-interest] Volatile / Sychronized?

Brian Goetz brian at quiotix.com
Wed Dec 20 16:21:04 EST 2006

> Please clear up something about the proper use of volatile for me. I'm 
> having difficulty understanding when volatile is sufficent. 

I'd add to this discussion that if in doubt, steer away from volatile. 
Except for very simple cases (such as "public volatile boolean 
shutdownRequested"), it is tricky to get right.

More information about the Concurrency-interest mailing list