Protection method in the time of aberrant management thread

A thread and exception technology, applied in the field of protection for managing thread exceptions, can solve problems such as system ignorance, affecting users' normal use, etc., and achieve the effect of avoiding work exceptions.

Inactive Publication Date: 2008-01-30
ZTE CORP
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Due to various reasons in the implementation, the power to manage threads is too high, and at the same time it is not supervised by any other process, which leads to the following defects in the current POSIX thread library: once the management thread is abnormal (ZOMBIE), all the work of the process may be will also abort, but the entire system is unaware
If this happens in the product, it will definitely affect the normal use of users

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
  • Protection method in the time of aberrant management thread

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0027] The technical solution of the method of the present invention generally includes two aspects: the detection of the abnormal state of the management thread and the recovery after the abnormality.

[0028] First, the detection of the abnormal (ZOMBIE) state of the management thread.

[0029] Referring to Fig. 1, the detection of the state can be carried out regularly, and the timing interval can be set as required. When querying process status, you can rely on the / proc file system that comes with the linux system. The digital directories under it are all running processes on the system. Each digital directory also includes some files, which represent all relevant information about this process. , where the stat file stores the status information of the process. Since all the information of the / proc file system will be regularly updated...

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 discloses a protection method for controlling the thread exception, comprising the steps as follows: the state information of the system process is obtained and keeping record of the process names controlling the thread exception; the correspondent process number of the process name is looked up according to the process name obtained; the thread corresponding to the process number is cleared away; and the process of the process name is created. The invention perfects the management of the POSIX multithread process; gets monitored the management thread that is not monitored originally and avoids the process exception that affects the client using caused by the management thread exception.

Description

technical field [0001] The invention relates to a thread maintenance method, in particular to a protection method for managing thread exceptions in a multi-thread process under the POSIX (Portable Operating System Interface, Portable Operating System Interface) thread library environment. Background technique [0002] The Linux system provides a very good way for administrators to change the kernel while the system is running without rebooting the kernel system. This is achieved through the / proc virtual filesystem. The / proc file virtual system is a mechanism that the kernel and kernel modules use to send information to processes (hence the name / proc). This pseudo file system can interact with internal kernel data structures and can be used to obtain information about running processes. There are numbered subdirectories in / proc, and each numbered directory corresponds to a process identifier PID. Thus, each running process / proc has a directory named after its PID. Th...

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 Applications(China)
IPC IPC(8): G06F11/36G06F9/46
Inventor 毛坚桓
Owner ZTE CORP
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