A simple question on Threads

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

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
 
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
 
Back
Top