• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

display child threads !

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have doubt regarding the display of the child threads. i have a master thread which creates the child threads. i would like to display the child threads and like to start or stop the particular child threads. Its very urgent can anyone help me
Regards
Magesh
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think there is a way to put parent child relationships between threads in java directly. How ever we can have parent child relationships between thread groups.
By default all threads created in a program belong to the thread group main. But we can create several thread groups. Associate threads to thread groups.And can make one thread group as parent of another.
We can get all threads in a thread group as :
threadGroup.enumerate(Thread [])
 
magesh karnam
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I got the solution and solved it. thanks for your reply. Anyway this was posted long back. Thanks everybody.

regards
Magesh
reply
    Bookmark Topic Watch Topic
  • New Topic