[concurrency-interest] a question about concurrent safe access

Joe Bowbeer joe.bowbeer at gmail.com
Tue Sep 20 04:06:25 EDT 2005

On 9/20/05, Peter Veentjer - Anchor Men <p.veentjer at anchormen.nl> wrote:
> But what can happen if a field is used in a multithreaded environment
> and it isn`t synchronized or volatile. Could you get some serious
> vm-errors (or totally unacceptable behaviour of the program)? Or just an
> old reference?

The answer is C: Just an old reference

Your thread must see a live reference (or null) written by some thread
-- but it might not see the most recent value written.

More information about the Concurrency-interest mailing list