[concurrency-interest] Threadpoolexecutor.maximumPoolSize

David Holmes dcholmes at optusnet.com.au
Wed Aug 30 16:51:10 EDT 2006


Seth,

TPE only grows beyond coresize if your queue is bounded and becomes full. If
your queue is unbounded then core is the limit.

David Holmes

> -----Original Message-----
> From: concurrency-interest-bounces at cs.oswego.edu
> [mailto:concurrency-interest-bounces at cs.oswego.edu]On Behalf Of Seth
> Green
> Sent: Thursday, 31 August 2006 5:48 AM
> To: concurrency-interest at cs.oswego.edu
> Subject: [concurrency-interest] Threadpoolexecutor.maximumPoolSize
>
>
> I had no idea the java.util.concurrency library had been backported, and
> I was so fired up to use it. I have some code that uses a
> ThreadPoolExecuter, but it seems that although I have set the
> maximumPoolSize to 50 the pool never grows beyond my corePoolSize.
>
> Does anyone have a suggestion as to why this would be the case. Is there
> something I should be doing differently?
>
> I check getMaximimPoolSize() in a number of places and it is always 50,
> but even though I try to assign 50 threads at once, it only ever start 5
> (my corePoolSize).
>
> Any insight would be greatly appreciated.
>
> thanks,
> seth
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest



More information about the Concurrency-interest mailing list