Search

Fast thread

Universal Java Thread Dump Analyzer

Tag

Java

ThreadLocal – easy introduction

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 →

Java synchronized block

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 →

Can threads execute same synchronized method on different objects?

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 →

Diagnose CPU spike  – non-intrusive approach!

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 →

Can threads execute different synchronized methods on same object?

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 →

Pitfalls to avoid when switching to Virtual threads

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 →

Is Java Virtual Threads lightweight?

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 →

Advantages of Java Virtual Threads

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 →

APIs to create Java Virtual Thread

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 →

Powered by WordPress.com.

Up ↑