I have a bunch of threads that perform some of the longer operations in my program. I am using the form:
ThreadStart starter = new ThreadStart(func);
Thread t = new Thread(starter);
1. Should I change it all to delegates, does it matter?
2. When I close my main application window, threads still run to completion, I want to kill them all.
3. When a user logs off but the program is still running, I want to kill all open threads (or at least notify the UI to wait until they have completed).
What is the best way to structure this?