Category "forkjoinpool"

WatchService large number of directory (recursive)

I want to detect changes inside a directory, so I implement by using WatchService public class DirWatcher implements Runnable { private Path path; priv

What is the disadvantage of using a ForkJoinPool when it is not needed?

Imagine a scenario where a task can be divided into sub-tasks, each of which does some long running process. Assuming that this heavy task occurs only in 5/100