title: Is having a single threadpool better design than multiple threadpools
body: <p>What are the advantages and disadvantages of having more than one threadpool in Java? I have seen code where there are multiple threadpools for different "types"  of tasks, and I'm not sure whether its better design or just developers being lazy. One example is using a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ScheduledThreadPoolExecutor.html" rel="noreferrer">ScheduledThreadPoolExecutor</a> for tasks that are executed periodically or have a timeout, and use another ThreadPoolExecutor for everything else. </p>