[concurrency-interest] ForkJoinPool cap on number of threads

Martin Buchholz martinrb at google.com
Wed Mar 25 14:23:03 EDT 2015


On Wed, Mar 25, 2015 at 8:24 AM, Luke Sandberg <lukeisandberg at gmail.com>
wrote:

> Thanks!
>
> Looks like i can have my ForkJoinThreadFactory return null to limit active
> threads. (it would be nice if that was documented on ForkJoinThreadFactory)
>
>
I agree that we should make that clearer - there are existing snippets of
javadoc, but we should add something (perhaps even sample code) showing how
to impose a limit.


> In that snapshot it looks like the maxSpares limitation only applies to
> the common pool, is there a plan to add a standard maxSize mechanism for
> user pools?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20150325/71ac275f/attachment.html>


More information about the Concurrency-interest mailing list