Hi All,
I created an Array.
Thread[] ThreadArray = New Thread[5];
for(int i; i <5; i++)
{
ThreaArray = new TryThread(TName, "Work ", 1000L);
ThreadArray.start();
}
now, I want the Main Thread to Check whether the Child Thread is alive or not, if it die. then Stop check it. That mean I want to remove that thread element out of the array.
How can I do that?
for(int i; i < ThreadArray.length; i++)
{
if (ThreadArray.IsAlive() == false)
{ Remove Element from array; }
}
Thanks....
Mike