【Java并发】线程池与队列

//TODO
线程池

public ThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue workQueue,
RejectedExecutionHandler handler)

Executors.newFixedThreadPool(int nThreads)
Executors.newCachedThreadPool()
Executors.newSingleThreadScheduledExecutor()
Executors.newScheduledThreadPool(int corePoolSize)

队列
BlockingQueue
ArrayBlockingQueue
LinkedBlockingQueue
...
广义上的内置条件队列:Condition

你可能感兴趣的:(【Java并发】线程池与队列)