[concurrency-interest] missed deadlines.

Dhanji R. Prasanna dhanji at gmail.com
Thu Jul 6 22:29:27 EDT 2006


On 7/7/06, David Holmes <dcholmes at optusnet.com.au> wrote:
>
> > Another think I'm wondering about is the fixed size of the threadpool
> > of the scheduledthreadpoolexecutor. I can image it would be usefull
> > that a threadpool increases if there are no available threads to
> > execute a scheduled task and if those 'extra' threads aren't used for
> > some time, they could be discarded. Am I missing something?
>
> I agree that ScheduledTPE needs further thought in the area of pool
> sizing.
> It is stuck at only coreSize. I believe in Mustang allowCoreThreadTimeout
> can be set so that would allow the pool to grow and shrink based on
> demand,
> but even so I suspect that the policy of favouring thread creation when
> below coreSize would not be ideal.



Re auto-creation of pools, what is wrong with simply starting out with the
max-intended size? After all there is no cost associated with idle threads
is there? I would think that allowing for no cap on max threads is a *very*
bad idea.
Or am I missing something else...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20060707/23e90591/attachment.html 


More information about the Concurrency-interest mailing list