Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Pending Publication Date: 2021-09-28
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In order to ensure the smooth operation of the operating system, the Android operating system will kill all the processes of the background application at a certain time when the application exits to the background, which may affect the functions of some applications.
For example, security applications, management applications, etc. that need to be kept alive cannot continue to provide services to users
[0003] The existing technology provides some methods to keep the process alive, but they are often implemented for a specific version of the operating system environment, which has poor versatility and poor reliability of keep alive

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
  • Method and device for realizing continuous existence of process, electronic equipment and medium
  • Method and device for realizing continuous existence of process, electronic equipment and medium
  • Method and device for realizing continuous existence of process, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

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...

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 embodiment of the invention discloses a method and device for realizing continuous existence of a process, electronic equipment and a medium, and relates to the technical field of computer process processing based on an operating system. According to the specific implementation scheme, the method includes creating two child processes through two parent processes of an application program to form two process groups; establishing a cross monitoring relationship of the processes among the process groups, wherein the cross monitoring relationship is that one process in one process group monitors one process in the other process group; and when the process of one process group monitors that the process of the other process group is searched and killed, restarting the searched and killed process. The universality and reliability of process keep-alive can be improved.

Description

technical field [0001] The embodiment of the present application relates to computer technology, and in particular to an operating system-based computer process processing technology. Background technique [0002] In order to ensure the smooth operation of the operating system, the Android operating system will kill all the background application processes at a certain time when the application program exits to the background operation, which may affect the functions of some application programs. For example, security applications, management applications, etc. that need to be kept alive cannot continue to provide services to users. [0003] The prior art provides some methods for keeping the process alive, but they are often implemented for a specific version of the operating system environment, which has poor versatility and poor reliability of keeping the process alive. Contents of the invention [0004] Embodiments of the present application provide a method, device, ...

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/48
CPCG06F9/485
Inventor 赵尧君张圯祺
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products