Вы можете сделать это для перечисления запущенных процессов:
using System.Diagnostics;
.......
Process[] processlist = Process.GetProcesses();
foreach(Process theprocess in processlist){
Console.WriteLine(”Process: {0} ID: {1}”, theprocess.ProcessName, theprocess.Id);
}
Кроме того, вы можете использовать следующие свойства для получения интересной информации:
theprocess.StartTime (Shows the time the process started)
theprocess.TotalProcessorTime (Shows the amount of CPU time the process has taken)
theprocess.Threads ( gives access to the collection of threads in the process)