CharithWiki
CharithWiki

Reputation: 175

Changing Parallelism in ForkJoinPool

In Java7 ForkJoin pool we can set the parallelism for the pool at the creation time. I could not find any api to change this in the runtime dynamically. Is there a way around to change the parallelism of a ForkJoin pool dynamically?

regards, Charith

Upvotes: 0

Views: 562

Answers (1)

edharned
edharned

Reputation: 1904

NO. Although the pool does increase the number of worker threads itself when using join() or managedBlocker(). For more information you can see this article I wrote two years ago.

Upvotes: 2

Related Questions