Search code examples
c#.netmultithreadingabort

What should I do with a thread when it's done ? leave it or abort it?


I create normal threads in asp.net application. After the thread is done what should I do ? leave it (it will get back to thread pool) or abort it.

Thread thread = new Thread(new ThreadStart(work));

Solution

  • Leave it. There is no sense in creating a pointless exception.