A
archana
Hi all,
I don't have much of knowledge about threading.
I have on .net application where in main i am starting one secondary
thread.
like
public class yyy
{
public void abc()
{
for ( int i = 0; i<=3;i++)
{
System.Console.Write(i + " ");
Thread.Sleep(1);
}
}
}
in form i have code as below on one button
yyy a = new yyy();
Thread t = new Thread(new ThreadStart(a.abc));
t.Start();
Console.WriteLine("complete");
this.Close();
return;
So my question is when i am running one thread which is doing some
heavy processing and mymain application is closing on button click will
it close after secondary thread completes processing or it will close
immediately by keeping second thread running in system.
One more question is what is application.exitthread doing?
Please clear my question related to threading.
Thanks in advance.
I don't have much of knowledge about threading.
I have on .net application where in main i am starting one secondary
thread.
like
public class yyy
{
public void abc()
{
for ( int i = 0; i<=3;i++)
{
System.Console.Write(i + " ");
Thread.Sleep(1);
}
}
}
in form i have code as below on one button
yyy a = new yyy();
Thread t = new Thread(new ThreadStart(a.abc));
t.Start();
Console.WriteLine("complete");
this.Close();
return;
So my question is when i am running one thread which is doing some
heavy processing and mymain application is closing on button click will
it close after secondary thread completes processing or it will close
immediately by keeping second thread running in system.
One more question is what is application.exitthread doing?
Please clear my question related to threading.
Thanks in advance.