Structuring Concurrent Applications

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?

Published by

Unknown's avatar

sevanand yadav

software engineer working as web developer having specialization in spring MVC with mysql,hibernate

Leave a comment