By yorkiiz Published 2021-08-05 Contents lock和synchronize的区别 1.lock支持公平与非公平锁,synchronize非公平锁 2. excute–addworker— int c = ctl.get() 判断线程池线程数量是不是小于corepoolsize addworker new 一个worker worker.start runworker run方法 111 01111