Method for monitoring software operation state

A technology for software running status and abnormal status, which is applied in software testing/debugging, instrumentation, error detection/correction, etc. It can solve problems such as unmonitoring, single exception handling means, and failure of watchdog technology monitoring function, etc., to achieve software running Smooth, de-interacting effects

CN1908906AInactive Publication Date: 2007-02-07南京创码科技有限责任公司
0 Cites 20 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2007-02-07
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The disclosed monitor method for software running comprises: creating register tack list, defining one mark to label whether there is operating on the list; monitoring the initiation, registering target task; repeated checking the register task list by the monitor task to decide whether there is abnormal register task; yes to enter the abnormal handling. This invention can monitor multiple running tasks and handles different abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to a method for monitoring the running state of software, in particular to a method for monitoring the running state of software in a multitasking environment. Background technique

[0002] In single-task software, watchdog technology is a relatively mature technology for monitoring the running status of software. In a system using watchdog technology, there is a hardware watchdog counter independent of the CPU (central processing unit), which starts counting after power-on, and resets the CPU when it overflows, which requires software to periodically clear it the watchdog counter. If the software does not clear the watchdog counter on time, it is considered that the software enters an abnormal state, and the watchdog counter overflows and resets the CPU, thereby resetting the software.

[0003] When the watchdog technology is used in the multitasking software, each task will periodically clear the watchdog counter in the system...

Examples

Embodiment Construction

[0038] In order to understand the present invention in depth, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0039] The registration task list is the core data structure of the present invention, and is a list for storing registration task information. Different data structures can also be used to implement the registration task list, such as an array or a linked list. The size of the registered tasks list is determined by the number of registered tasks.

[0040] According to the embodiment of the present invention, the registration task list is composed of multiple nodes, such as figure 1 As shown, each node saves the information of a registered task, and the information saved by the node includes the node use flag, the name of the registered task, the exception handling function pointer, the counter count, the counter threshold, the record of the number of times the counter is cleared in the det...