<embarrssed>On second thoughts I agree with your
original assessment. My algorythm only worked because
it was busy waiting</embarressed>

I've fixed it by converting to monitors, 
but obviously I want to test it some more before I commit.

The monitor service has the same problem :-(

Regards,
Adrian

> Hi Scott,
> 
> This shows my lack of knowledge about sleep().
> I thought sleep(0) was wait forever :-(
> 
> I will fix the linear traversal when I remove the
> dependency on the oswego class.
> 
> Regards,
> Adrian
> 
> > The problem with the server spinning after running
> > the testsuite
> > on linux was due to the
> javax.management.timer.Timer
> > calling
> > sleep(0) which apparently is basically a noop and
> so
> > a busy
> > wait for new timers resulted. In general the
> > implementation of
> > this class looks questionable as it is using
> linear
> > traversals and
> > inefficient waiting.
> > 
> > xxxxxxxxxxxxxxxxxxxxxxxx
> > Scott Stark
> > Chief Technology Officer
> > JBoss Group, LLC
> > xxxxxxxxxxxxxxxxxxxxxxxx
> > 
> > 
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/jboss-dev
> 
> > lopment
> 


_________________________________________________________
View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=12884

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to