public interface Executor
execute
(as performed in ThreadedExecutor)
is new Thread(command).start();.
However, this interface allows implementations that instead
employ queueing or pooling, or perform additional
bookkeeping.
[ Introduction to this package. ]| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute(Runnable command)
Execute the given command.
|
void execute(Runnable command) throws InterruptedException
Copyright © 2024. All rights reserved.