How to find the threads running in background

  • Thread starter Thread starter Senthil
  • Start date Start date
S

Senthil

Hi..
Can anyone tell how to find the threads(name or ID) running in the
background using C#. I want to find those threads and to terminate if
needed.

Thanks,
Palani.
 
Hi,

If those are threads created elsewhere, are you sure you want to terminate
them?
Otherwise, keep references to threads you create in your application and
terminate those in any way you see fit.

Please feel free to follow up with a more detailed explanation of your
problem, because I have a feeling you might need more advice on this, but I
cannot provide one without knowing the specifics.
 
Hi,

Do they include the thread from the pool ? The doc is not clear in that.

OP: if you want to shutdown the process you do not need to terminate the
backgrounds thread.


cheers,
 
Back
Top