A Guide to the Java ExecutorService

2021 VietMX 0

1. Overview ExecutorService is a JDK API that simplifies running tasks in asynchronous mode. Generally speaking, ExecutorService automatically provides a pool of threads and an API for assigning […]

ThreadPoolTaskExecutor corePoolSize vs. maxPoolSize

2021 VietMX 0

1. Overview The Spring ThreadPoolTaskExecutor is a JavaBean that provides an abstraction around a java.util.concurrent.ThreadPoolExecutor instance and exposes it as a Spring org.springframework.core.task.TaskExecutor. Further, it is highly configurable through the […]

The Thread.join() Method in Java

2021 VietMX 0

1. Overview In this tutorial, we’ll discuss the different join() methods in the Thread class. We’ll go into the details of these methods and some example code. Like the wait() and notify() methods, join() is […]

Runnable vs. Callable in Java

2021 VietMX 0

1. Overview Since the early days of Java, multithreading has been a major aspect of the language. Runnable is the core interface provided for representing multi-threaded tasks […]

How to Kill a Java Thread

2021 VietMX 0

1. Introduction In this brief article, we’ll cover stopping a Thread in Java – which is not that simple since the Thread.stop() method is deprecated. As explained in this update from […]

Overview of the java.util.concurrent

2021 VietMX 0

1. Overview The java.util.concurrent package provides tools for creating concurrent applications. In this article, we will do an overview of the whole package. 2. Main Components The java.util.concurrent contains […]