Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Watchdog implementation method

An implementation method, watchdog technology, applied in the direction of instrumentation, error detection/correction, calculation, etc., can solve the problems of high CPU consumption and high CPU computing power consumption, and achieve the effect of reducing CPU consumption and improving independence

Pending Publication Date: 2019-07-09
深圳市创联时代科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The CPU consumption is high. When there are many monitored threads, maintaining and detecting a large number of counters needs to consume more CPU computing power.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Watchdog implementation method
  • Watchdog implementation method
  • Watchdog implementation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The following will clearly and completely describe the devices and calculation methods in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0027] The invention relates to a method for implementing a watchdog. A plurality of watchdog monitoring points are created in the main program, and the aftermath treatment plan of the watchdog program after the dog barks is specified when creating, and the hook called after the dog barks function.

[0028] In the watchdog system, the application can see many watchdog monitoring points, and all monitoring points are equal and have...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a watchdog implementation method, which comprises the following steps of: creating a plurality of watchdog monitoring points in an application program, and uniformly managingthe watchdog monitoring points by a watchdog component; during creation, specifying a good post-processing scheme of the watchdog monitoring points after a dog call and a hook function called after the dog call. The method has the beneficial effects that a plurality of post-processing schemes are provided when the program is abnormal, a large number of detection counters are not needed, and the CPU consumption is reduced.

Description

technical field [0001] The invention relates to the technical field of software monitoring, and more specifically, to a method for implementing a watchdog. Background technique [0002] In the prior art, the watchdog first creates a monitoring thread in the main program, and its priority is higher than other threads. The monitoring thread performs a clearing operation on the watchdog within a certain period of time when other monitored threads work normally, and the clearing operation is completed by calling the Watchdog driver. If a certain thread fails, the monitoring thread will not perform the dog clearing operation, which also achieves the purpose of automatically restarting the system when the thread fails. If the monitoring thread itself breaks down and cannot perform the dog clearing operation in time, the watchdog will automatically reset and restart. The specific method is that the main program first starts the monitoring thread, and then starts N monitored threa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/07
CPCG06F11/0757
Inventor 古小健罗侍田王建忠陈家明程招招
Owner 深圳市创联时代科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products