Java ExecutorService - Part 2
Jakob Jenkov
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: https://www.youtube.com/watch?v=Nb85yJ1fPXM&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=12
Java ExecutorService tutorial - 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 ... https://www.youtube.com/watch?v=MB_qCXBSgK0
64655008 Bytes