[concurrency-interest] javadoc upgrade for threadpoolexecutor.shutdown/shutdownnow

Peter Veentjer alarmnummer at gmail.com
Wed Jul 19 10:50:18 EDT 2006

I had a nice discussion with a colleague of mine about the
ThreadPoolExecutor and the shutdown/shutdownNow methods.

It wasn't clear that the shutdown method doesn't block but only
signals that the ThreadPoolExecutor  is going to shut down.

The shutdownNow method does block (untill all running tasks have
processed) and this wasn't very intuitive also.

So can the documentation be upgrades so they explain the blocking
behaviour of both methods?

More information about the Concurrency-interest mailing list