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.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop