在asp.net中如何获取所有正在运行的线程的列表(托管)

时间:2017-04-09 18:30:31

标签: c# .net multithreading visual-studio-2015

在带有c#的asp.net中,我如何获得所有正在运行的线程的列表 我在asp.net表格中放了一个按钮&当我点击它时,一个线程将像这样运行:

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();

现在在另一个按钮中单击如何收集所有正在运行的线程名称?

0 个答案:

没有答案
相关问题