What is an ExecutorService and why use it?

Instead of new Thread per task, submit Runnable to fixed pool sized to CPU/IO profile. Handle Future results and exceptions. On shutdown hook call...

What is an ExecutorService and why use it? · Home · Support the platform