MENU

Fun & Interesting

Java ExecutorService - Part 1

Jakob Jenkov 61,823 4 years ago
Video Not Working? Fix It Now

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 https://www.youtube.com/watch?v=MB_qCXBSgK0&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=13&t=13s Java ExecutorService Using Virtual Threads Internally: https://www.youtube.com/watch?v=N2sskKGnCqc&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=17 Java ExecutorService - Text: http://tutorials.jenkov.com/java-util-concurrent/executorservice.html Java Concurrency - Text / Video Playlist http://tutorials.jenkov.com/java-concurrency/index.html http://tutorials.jenkov.com/java-util-concurrent/index.html https://www.youtube.com/playlist?list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4

Comment