Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 99563 invoked from network); 16 Mar 2004 18:45:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Mar 2004 18:45:38 -0000 Received: (qmail 71528 invoked by uid 500); 16 Mar 2004 18:45:29 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 71074 invoked by uid 500); 16 Mar 2004 18:45:26 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 71056 invoked from network); 16 Mar 2004 18:45:26 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 16 Mar 2004 18:45:26 -0000 Received: from thunderbolt.mpi.com (thunderbolt [63.244.253.70]) by warhawk.mpi.com (Switch-2.2.8/Switch-2.2.8) with ESMTP id i2GIfiB22950 for ; Tue, 16 Mar 2004 13:41:44 -0500 (EST) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [63.244.252.30]) by thunderbolt.mpi.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id i2GIj9wR020955 for ; Tue, 16 Mar 2004 13:45:20 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: ThreadPool Contribution Date: Tue, 16 Mar 2004 13:44:39 -0500 Message-ID: <9C5166762F311146951505C6790A9CF8013DFF6E@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ThreadPool Contribution Thread-Index: AcQLfbyCpRX92S9aSQKOemipPkXWGgACPKWg From: "Shapira, Yoav" To: "Jakarta Commons Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I've updated index.xml and the http://jakarta.apache.org/commons/threadpool site itself. Thanks, Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Scot Hale [mailto:halesm@hotmail.com] >Sent: Tuesday, March 16, 2004 12:41 PM >To: Jakarta Commons Developers List >Subject: Re: ThreadPool Contribution > >Yoav, > >Thanks for the pointers. Can we add this comment to the xdocs/index.xml? >Something like > >

> >For a full-featured threading library see Doug Lea's util.concurrent= . > >(works fine on early JDKs, and is now java.util.concurrent in JDK 1.5= ) > >

> > >----- Original Message ----- >From: "Shapira, Yoav" >To: "Jakarta Commons Developers List" >Sent: Tuesday, March 16, 2004 5:47 AM >Subject: RE: ThreadPool Contribution > > > >Hi, >Thanks for the contribution ;) AFAIK there's negligible usage of the= >ThreadPool library, because Doug Lea's util.concurrent library (is free, >works fine on early JDKs, and is now java.util.concurrent in JDK 1.5)= is >highly popular, reliable, and full-featured. > >Yoav Shapira >Millennium Research Informatics > > >>-----Original Message----- >>From: Scot Hale [mailto:halesm@hotmail.com] >>Sent: Monday, March 15, 2004 6:44 PM >>To: commons-dev@jakarta.apache.org >>Subject: ThreadPool Contribution >> >>Hi, >> >>I have been using the Sandbox ThreadPool library, and have been finding >it >>quite useful. I did make a change to the MTQueue.remove() though. = If >you >>are interested this is what I changed : >> >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>MTQueue.java >>from >>http://jakarta.apache.org/commons/sandbox/threadpool/xref/org/apache= /c o >mmon >>s/threadpool/MTQueue.html#113 >> >>This way the MTQueue will just wait until something is added to the >queue, >>instead of looping every 10 seconds until something is added to the >queue. >>the MTQueue.add adequately notifies this Thread and returns null. >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> /** >> * Removes the first object from the queue. >> * If the Queue is empty, it will wait() until another >> * Runnable is added to the queue. >> */ >> public synchronized Object remove(){ >> try{ >> return list.removeFirst(); >> }catch (NoSuchElementException e){ >> try { >> wait(); >> } >> catch (InterruptedException e1) { >> } >> } >> return null; >> } >> >> >> >>Scot Hale > >---------------------------------------------------------------------= >To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-dev-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org