Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for controlling the life cycle of a process

A technology for controlling process and life cycle, applied in multi-program device, program startup/switching, etc., can solve the problems affecting the efficiency of the main process and the failure of sub-processes to exit normally, and achieve the effect of improving efficiency and saving startup time

Active Publication Date: 2018-12-11
TENCENT TECH (SHENZHEN) CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Although the above-mentioned existing method for controlling the life cycle of a process is simple, it also has obvious disadvantages
For example, since the parent process takes time to create a child process, starting the child process directly after the parent process starts will affect the efficiency of the main process
For another example, if the parent process terminates unexpectedly before the child process is notified to exit, the child process will not exit normally.

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
  • A method and device for controlling the life cycle of a process
  • A method and device for controlling the life cycle of a process
  • A method and device for controlling the life cycle of a process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] An embodiment of the present invention provides a method for controlling the life cycle of a process. The method includes: starting a parent process; when it is detected that the starting condition of the child process is met, the parent process starts to start the child process; when it is detected that the exit condition of the child process is met Or when receiving the exit message sent by the parent process, the child process exits. The embodiment of the present invention also provides a corresponding device for controlling the lifetime of a process. Each will be described in detail below.

[0023] The method for controlling the life cycle of a process in the embodiment of the present invention can be applied to terminal applications, such as QQ browser, etc., and its basic flow can be referred to figure 1 , mainly including steps S101 to S103:

[0024] S101, start a parent process.

[0025] The so-called parent process is a user interface (UI) process, and its m...

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 method and device for controlling the life cycle of processes to improve the host process efficiency and enable the processes to quit normally. The method comprises the steps that a father process is started; when it is detected that a son process starting condition is met, the father process begins to start a son process; when it is detected that a son process quitting condition is met or a message sent by the father process is received, the son process quits. By means of the method, the father process starting time is saved, the efficiency of the father process is improved, the son process can quit normally when the father process accidentally terminates, and the functions borne by the son process are not affected when the father process accidentally terminates.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and device for controlling the life cycle of a process. Background technique [0002] A process is a running activity of a program with certain independent functions on a certain data set, and is the basic unit of dynamic execution of the operating system. In a traditional operating system, a process is both the basic allocation unit and the basic execution unit. Each process has its own address space, including text region, data region and stack region. Among them, the text region stores the code executed by the processor, and the data region stores variables and processes during execution. The dynamically allocated memory is used, while the stack area stores the instructions and local variables of the active procedure call. [0003] As mentioned above, a process is a dynamic process of a program, and this dynamic is also reflected in the fact that the process has a l...

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 Patents(China)
IPC IPC(8): G06F9/48
Inventor 尚子峰马学敏
Owner TENCENT TECH (SHENZHEN) CO LTD