Everyone knows about what sorting is. There are so many computer algorithms that have emerged to support sorting. Some of the well-known algorithms are quick sort, heap sort, merge sort etc. All these sorting algorithms are working based on sequential... Continue Reading →
ConcurrentHashMap is used extensively in multi-threaded applications. The examples of multi-threaded applications are online gaming applications, chat applications, it adds the benefit of concurrency to the application. To make application more concurrent in nature, ConcurrentHashMap introduces a concept called ‘Parallelism’.... 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 discuss the behavior of static synchronized methods. Video: To see the visual walk-through of this post,... 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 titled ‘Synchronized method – Boy Friend Threads & Girl Friend Object‘, we explored that when a method is synchronized, only one thread is allowed to enter. In this post, let’s do a little bit of deep... Continue Reading →
In our earlier post about Synchronized method, we learnt that 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 has two synchronized... 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 highly... 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. Here is a quick introduction to Java Virtual Thread, if you are... Continue Reading →