File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes ExecutorService shutdown - blocking? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "ExecutorService shutdown - blocking?" Watch "ExecutorService shutdown - blocking?" New topic

ExecutorService shutdown - blocking?

bob breitling

Joined: Oct 07, 2009
Posts: 1
Does a call to an ExecutorService object's shutdown method block?


Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3028
This isn't clearly documented, but you can test easily:

You can also try other ways of creating an ExecutorService. It's possible that some implementations may behave differently.
It is sorta covered in the JavaRanch Style Guide.
subject: ExecutorService shutdown - blocking?
jQuery in Action, 3rd edition