Suppose that i have a service which create a thread like the following:
Thread t = new Thread(new ThreadStart(delegate
{
MyOtherClass.DoSomething();
}
));
t.IsBackground = true;
t.SetApartmentState(ApartmentState.STA);
t.Start();
What happen to my thread if for any reason, the service shuts down (aside from physically shutting down the pc of course)