Q: What happens when the compute() method, in a class “X” that extends RecursiveAction/Task, is directly called? Without calling a ForkJoinPool explicitly like the following: Instead a function call like the following still produce a similar result: What happens when the fork()/invokeAll() method inside class X is called (explicit ExecutorService is absent)? My assumption would be, when an fork() or
Tag: forkjoinpool
When should we call join() after ForkJoinTask.invokeAll()
The API says: “Method invokeAll (available in multiple versions) performs the most common form of parallel invocation: forking a set of tasks and joining them all.” So my assumption is if I use …