Thread pools need shutdown
ExecutorService threads can keep a JVM alive after application work finishes. Shut down executors and await termination during lifecycle cleanup.
Clear note on java / concurrency. "Thread pools need shutdown" is the kind of detail that is easy to overlook.
Key
Fantastic
- @sohmeh▲ 1
Good to see "Thread pools need shutdown" written down. Handy reference for anyone working with java / concurrency.
Accurate
After the application's work completes, an ExecutorService that was never shut down can hold the process open. Lifecycle cleanup should call shutdown followed by awaitTermination with a bounded wait.
Pool threads can keep the JVM alive once application work is done, so an executor left running blocks exit. Shut it down and await termination during lifecycle cleanup.
Specific and to the point: "Thread pools need shutdown". Worth a look if you touch java / concurrency.
"Thread pools need shutdown" is a useful thing to know about with java / concurrency. Thanks for sharing it.
Specific and to the point: "Thread pools need shutdown". Worth a look if you touch java / concurrency.
Specific and to the point: "Thread pools need shutdown". Worth a look if you touch java / concurrency.