The Java ExecutorService interface, java.util.concurrent.ExecutorService, represents an asynchronous execution mechanism, essentially a thread pool, which is capable of executing tasks concurrently in the background. In this Java ExecutorService tutorial I explore how to create an ExecutorService instance, what methods it has, how to shut it down etc.
Chapters:
0:00 Java ExecutorService introduction
0:28 Java ExecutorService example
4:02 Java ExecutorService implementations
5:46 Java ThreadPoolExecutor constructor explained
8:16 Java ExecutorService methods
9:36 Java ExecutorService submit(Runnable) method
12:12 Java ExecutorService submit(Callable) method
14:23 How a Future object is connected to a task
15:23 Java ExecutorService invokeAny() method
18:10 Java ExecutorService invokeAll() method
Java ExecutorService - Part 2
• Java ExecutorService - Part 2
Java ExecutorService Using Virtual Threads Internally:
• Java ExecutorService Using Virtual Th...
Java ExecutorService - Text:
http://tutorials.jenkov.com/java-util...
Java Concurrency - Text / Video Playlist
http://tutorials.jenkov.com/java-conc...
http://tutorials.jenkov.com/java-util...
• Java Concurrency and Multithreading