Setting and feeding method for watchdog
A watchdog and dog-feeding signal technology, applied in the field of watchdog programs, can solve the problems of program running away, poor dog feeding effect by feeding the dog, and the main program interrupting the program running away, etc., to achieve good results.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0012] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0013] Such as figure 1 Shown, the setting of a kind of watchdog of the present invention and dog-feeding method, comprise a watchdog and k interrupt programs; The setting of described watchdog and dog-feeding method also comprise the following steps:
[0014] (1), place a watchdog in the main program, and place a data n1, n2, n3, ..., nk in each interrupt program at the same time, if there are 3 interrupt programs, then in each interrupt program Place a data, n1, n2, n3;
[0015] (2), take n1-1, n2-1, n3-1, ..., nk-1, if (n1-1)≠0, (n2-1)≠0, (n3-1)≠0, ... ..., (nk-1)≠0, then the main program sends a dog feeding signal once, and returns to step (1); otherwise, execute step (3); in this embodiment, it is judged that (n1-1)≠0, (n2 -1)≠0, (n3-1)≠0, it means that each interrupt program is running, and return to step (1) for re-execution; generall...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 