jQuery in Action, 3rd edition
The moose likes Threads and Synchronization and the fly likes ThreadGroup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "ThreadGroup" Watch "ThreadGroup" New topic


David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
What is the purpose for using ThreadGroup?

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Quote from Joshua Bloch:
Thread groups are best viewed as an unsuccessful experiment, and you may simply ignore their existence."

However, I'm sure that when implementing java.util.concurrent.Executors method defaultThreadFactory(). The factory creates all new threads by an Executor in the same ThreadGroup, so there seems to be different signals coming from Sun.

[ October 19, 2004: Message edited by: Nigel Browne ]
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
David I have used ThreadGroup to start my GUI application inside it. This allowed me handle all uncaught exceptions and leave the application in a stable way.


blog - InfoQ.com
Have you checked out Aspose?
subject: ThreadGroup
It's not a secret anymore!