Unlock instant, AI-driven research and patent intelligence for your innovation.

A fault-tolerant method of c language monitoring software under embedded linux system

A monitoring software and embedded technology, which is applied in the field of C language monitoring software fault tolerance under the embedded Linux system, can solve the problems of unable to monitor software error handling, lack of trycatch exception handling mechanism, etc., to highlight substantive features and improve operational reliability , to avoid the effect of complexity

Active Publication Date: 2019-09-27
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to solve the problems in the above-mentioned prior art that lack the exception handling mechanism of the try catch type, and cannot perform error handling in the monitoring software, and provide a fault-tolerant method for the C language monitoring software under the embedded linux system

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
  • A fault-tolerant method of c language monitoring software under embedded linux system
  • A fault-tolerant method of c language monitoring software under embedded linux system
  • A fault-tolerant method of c language monitoring software under embedded linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Below in conjunction with accompanying drawing, the present invention is described in further detail:

[0029] A fault-tolerant method for monitoring software in C language under an embedded Linux system. Firstly, an explanation is given to the processing flow of general monitoring software. The monitoring software (main) is a program executed in an infinite loop according to certain timing rules. To ensure the persistent operation of the monitoring software, the monitoring core code (monitor) needs to be stable enough without error. However, as the complexity of the code increases, the probability of errors gradually increases, especially some occasional errors with low recurrence rates. These errors, such as floating-point division by 0, will cause the monitoring program to exit with an error. The code in the table below is the code framework of this embodiment. Take it as an example to describe the fault-tolerant method of the present invention.

[0030]

[00...

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 provides a C-language monitoring software fault tolerant method based on an embedded Linux system. Since the exception handling structure, similar to the try-catch in the C++ language, is implemented through the C language, faults are captured through the monitoring software at the first time and are handled to prevent program crash, and accordingly, the monitoring software has higher fault tolerance capacity. Besides, when the monitoring software is in segment fault, floating-point calculation fault or exiting fault, execution of the cyclic process of the monitoring program is guaranteed, and fault messages and fault positions can be recorded in fault handling process to facilitate analysis on faults. The invention further provides a system for implementing the operation. As the system is based on the C-language monitoring software fault tolerance strategy and method, the system realizes handling of error programs in the monitoring process, loss of performance is low, operational reliability of the system is improved effectively and hardware customization complexity is reduced.

Description

technical field [0001] The invention belongs to the technical field of server monitoring and management, and in particular relates to a fault-tolerant method for C language monitoring software under an embedded Linux system. Background technique [0002] At present, the embedded Linux system has been widely used in the field of server monitoring. These monitoring software monitor and manage the running status of the server all the time. rerun within the time. [0003] At present, most monitoring software is developed using C language. However, in the C language, there is no exception handling mechanism similar to the trycatch type in C++. Once some problems such as segment faults and floating point operation errors are encountered, the program will crash and exit. To ensure that the program continues to run, the current solution is to regularly check the monitoring software. Once the monitoring software is detected to be abnormally terminated, the monitoring software will ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/30
Inventor 刘波
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD