RE: JavaMemoryModel: correct synchronization

From: David Holmes (
Date: Mon Feb 23 2004 - 18:01:33 EST

Eliot Moss wrote:
> I ask: Is this not, in effect, barrier synchronization. a tried and true
> and widely used technique?

You are absolutely right - don't know what I was thinking. I'll blame jet
lag and searing 42C temperatures for a partial brain meltdown.

I was quite happy to suggest that a volatile could be used to protect access
to w but failed to recognise that the sync block was protecting access to it
in exactly the same way. Nothing wrong there at all.

David Holmes

JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:58 EDT