F
Fernando Rodríguez
Hi,
Assume I have Main function that looks like this:
static void Main(string[] args)
{
Action h1 = new Action(0);
Thread hilo1 = new Thread( new ThreadStart( h1.go ));
hilo1.Start();
}
What will happen if the thread I created hasn't finished when the main thread
exits Main()?
Is it advisable to call hilo1.Join() before exiting Main() ?
How's this thing handled usually? O
Thanks!
Assume I have Main function that looks like this:
static void Main(string[] args)
{
Action h1 = new Action(0);
Thread hilo1 = new Thread( new ThreadStart( h1.go ));
hilo1.Start();
}
What will happen if the thread I created hasn't finished when the main thread
exits Main()?
Is it advisable to call hilo1.Join() before exiting Main() ?
How's this thing handled usually? O

Thanks!