471,350 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

A simple question on Threads

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
Jun 27 '08 #1
1 951
On May 8, 10:28 am, Dom <dolivas...@gmail.comwrote:
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
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by adeger | last post: by
8 posts views Thread by Mark | last post: by
13 posts views Thread by William Stacey | last post: by
7 posts views Thread by Meya-awe | last post: by
5 posts views Thread by sarge | last post: by
3 posts views Thread by Ryan Pedersen | last post: by
18 posts views Thread by Bob Cummings | last post: by
176 posts views Thread by nw | last post: by
17 posts views Thread by Chris M. Thomasson | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.