Skip to content

Commit 655f417

Browse files
authored
Print parallelism size from ForkJoinPool (#69)
1 parent 60cc004 commit 655f417

File tree

1 file changed

+1
-0
lines changed
  • JavaReleases/src/test/java/pl/mperor/lab/java

1 file changed

+1
-0
lines changed

JavaReleases/src/test/java/pl/mperor/lab/java/Java7.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public void testNewInputOutputV2AkaNIO2() throws IOException {
118118
public void testForkJoinFibonacci() {
119119
int proc = Runtime.getRuntime().availableProcessors();
120120
ForkJoinPool pool = ForkJoinPool.commonPool();
121+
System.out.printf("ForkJoinPool parallelism size: 🥚[%s]%n", pool.getParallelism());
121122
Assertions.assertEquals(proc - 1, pool.getParallelism());
122123

123124
int[] fibonacciResults = {0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55};

0 commit comments

Comments
 (0)