[concurrency-interest] java.util.concurrent.ThreadPoolExecutor does not execute jobs in some cases

Martin Buchholz martinrb at google.com
Sat May 8 21:38:44 EDT 2010


Unfortunately, I don't think the ThreadPool fixes
were backported to the proprietary JDK 6 code base,
but they are in OpenJDK6 and OpenJDK7.

You can try using the ThreadPoolExecutor from openjdk6,
or from Doug's CVS.

Martin

On Sat, May 8, 2010 at 11:33, Ashwin Jayaprakash
<ashwin.jayaprakash at gmail.com> wrote:
> This is an old email, but I found out today that there were still strange
> problems on JDK 6_18 related to this coreThread count.
>
> Even with coreThreads=maxThreads, some pools would never start and would
> never process any job. The solution required calling
> prestartAllCoreThreads(). I will investigate more later, but for anyone else
> facing this problem it will help. Calling just prestartCoreThread() might
> also work, but I haven't tried.
>
> Ashwin.
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>
>


More information about the Concurrency-interest mailing list