RFR: 8322732: ForkJoinPool may underutilize cores in async mode [v2]
Sunmisc Unsafe
duke at openjdk.org
Thu May 23 09:14:08 UTC 2024
On Thu, 16 May 2024 10:29:48 GMT, Sunmisc Unsafe <duke at openjdk.org> wrote:
>> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Address review comments
>
> Maybe I don't quite understand, or I don't have proof, But wouldn't it be better if invokeAll in FIFO mode (asyncMode) traverses the Future list as a FIFO (currently it traverses in LIFO order)
> @sunmisc invokeAll doesn't specify an exec or join order; forward exec snf inverse normally uses fewest resources.
thanks, yes, but I meant a bit different if the tasks are done in FIFO order
then the first task might already be executed unlike the last one, which might reduce the blocking overhead?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19131#issuecomment-2126615413
More information about the core-libs-dev
mailing list