What’s the advantage of a Java-5 ThreadPoolExecutor over a Java-7 ForkJoinPool?
ThreadPool (TP) and ForkJoinPool (FJ) are targeted towards different use cases. The main difference is in the number of queues employed by the different executors which decide what type of problems are better suited to either executor. The FJ executor has n (aka parallelism level) separate concurrent queues (deques) while the TP executor has only … Read more