Method and device for realizing continuous existence of process, electronic equipment and medium
A process and process group technology, applied in the computer field, can solve the problems of inability to continuously provide users, provide services, poor versatility, etc., and achieve the effect of reducing the time of service data transmission and improving efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0062] figure 1 It is a schematic flow chart of a method for implementing process persistence according to the first embodiment of the present application. This embodiment is applicable to the situation of ensuring the persistence of an application program, which is also called process keeping alive. The method can be executed by a device for implementing process persistence, which can be implemented in software and / or hardware, and can be integrated into the server. Such as figure 1 As shown, the method for implementing process persistence provided in this embodiment may include:
[0063] S110. Create two child processes respectively through the two parent processes of the application program, so as to form two process groups.
[0064] Wherein, the application program refers to an application program that needs to exist continuously, and if this type of application program is detected and killed, it will affect the normal use of the user. Especially when some application p...
no. 2 example
[0075] Figure 2A It is a flow chart of a method for implementing process persistence in Embodiment 2 of the present application. The embodiment of the present application is optimized on the basis of the technical solutions of the foregoing embodiments.
[0076] Optionally, refine the operation "the cross-monitoring relationship is that a process in one process group monitors a process in another process group" to "the cross-monitoring relationship is specifically, the parent process of one process group and the parent process of another process group Sub-processes perform cross-state monitoring on each other" to avoid the phenomenon that process groups are killed and restarted at the same time.
[0077] Optionally, refine the operation "when a process of a process group monitors that a process of another process group is detected and killed, restart the killed process" to "when a process of a process group monitors When the process is killed, restart the process by accessin...
no. 3 example
[0095] image 3 It is a flow chart of a method for implementing process persistence in Embodiment 3 of the present application. The embodiment of the present application is optimized on the basis of the technical solutions of the foregoing embodiments.
[0096] Optionally, refine the operation "Create two child processes through the two parent processes of the application to form two process groups" into "Create two child processes through the two parent processes of the application to form two process groups" Two process groups; among them, the parent process is the application process, and the child process is the underlying process of the operating system", which ensures that the same process group will not be killed at the same time, and has the effect of mutual monitoring between process groups.
[0097] Optionally, refine the operation "when a process of one process group monitors that a process of another process group is detected and killed, restart the process that is...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com