Java forkJoinPool getPoolSize() Method
The getPoolSize() method of ForkJoinPool class is used to get the size of the pool. Size of the pool depends on the number of workers that have started but not yet terminated.
No parameter is passed.
The number of worker threads.
Does not throw the exception.
Example 1Test it Now
Common Pool Size before :0 Common Pool Size after :1
Example 2Test it Now
Pool Size :2