in reply to Applications running status in Windows Task Manager

Is the application you want to monitor one you wrote? If so, you could add a heartbeat. Have the monitored application perform an action periodically. For example, update the access time of a specific file every second. Your monitor would then check the access time of the file. If it's older than some threshold, somethings wrong.

That's basically how "Not Responding" is obtained. I think an application is deemed "Not Responding" when it was asked to exit, but didn't after a certain amount of time.

  • Comment on Re: Applications running status in Windows Task Manager

Replies are listed 'Best First'.
Re^2: Applications running status in Windows Task Manager
by SuicideJunkie (Vicar) on Nov 17, 2008 at 17:52 UTC
    An application will be marked as not responding by windows if it hasn't interacted with the system for a minute or two.
    I had a small app once, that had to spin through 10k records, and it would be marked as not responding until it finished the tight loop and reported the results.
    So I just added a call to repaint the window every N times through the loop, and windows was happy from then on.

    The forceful terminate is a separate, if related issue, from the regular not responding status.
      Hi Monks,

      Still, i could not find the solution to get the applications status list from the windows task manager in windows 2k professonal/XP. I do not want the processes list.

      Since this Windows Task Manager, Applications tab only contains the "Not Responding" staus.

      Please guide me to do further. I am Struggling this task

      Thanks in Advance
      Shanmugam A.
        This isn't a Perl question. It's apparently outside our area of expertise. You'll have better luck on more appropriate forums. Once you find out which API you can use, we can help you implement a solution in Perl.