检查项目的线程数量

 System.Diagnostics.Process[] NewProcess = System.Diagnostics.Process.GetProcessesByName("EOCNMS");

            if (NewProcess.Length > 0)
            {
                this.label1.Text = NewProcess[0].Threads.Count.ToString();
                this.label2.Text = NewProcess[0].WorkingSet.ToString();
                this.label5.Text = NewProcess[0].VirtualMemorySize.ToString();
            }

原文地址:https://www.cnblogs.com/lbg280/p/1708958.html