BTW it was "classic" example:

void run(){

   
  while(!terminated){
   ...
 }

}
It doe's not work if "terminated" is not "volatile"
and  "read" is not synchronized (value is just cached
on the first read and thread never terminates ).


--- Max Rydahl Andersen <[EMAIL PROTECTED]>
wrote:

> 
> just ccing the devel list...
> 
> -max
> 
> ------- Forwarded message -------
> From: "baliuka juozas" <[EMAIL PROTECTED]>
> To: "Max Rydahl Andersen" <[EMAIL PROTECTED]>
> Cc:
> Subject: Re: [Hibernate] lesson learned...
> Date: Fri, 08 Jul 2005 20:55:59 +0200
> 
> 
> I had a similar problem  after I moved application
>  from windows to linux (I do not remember linux
> kernel
> version, but it was with "standard" SUN JVM)
> 
> --- Max Rydahl Andersen <[EMAIL PROTECTED]>
> wrote:
> 
> >
> >
>
http://forum.hibernate.org/viewtopic.php?p=2249949#2249949
> >
> > Does anyone know if that issue is really worth
> while
> > fixing ?
> > Does *any* JVM really return a not-in-sync value
> for
> > a variable
> > incremented in a different thread ?
> >
> > (just read the last two postings to get its
> meaning)
> >
> > /max
> >
> >
> >
>
-------------------------------------------------------
> > This SF.Net email is sponsored by the 'Do More
> With
> > Dual!' webinar happening
> > July 14 at 8am PDT/11am EDT. We invite you to
> > explore the latest in dual
> > core and dual graphics technology at this free one
> > hour event hosted by HP,
> > AMD, and NVIDIA.  To register visit
> > http://www.hp.com/go/dualwebinar
> > _______________________________________________
> > hibernate-devel mailing list
> > hibernate-devel@lists.sourceforge.net
> >
>
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> >
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
> 
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by the 'Do More With
> Dual!' webinar happening
> July 14 at 8am PDT/11am EDT. We invite you to
> explore the latest in dual
> core and dual graphics technology at this free one
> hour event hosted by HP,
> AMD, and NVIDIA.  To register visit
> http://www.hp.com/go/dualwebinar
> _______________________________________________
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to