As John said, no one knows which thread his parent thread should know. This is important because if every child has a link to the thread that branched them, this would mean many unnecessary thread structures stored in memory. The structure of the parent stream could not be restored by the GC or reused if the child had a link to it.
, , , , Thread.
, , , " ". ThreadGroup s. , :
ThreadGroup threadGroup = new ThreadGroup("mythreadgroup");
Thread thread = new Thread(threadGroup, new Runnable() {...});
...
// then you can do such methods as
threadGroup.enumerate(...);
. , , .
Edit:
, , " " - RMI.
, . System.currentTimeMillis() RMI . , .
ThreadInfo threadInfo =
ManagementFactory.getThreadMXBean().getThreadCpuTime(thread.getId());
"" , getThreadUserTime(...). , thread-ids , , , , , RMI , .
, RMI , , , , RMI.
, long[] . , .