Posts

Showing posts from 2018

Leveraging Multicore CPU architecture with fork-join framework in Java

Image
Introduction Well, today we are going to leverage Multicore CPU architecture using fork-join framework in Java. Fork-join framework was introduced in Java 7 and has not been covered in most of the Multithreading books released earlier. Today we have multicore CPUs and can implement parallel algorithms to leverage them. Introduction of Multicore CPUs has led to significant changes in more concurrency concepts and frameworks including Java. As we moved into the multicore era, the primary application of concurrency was to factor the workload into independent, coarse-grained tasks — with the aim of increasing throughput by processing multiple requests simultaneously. We are going to discuss how to execute Merge Sort algorithm in parallel by leveraging multi core CPU architecture today. At the end I am going to conduct a benchmark of the new parallel approach with the imperative approach which is suitable for mono core CPUs.

Prerequisites: Good knowledge of …