J
James
i uses the above to send some thread to many machines and perform a ping and
return results to my event log
Is there a way to determine when the *last* thread returns, and i can
terminate my console program automatically. ?
If i terminate my program *early*, the thread that return results will not
be written to my event log. Thus i cannot terminate my console program early
and i have to manually write a loop and expects user to terminate it. My
loop was :
Console.WriteLine("Press 1 to quit the program or wait for 5 minutes before
typing 1.")
While Console.Read() <> 1
'waiting for my threads to return
End While
return results to my event log
Is there a way to determine when the *last* thread returns, and i can
terminate my console program automatically. ?
If i terminate my program *early*, the thread that return results will not
be written to my event log. Thus i cannot terminate my console program early
and i have to manually write a loop and expects user to terminate it. My
loop was :
Console.WriteLine("Press 1 to quit the program or wait for 5 minutes before
typing 1.")
While Console.Read() <> 1
'waiting for my threads to return
End While