多线程中execute 和submit区别
多线程中execute 和submit区别
一,execute方法
public interface Executor {
/**
* Executes the given command at some time in the future. The command
* may execute in a new thread, in a pooled thread, or in the calling
* thread, at the discretion of the {@code Execut
原创
2021-03-31 14:37:34 ·
394 阅读 ·
0 评论