In asp.net with C #, how can I get a list of all running threads.
I put a button on an asp.net form, and when I click on it, the thread starts like this:
Random rnd = new Random();
string thread_name = "trd_" + rnd.Next(99000, 10000000).ToString();
Thread thread = new Thread(() => Thread_Method(thread_name));
thread.Name = thread_name;
thread.Start();
Now, by clicking another button, can I collect all the names of the running threads?
source
share