1. ThreadPoolExecutor中有一个BlockingQueue类型的成员变量workQueue,当工作线程不够用时,任务会添加到该队列中,只有当workQueue满了之后,添加任务的线程才会阻塞。
2. 看newFixedThreadPool(int nThreads)的实现,这个workQueue使用的是new LinkedBlockingQueue() ,生成的LinkedBlockingQueue实例的容量(capacity)是很大的(21亿多),基本不会满。
3. 综合而言,不会等待。