문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top