线程池 threadpoolexecutor 学习

线程池状态   在ThreadPoolExecutor中定义了一个volatile变量,另外定义了几个static final变量表示线程池的各个状态: volatile int runState; static final int RUNNING = 0; static final int SHUTDOWN = 1; static final int STOP = 2; s
相关文章
相关标签/搜索