Author Topic:   Thread....suspend..isAlive()
Anand M S
greenhorn
posted March 15, 2000 01:28 AM             
Hi,

When we invoke isAlive() on suspended thread, what will it return, true or false? I have gone through the APIdocumentation but I didn't get it

please help me

Thanks,
Anand

[This message has been edited by Anand M S (edited March 15, 2000).]

Lucy C
ranch hand
posted March 15, 2000 03:58 AM             
I imagine it would return true (as the thread isn't actually dead). However, you shouldn't have to deal with suspended threads for the SCJP in the first place, as suspend() and resume() are deprecated in the Java 2 platform...

maha anna
bartender
posted March 15, 2000 07:34 AM             
isAlive() will return true at all states except when the thread is in new state or dead state
regds
maha anna

|