There are scopes of variable in Java programming language: a. Local variable b. Member variable (aka instance variable) c. Static variable (aka class variable) In this post, let's discuss an interesting type of variable: ThreadLocal and how it differs from... 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 this post, we are going to discuss a non-intrusive approach (i.e., approach that doesn’t add any noticeable overhead to the application) to diagnose CPU spike. Thus, you can use this approach in your production environment to troubleshoot CPU spikes.... 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 →
Quick answer is 'yes' :-). Before you try to understand how lightweight Java virtual threads are, you might want to understand how Java virtual thread works? Here is a post that gives a quick introduction to Java virtual threads. We... Continue Reading →
Java virtual thread is a new type of threading model architecture introduced in JDK 19. Before you try to learn the benefits of Java Virtual Threads, you might want to understand how Java virtual thread works. Here is a post... Continue Reading →
Java virtual thread is a new feature available from JDK 19. It has potential to improve an 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 →