Over this article, we are discussing how the CPU responds to each and every Java operation. How the CPU process different operations in an optimized way. In this article, you will get a good clarity about the terms such as CPU, CPU cache, L1, L2 and L3 caches and how it helps to perform CPU operations.
Before getting into this article, hope you know about Java benchmarking tool JMH. Over this article, we are doing some Java performance experiments using JMH. If you are not, then just go back to my article about JMH and get an understanding about it.
Imagine you have a very large array of integer and you want to do two operations over that array.
#coding #java #web-development #programming #interview #how cpu performs for java execution