根据当前进程名字获取该进程下线程的数目
Process[] myP = Process.GetProcessesByName("1");
Process p = myP[0];
ProcessThreadCollection c = p.Threads;
int cou = c.Count;
根据当前进程名字获取该进程下线程的数目
Process[] myP = Process.GetProcessesByName("1");
Process p = myP[0];
ProcessThreadCollection c = p.Threads;
int cou = c.Count;