2020
11-10
11-10
简单解析execute和submit有什么区别
1、execute方法位于java.util.concurrent.Executor中voidexecute(Runnablecommand);2、execute的具体实现publicvoidexecute(Runnablecommand){if(command==null)thrownewNullPointerException();/**Proceedin3steps:**1.IffewerthancorePoolSizethreadsarerunning,tryto*startanewthreadwiththegivencommandasitsfirst*task.ThecalltoaddWor...
继续阅读 >