4

In asp.net with c# how can i get list of all running threads.
I put a button in asp.net form & when i click on it a thread will be run 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 in another button click how can i gather all of those running thread names?

Alex
  • 3,077
  • 6
  • 19
  • 37
SilverLight
  • 18,804
  • 60
  • 181
  • 287

0 Answers0