Java forkJoinPool getParallelism() MethodThe getParallelism() method of ForkJoinPool class is used to get the parallelism level of the common Pool. It returns an integer value representing the parallelism level. SyntaxParameterNA ReturnsThe targeted parallelism level of the common pool ThrowsDoes not throw the Exception. Example 1Test it NowOutput: Finder :0 Active threads :3 Left 0 Right 0 Targeted Parallelism :3 Example 2Test it NowOutput: Common Pool Size after :3 Parallelism level of pool :3 Is pool use First-in-First-out Scheduling:false
Next TopicJava Forkjoinpool
|