I am new to multi-threading. I have a Parallel.For
loop working great!
I do have a cancellation token.
Our DBA just happened to notice that I had a lot of active threads (I was testing and using the tool in a way it will not be used in production).
Anyway, I started looking for ways to clean up the threads after processing and cannot find anything. Do I need to do clean up other than cts.Cancel
?