Phil:
Morning all,
I think ranch must specify a variable in the editor that changes with the time zones. As it is afternoon here in India
Anyways, coming to serious matters.
Phil:
In a multi-threaded application, is there any way of discovering/listing which threads (thread names) are still "alive", i.e. have not yet finished their run() method? I mean programmatically not using some monitor.
Well yes you can find out.
Thread.enumerate(Thread[] tarray) is the method that does it for you.
But that method will list only the threads that are a part of the current thread thread group.
If you need to find threads for your application, you can make sure that all your threads have a known thread group.
Phil:
I'm guessing that there's no way of finding out the status of the active threads since by the time you've got that the status will probably have changed anyway.
Well, i would say that there is a way but the information retrieved may be outdated by the time you read it.
[ September 10, 2008: Message edited by: Nitesh Kant ]