A thread pool status
1.Running: running
2.ShuttingDown: Close in
3.Termitnaed: Closed
Two, Executor framework
1.executor: void execute (Runnable) start a thread task.
The caller provides an implementation of runnable interface thread pool thread through the implementation of this runnable.
2.executorService
void execute(Runnable)、Future submit(Callable)、Future submit(Runnable)。
3.Future: results after the end of the thread.
get (): Getting Results
4.Callable: Executable interface.