commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: ThreadPool Contribution
Date Tue, 16 Mar 2004 18:44:39 GMT

I've updated index.xml and the site itself.  Thanks,

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Scot Hale []
>Sent: Tuesday, March 16, 2004 12:41 PM
>To: Jakarta Commons Developers List
>Subject: Re: ThreadPool Contribution
>Thanks for the pointers.  Can we add this comment to the
>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
>Thanks for the contribution ;)  AFAIK there's negligible usage of the
>ThreadPool library, because Doug Lea's util.concurrent library (is
>works fine on early JDKs, and is now java.util.concurrent in JDK 1.5)
>highly popular, reliable, and full-featured.
>Yoav Shapira
>Millennium Research Informatics
>>-----Original Message-----
>>From: Scot Hale []
>>Sent: Monday, March 15, 2004 6:44 PM
>>Subject: ThreadPool Contribution
>>I have been using the Sandbox ThreadPool library, and have been
>>quite useful.  I did make a change to the MTQueue.remove() though.  If
>>are interested this is what I changed :
>>This way the MTQueue will just wait until something is added to the
>>instead of looping every 10 seconds until something is added to the
>>the MTQueue.add adequately notifies this Thread and returns null.
>>    /**
>>     * 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:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message