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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top