Chapter 6: Task Execution
Designing Task ingredients: Task execution policy, : Sequential , per-request thread or thread-pool (Bounded Queue in chap 5)
Hierarchy:
Interface : Executor (Not Thread)
public interface Executor {
void execute(Runnable command);
}
To Take care of graceful shutdown:
ExecutorService (Implements Executor)
complete the Concurrency
1.Future :timebudeting?
2.CompletionService?