Task list

  • Thread starter Thread starter web1110
  • Start date Start date
W

web1110

Hi,

Just for fun, I'd like to write a program to monitor the list of all tasks
running on the system. How do I retrieve a list of tasks executing on the
system?

Thanx,
Bill
 
Got it.

procs=Process.GetProcesses();
Console.WriteLine("Process Count= {0}", procs.GetLength(0));
for(int si=0;si<procs.GetLength(0);si++)
{
Console.WriteLine("Process name: {0}", procs[si].ProcessName.ToString());
}
 
Back
Top