Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. hanged process in windows xp

hanged process in windows xp

Scheduled Pinned Locked Moved System Admin
designquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eusto
    wrote on last edited by
    #1

    Is there a way of knowing (through an application's code)if a process is still running or it hanged? I'm trying to design a watchdog that has to monitor some processes. Except for killing/starting them, i have no other access to these processes. Thanks

    H B 2 Replies Last reply
    0
    • E eusto

      Is there a way of knowing (through an application's code)if a process is still running or it hanged? I'm trying to design a watchdog that has to monitor some processes. Except for killing/starting them, i have no other access to these processes. Thanks

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Can you see them on the Task Manager and did you test ProcessMonitor?

      E 1 Reply Last reply
      0
      • H Hamid Taebi

        Can you see them on the Task Manager and did you test ProcessMonitor?

        E Offline
        E Offline
        eusto
        wrote on last edited by
        #3

        I can, the problem is that those processes might hang and i need to know when this happens and restart them from a watchdog.

        1 Reply Last reply
        0
        • E eusto

          Is there a way of knowing (through an application's code)if a process is still running or it hanged? I'm trying to design a watchdog that has to monitor some processes. Except for killing/starting them, i have no other access to these processes. Thanks

          B Offline
          B Offline
          bkelly13
          wrote on last edited by
          #4

          If you can write code for the critical process, have it send a message to your watchdog on a regular basis. If the watchdog misses two or three messages, it kills and restarts the process. If you do not have access to the code, you will have to look for something the process does on a regular basis and maybe key off that. What does it do that makes it critical? That may help you find something to monitor. Can you write code to check the program counter? Where is the PC when the process hangs. What about I/O count?

          Thanks for your time

          E 1 Reply Last reply
          0
          • B bkelly13

            If you can write code for the critical process, have it send a message to your watchdog on a regular basis. If the watchdog misses two or three messages, it kills and restarts the process. If you do not have access to the code, you will have to look for something the process does on a regular basis and maybe key off that. What does it do that makes it critical? That may help you find something to monitor. Can you write code to check the program counter? Where is the PC when the process hangs. What about I/O count?

            Thanks for your time

            E Offline
            E Offline
            eusto
            wrote on last edited by
            #5

            bkelly13 wrote:

            If you can write code for the critical process, have it send a message to your watchdog on a regular basis. If the watchdog misses two or three messages, it kills and restarts the process. If you do not have access to the code, you will have to look for something the process does on a regular basis and maybe key off that.

            Thank you. Actually this answers my question. I was wondering if there was some kind of an OS/kernel way of testing if a project is still active or not. I've done some reading and didn't find any reference to what i needed. The options you've posted above gave me the answer i was looking for. Thanks, Eugen

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups