Software
-
We will first go over some basic consideration to decide whether and when we should use threads. Then we will talk about thread pools and the thread pool implementation provided by Java. Java provides some convenient methods for building ExecutorService backed by thread pool. Specifically, we will talk about Executors.newFixedThreadPool() and the pitfall related to…