A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Threads and Synchronization
How should one deal with InterruptedException ?. Any best practices ?
Joined: Mar 06, 2008
Sep 09, 2008 12:08:00
I've been looking at few articles on line on how to deal with InterrruptedException, do you folks suggest any best practices ?.
Joined: Feb 25, 2007
Sep 09, 2008 23:37:00
As suggested in
Java concurrency in practice
Never eat the Interrupted exception.
Either propagate it to your caller(re-throw or don't catch) or set the Interrupted status back in the thread using
The above is on the assumption that someone in the calling stack knows how to deal with it. That someone typically will be your thread pool.
, a better way to API!
I agree. Here's the link:
subject: How should one deal with InterruptedException ?. Any best practices ?
How about AJAX in Action?
Purpose of Wild Card in Reference
How to handle Security in a Webapp with a JDBCRealm
Spring Best Practices
Is There any Emphasis on Continuous Inspection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013