Re: JavaMemoryModel: Threading issues in my connection pool

From: Jeremy Manson (jmanson@cs.umd.edu)
Date: Wed Sep 06 2000 - 13:24:18 EDT


> //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