Positioning method of recording general progress anomal recede using sharing core-object

A shared memory, abnormal exit technology, applied in the positioning field of abnormal exit of ordinary processes, can solve the problems of no way to control what content is recorded, programmers have no control rights, record file overhead is large, etc., to achieve convenient location, reduce the amount of information, The effect of increasing the running speed

Inactive Publication Date: 2006-11-01
HUAWEI TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, there are two commonly used methods for locating problems: one is to analyze the locating problem by analyzing the core file after the common process exits, the disadvantage of this method is that the analysis requires considerable professional knowledge, and because the core file is automatically generated by the operating system , the programmer has no cont...

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
  • Positioning method of recording general progress anomal recede using sharing core-object
  • Positioning method of recording general progress anomal recede using sharing core-object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] Such as figure 1 As shown, a method for locating abnormal exits of ordinary processes recorded by using shared memory objects includes the following steps:

[0023] 1. Set up and start the monitoring process, and the monitoring process waits for the normal process to register with it;

[0024] 2. Start each ordinary process and register with the monitoring process. After the registration is successful, each ordinary process is allocated a singleton (single piece) mode shared memory object, and each ordinary process initializes the shared memory with its corresponding shared memory object;

[0025] 3. The common process writes the shared memory object and records the latest running information; the shared memory object uses the ring buffer to overwrite the previously written information with the latest written information, and records the latest information of each common process. The process timing handshake method judges in real time whether there is an abnormal exit ...

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 positioning method for recording the abnormal exit of a common process by using a shared memory object. It uses shared memory objects in the form of ring buffers to directly record the latest information of each common process, and sets the monitoring process to perform regular handshakes with common processes to determine whether any common process exits, which facilitates the positioning of abnormal process exits. . In addition, because the shared memory object uses the ring buffer to store information, the amount of stored information is greatly reduced, the memory overhead is reduced, and the running speed is improved.

Description

technical field [0001] The invention relates to a positioning method for common process abnormal exit, in particular to a method for recording the positioning information of common process abnormal exit by using a shared memory object. Background technique [0002] In product development, there are often situations where the system or ordinary process exits suddenly or terminates abnormally. Since the ordinary process has completely exited and no valid information is saved, the existing technology lacks an effective method for debugging and locating the problem. [0003] In the commonly used time-sharing operating system at present, common inter-process communication is realized by providing shared memory among common processes. A feature of shared memory is that when one of the ordinary processes exits, the relevant information will not be cleared. Therefore, we can use the method of writing shared memory to record the information recorded before the ordinary process exits,...

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): G06F12/00G06F9/445G06F11/30
Inventor 柯猛
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products