This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "ExecutorService shutdown - blocking?" Watch "ExecutorService shutdown - blocking?" New topic
Author

ExecutorService shutdown - blocking?

bob breitling
Greenhorn

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

TIA,

Bob
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3013
    
  10
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ExecutorService shutdown - blocking?