• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ThreadGroup

 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the purpose for using ThreadGroup?
 
Nigel Browne
Ranch Hand
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic