Canceling Threads
<p>I have an application that uses 20 threads. It's an email client that uses threads to mail from.</p>

<p>Currently the threads are created in the main thread. But I am wondering, what if I want to cancel the whole operation? The only way I can see of doing it is killing the main thread ... thus ending the program.</p>

<p>Would I have to create a thread that encapsulates the threads for mailing so I can kill the encapsulating thread?</p>

<p>I am currently using BackgroundWorker by the way and it's a WF application.</p>
