Volatility
Use the
volatile
keyword to warn the compiler that fields may change in multiple threads
Otherwise it may make illegal optimizations
See
http://www.artima.com/weblogs/viewpost.jsp?thread=143013
Previous
|
Next
|
Top
|
Cafe au Lait
Copyright 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified January 5, 2006