Method for monitoring computer operating system in starting process
暂无分享,去创建一个
The invention discloses a method for monitoring a computer operating system in the system starting process without increasing hardware cost or influencing system starting time. The method comprises the following steps of (1) after the system is powered on and started, opening real-tine interruption, and pre-loading an interruption module code of the system and a dog feeding scheme code in the system starting process as an emergency loading part into the system; (2) executing the dog feeding scheme code in the emergency loading part, and completing dog feeding by periodically triggering the real-tine interruption with an appointed timer by means of the opened real-time interruption; (3) appointing a counter in a dog feeding function to judge whether system start is overtime or not, and if the system start is overtime, not feeding dog and reloading by using a hardware watchdog rest system; (4) after the start is completed, relieving the appointed timer in a system task, and submitting a hardware watchdog to software of the system for arrangement. The method can solve the problem that the system start fails because the dog cannot be fed in the system starting process.