edvin
11/28/2016, 9:53 PMThreadFactory as the second parameter to newFixedThreadPool and call thread.t.setDaemon(true) on each thread after you create them, then it will shut down nicely even if there are threads in the pool when you shut down.