I don't know about this time around but originally (i.e. about 6 months ago)
I got rid of the oswego stuff because it caused JBossMQ to deadlock
completely when under high load.  One of the major stabilising factors in
moving from JBossMQ 0.8 to JBossMQ 1.0 was the rewriting of the thread
handling stuff and subsequent removal of the oswego code.

I must admit the reason I had to remove the code rather than attempt to fix
it was that I didn't understand completely how their semaphore based locking
scheme worked and where it was going wrong when the deadlock occurred.  Also
the need for a thread pool effectively vanished at the time when I had
finished simplifying the MQ delivery mechanisms so I didn't investigate more
fully.

David.


> -----Original Message-----
> From: Jason Dillon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 15, 2002 8:43 AM
> To: [EMAIL PROTECTED]; Adrian Brock
> Subject: Re: [JBoss-dev] javax.management.timer.Timer looks 
> questionable
> 
> 
> Juts currious why we have been trying to get rid of oswego 
> usage?  I have seen 
> mail like this before for JBossMQ, but I don't really 
> understand why.  These 
> classes are designed very well and are maintained by and 
> expert in this 
> field...
> 
> Anyways, just currious.
> 
> --jason
> 
> 
> Quoting Adrian Brock <[EMAIL PROTECTED]>:
> 
> > 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
> 




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
 

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

Reply via email to