aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "ThreadGroup" Watch "ThreadGroup" New topic
Author

ThreadGroup

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.

./pope


blog - InfoQ.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ThreadGroup