In our earlier post, we learnt that when a method is synchronized, only one thread will be allowed to enter the method. In this post, let's discuss the behavior of static synchronized methods. Video: To see the visual walk-through of this... Continue Reading →
In the earlier post we learnt about the Java synchronized method. In this post, let's learn about the synchronized block. Video: To see the visual walk-through of this post, click below: https://youtu.be/NIeEiK_eklE What is Synchronized Block? Synchronized block is used to... Continue Reading →
In our earlier post, we learnt that when a method is synchronized, only one thread will be allowed to enter the method. In this post, let's do a little bit of deep dive - let’s discuss whether threads can invoke... Continue Reading →
In our earlier post, we learnt that when a method is synchronized only one thread will be allowed to enter the method. In this post, let's do a little bit of deep dive - What would happen if an object... Continue Reading →
Java virtual thread is a new feature available from JDK 19. It has potential to improve the application’s availability, throughput and code quality on top of reducing memory consumption. If you are interested in learning more about Java virtual thread,... Continue Reading →
Coming soon!
c1, c2 compiler threads are created by Java virtual machine to optimize your application's performance. Occasionally these threads will tend to consume high CPU. In this post, let’s learn little more about c1, c2 compiler threads and how to address... Continue Reading →
java.lang.ClassLoader#loadClass() API is used by 3rd party libraries, JDBC Drivers, frameworks, application servers to load a java class into the memory. Application developers don’t use this API frequently. However when they use the APIs such as ‘java.lang.Class.forName()’ or ‘org.springframework.util.ClassUtils.forName()’, they... Continue Reading →
There are a good number of articles that articulate functional differences between HashMap, HashTable and ConcurrentHashMap. This post compares the performance behavior of these data structures through practical examples. If you don't have patience to read the entire post, here... Continue Reading →