■ Process 클래스의 Responding 속성을 사용해 미응답 프로세스를 구하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
using System; using System.Diagnostics; Process[] processArray = Process.GetProcesses(); foreach(Process process in processArray) { Console.Write(process.ProcessName); if(process.Responding) { Console.WriteLine(" is reponding."); } else { Console.WriteLine(" IS NOT RESPONDING."); } } |