Avoid ThreadGroup

ThreadGroup was originally intended for applet security, and should almost always be ignored. The services it provides are limited, and sometimes even flawed.

The only method which could be useful is ThreadGroup.uncaughtException. An override of this method will define customized behaviour for uncaught exceptions.

See Effective Java for a detailed discussion.

See Also :
Provide an uncaught exception handler
Would you use this technique?
Yes   No   Undecided   
© 2018 Hirondelle Systems | Source Code | Contact | License | RSS
Individual code snippets can be used under this BSD license - Last updated on September 21, 2013.
Over 2,000,000 unique IPs last year - Built with WEB4J.
- In Memoriam : Bill Dirani -