Multi-process management method, storage medium, electronic device and system

A management method and multi-process technology, which are applied in the fields of multi-process management methods, electronic equipment and systems, and storage media, and can solve problems such as the lack of a good management solution for auxiliary processes, application program stuck, and data errors.

Active Publication Date: 2018-12-21
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In actual operation, it is not guaranteed that each auxiliary process can run stably. Because there are too many auxiliary processes running at the same time, some auxiliary processes may generate data errors halfway through the task execution, causing the application to crash. The executed tasks may cause deadlock and cause the application to freeze. In the prior art, the main process does not have a good management scheme for the auxiliary process.

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
  • Multi-process management method, storage medium, electronic device and system
  • Multi-process management method, storage medium, electronic device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

[0045] see figure 1 As shown, the embodiment of the present invention provides a multi-process management method, which is used for the main process of the application program running in the Windows system to manage the auxiliary process (sub-process)....

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

A method for managing multiple processes is provided. The invention relates to a storage medium, an electronic device and a system, and relates to the field of control technology. The method comprisesthe following steps of: calling CreateNamedPipe function in Windows system API function to create a plurality of named pipes for communication between a main process and an auxiliary process, and each named pipe corresponds to an auxiliary process; The main process calls the function WriteFile to write the task data in the named pipe and sends the written task data to the corresponding auxiliaryprocess. The worker process calls the function ReadFile to read the task data from the named pipe; The auxiliary process executes the corresponding task based on the task data, and after the task is executed, the auxiliary process calls the function AtExit to complete its own exit. A main proces in that invention controls the task execution state of the auxiliary proces through a named pipeline, so as to ensure the normal operation of an application program under the operation condition of multiple auxiliary processes.

Description

technical field [0001] The invention relates to the technical field of control, in particular to a multi-process management method, a storage medium, electronic equipment and a system. Background technique [0002] At present, for some service-type applications, especially for applications with independent tasks, a multi-process architecture design is usually adopted. Using a multi-process design can make the instability of a process not cause the entire program to go wrong, that is, For a service-type application, when a process exits due to a crash, other processes can continue to serve. Multi-process has stronger robustness, so as to ensure the normal operation of the application. [0003] In the actual running process, for example, a main process can be created to receive tasks, and then multiple auxiliary processes (subprocesses) can be created through the main process to complete different tasks, that is, for each received task, an auxiliary process To complete, that ...

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): G06F9/50G06F9/54
CPCG06F9/5011G06F9/546
Inventor 周志刚
Owner WUHAN DOUYU NETWORK 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