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 [])