> //flag starts out true
>
> thread 1:
> while (!flag)
> // do something not involving flag.
>
> thread 2:
> flag = false;
>
Sorry, I meant while (flag), not while(!flag).
Jeremy
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel
This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:27 EDT