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.
About Question enthuware.ocpjp.v8.2.1260 :
Moderator: admin
-
- Posts: 21
- Joined: Mon Oct 24, 2016 6:55 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1260 :
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.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 4 guests