Is there a way to find all the threads that are currently active? Is
there something like a "Threads" class, similar to the "Controls"
class, so that I can do something like:

foreach (Thread t in Threads) System.Diagnostics.Debug.Print (t.Name);

TIA,

Dom

Re: A simple question on Threads by parez

parez
Thu May 08 09:32:42 CDT 2008

On May 8, 10:28 am, Dom <dolivas...@gmail.com> wrote:
> Is there a way to find all the threads that are currently active? Is
> there something like a "Threads" class, similar to the "Controls"
> class, so that I can do something like:
>
> foreach (Thread t in Threads) System.Diagnostics.Debug.Print (t.Name);
>
> TIA,
>
> Dom

I think this mite do it..

Process p = Process.GetCurrentProcess();
p.Threads