The Executor abstraction, ThreadPoolExecutor's five constructor parameters and their interaction, why corePoolSize fills before maxPoolSize, the four rejection policies, what Executors.newFixedThreadPool() hides (unbounded queue), Callable/Future, and the correct shutdown sequence for production pools.
// Lessons
- 01soon
The Executor Abstraction — Decoupling Task Submission from Execution
- 02soon
ThreadPoolExecutor — corePoolSize, maximumPoolSize and keepAliveTime
- 03soon
The Queue — SynchronousQueue vs LinkedBlockingQueue vs ArrayBlockingQueue
- 04soon
The Thread Creation Policy — When Are New Threads Created?
- 05soon
RejectedExecutionHandler — All Four Policies Explained
- 06soon
Executors Factory Methods — What's Hidden Behind the Convenience
- 07soon
Callable and Future — Submitting Tasks That Return Results
- 08soon
Shutting Down Safely — shutdown(), shutdownNow() and awaitTermination()