This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring forum!
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.
I agree. Here's the link:
subject: ExecutorService shutdown - blocking?
It's not a secret anymore!