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 part 2 of this Java ExecutorService tutorial I explore how to shut down an ExecutorService, how to cancel tasks, and how to figure out how many threads you need inside the ExecutorService.
Chapters:
0:00 Shut down ExecutorService
3:19 Cancel task via Future
9:05 Ideal number of threads in ExecutorService
Java ExecutorService - Part 1:
• Java ExecutorService - Part 1
Java ExecutorService Using Virtual Threads Internally:
• Java ExecutorService Using Virtual Th...
Java ExecutorService tutorial - 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