• Post Reply Bookmark Topic Watch Topic
  • New Topic

What are the threads will start, when you start the java program?  RSS feed

 
Amit Sharma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please anybody let me know what are the threads that will start, when you start a java program.
Pls give me a detailed insight into this.....
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Threads ans Synchonization forum. Please look for replies there.

Dave
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling Thread.currentThread().getThreadGroup() will let you access the other threads running in your group. From there, you can call getParent() to get at higher thread groups, thus iterating through all threads.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!