// onjava/DaemonThreadPoolExecutor.java // ©2016 MindView LLC: see Copyright.txt package onjava; import java.util.concurrent.*; public class DaemonThreadPoolExecutor extends ThreadPoolExecutor { public DaemonThreadPoolExecutor() { super(0, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new SynchronousQueue<>(), new DaemonThreadFactory()); } }