Page 1 of 1

About Question enthuware.ocpjp.v8.2.1260 :

Posted: Thu Apr 13, 2017 6:50 am
by nikitos
How to create ForkJoinPool with 10 threads?
Class contains 3 constructors, but only in first is declared that by default will be used number of processors. For other is used int parallelism, but it does not sound like threads cound.

Re: About Question enthuware.ocpjp.v8.2.1260 :

Posted: Thu Apr 13, 2017 7:40 am
by admin
You can't explicitly specify the number of threads. As you have noted, you can specify the level of paralallism, which is basically implemented using threads.

HTH,
Paul.