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));
Leave it. There is no sense in creating a pointless exception.
Recall that the IDisposable interface exists specifically for the scenario where some shared resource needs to be released. (It has been applied in other contexts as well, of course; but that is the situation it was originally meant for.)
Now consider that the managed Thread class does not implement IDisposable and you might guess (correctly) that it does not require any specific cleanup beyond normal handling by the GC.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With