[concurrency-interest] some questions with ThreadPoolExecutor
martinrb at google.com
Wed Aug 15 13:42:17 EDT 2012
On Wed, Aug 15, 2012 at 6:35 AM, freish <freish at 163.com> wrote:
> the source code is from jdk1.6_0_26.
You could check out the code in openjdk6, for comparison.
> Sometimes we submit a set of tasks to the pool and don't use the pool any
> more and wait for the tasks finished,but if exception is thrown from some
> of the tasks,the pool size will decrease，this will case the tasks execute
> in serial mode,and this will affect the concurrency,perhaps increase the
> program execution time.
There have been many fixes to TPE over the years, but your problem doesn't
> there is no such problem in jdk1.7.
You can either upgrade to 1.7, or you can probably use the latest
implementation in a jdk6, e.g. with -Xbootclasspath/p:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest