CN104714839A - Method and device for controlling life cycle of processes - Google Patents
Method and device for controlling life cycle of processes Download PDFInfo
- Publication number
- CN104714839A CN104714839A CN201310687222.0A CN201310687222A CN104714839A CN 104714839 A CN104714839 A CN 104714839A CN 201310687222 A CN201310687222 A CN 201310687222A CN 104714839 A CN104714839 A CN 104714839A
- Authority
- CN
- China
- Prior art keywords
- subprocess
- parent process
- detecting
- message
- exits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
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
The present invention relates to computer software fields, be specifically related to a kind of method and apparatus controlling the process lifetime.
Background technology
Process is the once operation activity of program about certain data acquisition with certain standalone feature, is the elementary cell of operating system Dynamic Execution.In traditional operating system, process is basic allocation units, is also basic performance element.Each process has its address space, comprise text filed (text region), data area (data region) and storehouse (stack region), wherein, the code that text filed storage of processor performs, the internal memory of the dynamic assignment used the term of execution of data area storage of variables and process, and stack region stores instruction and local variable that active procedure calls.
As previously mentioned, process is the dynamic process of program, and this process that is dynamically also embodied in has the lifetime.Management of process is exactly the management to the process lifetime in essence, and Process flowchart is function the most basic in management of process, it comprises establishment new process, stops a completed process or go termination process making it run down because there is certain event, also can be responsible for the operating State Transferring of process.
A kind of existing method controlling the process lifetime is: after parent process starts, promoter process; Before parent process exits, notice subprocess exits.
The method of above-mentioned existing control process lifetime is no doubt simple, but it also exists obvious shortcoming.Such as, need the time because parent process creates subprocess, therefore, after parent process starts, directly promoter process can affect host process efficiency.For another example, if before notice subprocess exits, parent process surprisingly stops, then subprocess will be caused normally not exit.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus controlling the process lifetime, to improve host process efficiency and to make process normally to exit.
The embodiment of the present invention provides a kind of method controlling the process lifetime, and described method comprises:
Start parent process;
When detecting that subprocess entry condition meets, described parent process starts promoter process;
When detecting that subprocess exit criteria meets or receives the exit message of described parent process transmission, described subprocess exits.
Another embodiment of the present invention provides a kind of device controlling the process lifetime, and described device comprises:
Parent process starts module, for starting parent process;
Subprocess starts module, and for when detecting that subprocess entry condition meets, described parent process starts promoter process;
Subprocess exits module, and for when detecting that subprocess exit criteria meets or receives the exit message of described parent process transmission, described subprocess exits.
From the invention described above embodiment, on the one hand, startup due to subprocess is not start when parent process starts, but just start when parent process detects that subprocess entry condition meets to start, the mode of this process of promoter conditionally saves the time of parent process startup, improve the efficiency of parent process, on the other hand, because exiting of subprocess is just carried out when detecting that subprocess exit criteria meets or parent process have sent exit message, when this mode exiting subprocess conditionally has both made parent process surprisingly stop, subprocess also can normally exit, the function that this subprocess carries is not affected when making again subprocess surprisingly stop yet.
Accompanying drawing explanation
Fig. 1 is the basic procedure schematic diagram of the method for the control process lifetime that the embodiment of the present invention provides;
Fig. 2 is the device logical organization schematic diagram of the control process lifetime that the embodiment of the present invention provides;
Fig. 3 is the device logical organization schematic diagram of the control process lifetime that another embodiment of the present invention provides;
Fig. 4 is the device logical organization schematic diagram of the control process lifetime that another embodiment of the present invention provides;
Fig. 5 is the device logical organization schematic diagram of the control process lifetime that another embodiment of the present invention provides;
Fig. 6 is the device logical organization schematic diagram of the control process lifetime that another embodiment of the present invention provides.
Embodiment
The embodiment of the present invention provides a kind of method controlling the process lifetime, and described method comprises: start parent process; When detecting that subprocess entry condition meets, described parent process starts promoter process; When detecting that subprocess exit criteria meets or receives the exit message of described parent process transmission, described subprocess exits.The embodiment of the present invention also provides corresponding a kind of device controlling the process lifetime.Below be described in detail respectively.
The method of the control process lifetime of the embodiment of the present invention can be applicable to end application, such as QQ browser etc., and its basic procedure with reference to figure 1, can mainly comprise step S101 to step S103:
S101, starts parent process.
So-called parent process is user interface (User Interface, UI) process, and major function is the operation of responsible user window.In embodiments of the present invention, the startup of parent process is to create operation kernel objects for mark.Such as, parent process can create name upon actuation and is called the operation kernel objects of JOBOBJECT_MAINPROCESS namely::: CreateJobObject(NULL, L " JOBOBJECT_MAINPROCESS ").
S102, when detecting that subprocess entry condition meets, parent process starts promoter process.
So-called subprocess is data processing process, and its major function comprises database purchase, data upload is downloaded and data statistics reports.From directly promoter process is different after parent process in prior art starts, in the embodiment of the present invention, be when detecting that subprocess entry condition meets, parent process starts promoter process.Such as, when parent process has the operation needing subprocess to complete, just promoter process.As one embodiment of the invention, when detecting that subprocess entry condition meets, parent process starts promoter process can comprise following S1021 and S1022:
Whether S1021, detect subprocess message window and exist.
As previously mentioned, when parent process has the operation needing subprocess to complete, just promoter process.Particularly, first can search and whether there is class and be called L " PROCESS_COMMWND " message window and subprocess message window, be implemented as follows shown in program language:
S1022, if subprocess message window does not exist, then starts promoter process.
If subprocess message window does not exist namely do not find subprocess message window, illustrate that subprocess does not start, then start promoter process by calling CreateProcess.If there is subprocess message window namely find subprocess message window, illustrate that subprocess starts, then can send interprocess communication (Inter-Process Communication, IPC) message to subprocess.
S1021 and S1022 in above-described embodiment, is actually the mode of parent process promoter process as required, and the mode of this process of promoter as required objectively saves the time that parent process starts, and improves the efficiency of parent process.
As another embodiment of the present invention, when detecting that subprocess entry condition meets, parent process starts promoter process can comprise following S ' 1021 to S ' 1023:
S ' 1021, the shot timers when the time-count cycle of presetting arrives.
So-called timer, be a kernel objects be excited at special time or aturegularaintervals, the asynchronous routine in conjunction with timer calls, and call back function can be allowed to perform when any timer is excited.Parent process starts and after establishment operation kernel objects, parent process can arrange a timer, and this timer has default time-count cycle, the shot timers when the time-count cycle of presetting arrives, namely trigger once every some fixing interval times (such as, 10 seconds).
Whether S ' 1022, detect subprocess message window and exist.
In the present embodiment, detect subprocess message window and whether exist identical with previous embodiment S1021, do not repeat herein.
S ' 1023, if subprocess message window does not exist, then starts promoter process.
In the present embodiment, if subprocess message window does not exist, then it is identical with previous embodiment S1022 to start promoter process, does not repeat herein.
S ' 1021 to S ' 1023 in above-described embodiment, is actually the mode of parent process start by set date subprocess, and the mode of this start by set date subprocess objectively saves the time of parent process startup, improves the efficiency of parent process.
S103, when detecting that subprocess exit criteria meets or receives the exit message of parent process transmission, subprocess exits.
With in prior art before parent process exits, notice subprocess exit difference, in the embodiment of the present invention, subprocess exit be detect subprocess exit criteria meet or parent process have sent exit message time just carry out.As one embodiment of the invention, when detecting that subprocess exit criteria meets or receives the exit message of parent process transmission, subprocess exits and can comprise following S1031 to S1033:
S1031, the shot timers when the time-count cycle of presetting arrives.
Subprocess can arrange a timer at its message window, and this timer has default time-count cycle, the shot timers when the time-count cycle of presetting arrives, and namely triggers once every some fixing interval times (such as, 10 seconds).
S1032, whether the operation kernel objects detecting parent process establishment exists.
As previously mentioned, the operation kernel objects that parent process creates is JOBOBJECT_MAINPROCESS.The program language whether the operation kernel objects detecting parent process establishment exists is as follows:
HANDLE hObject=OpenJobObject(JOB_OBJECT_QUERY,FALSE,L”JOBOBJECT_MAINPROCESS”)。
If hObject is empty, then illustrate that parent process does not exist; If hObject is not empty, then illustrate that parent process exists.
S1033, if the operation kernel objects that parent process creates does not exist, then subprocess exits.
If the operation kernel objects that parent process creates does not exist i.e. parent process and do not exist, then subprocess needs to exit; If the operation kernel objects existence that parent process creates and parent process still exist, then subprocess is without the need to exiting.
S1031 to S1033 in above-described embodiment, be actually the mode exited again after subprocess detects the state of parent process by timing, when the withdrawing mode of this sub processes has both made parent process surprisingly stop, subprocess also can normally exit, and did not also affect the function that this subprocess carries when making again subprocess surprisingly stop.
As another embodiment of the present invention, when detecting that subprocess exit criteria meets or receives the exit message of parent process transmission, subprocess exits and can comprise following S ' 1031 to S ' 1032:
S ' 1031, receives the process exit message that parent process sends to subprocess message window.
In embodiments of the present invention, parent process can be WM_QUIT message to the process exit message that subprocess message window sends.
S ' 1032, according to described process exit message, main thread exit message circulates.
In subprocess, main thread first creates subprocess message window, and the class of window is called L " PROCESS_COMMWND " enter message loop again.So-called message loop, one section that contains in window application is referred to as the code of " message loop ", for retrieving these message and they be distributed in corresponding window function from message queue (i.e. application queue).In embodiments of the present invention, if after subprocess receives the process exit message (such as, WM_QUIT message) that parent process sends to subprocess message window, main thread exit message circulation wherein, thus subprocess is closed automatically.
S ' 1031 and S ' 1032 in above-described embodiment, be actually after parent process notice, the mode that subprocess exits again, when the withdrawing mode of this sub processes has both made parent process surprisingly stop, subprocess also can normally exit, and did not also affect the function that this subprocess carries when making again subprocess surprisingly stop.
From the method for the control process lifetime that the invention described above embodiment provides, on the one hand, startup due to subprocess is not start when parent process starts, but just start when parent process detects that subprocess entry condition meets to start, the mode of this process of promoter conditionally saves the time of parent process startup, improve the efficiency of parent process, on the other hand, because exiting of subprocess just starts when detecting that subprocess exit criteria meets or parent process have sent notification message, when this mode exiting subprocess conditionally has both made parent process surprisingly stop, subprocess also can normally exit, the function that this subprocess carries is not affected when making again subprocess surprisingly stop yet.
Be described the device of the association photo event of the embodiment of the present invention of the method for performing the above-mentioned control process lifetime below, its basic logical structure is with reference to figure 2.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The device of the control process lifetime of accompanying drawing 2 example can be functional unit in terminal or module.The device of the control process lifetime of accompanying drawing 2 example mainly comprises parent process startup module 201, subprocess startup module 202 and subprocess and exits module 203, and each module is described in detail as follows:
Parent process starts module 201, for starting parent process;
Subprocess starts module 202, and for when detecting that subprocess entry condition meets, described parent process starts promoter process;
Subprocess exits module 203, and for when detecting that subprocess exit criteria meets or receives the exit message of described parent process transmission, described subprocess exits.
It should be noted that, in the embodiment of the device of the control process lifetime of above accompanying drawing 2 example, the division of each functional module only illustrates, can be as required in practical application, the facility of the such as configuration requirement of corresponding hardware or the realization of software is considered, and above-mentioned functions distribution is completed by different functional modules, the inner structure by the device of described control process lifetime is divided into different functional modules, to complete all or part of function described above.And, in practical application, corresponding functional module in the present embodiment can be by corresponding hardware implementing, also can perform corresponding software by corresponding hardware to complete, such as, aforesaid parent process starts module, can be have the hardware performing aforementioned startup parent process, such as parent process starter also can be general processor or other hardware devices that can perform corresponding computer program thus complete aforementioned function; For another example aforesaid subprocess starts module, can be have perform aforementioned when detecting that subprocess entry condition meets, described parent process starts the hardware of promoter process function, such as subprocess starter also can be general processor or other hardware devices (each embodiment that this instructions provides all can apply foregoing description principle) that can perform corresponding computer program thus complete aforementioned function.
The subprocess of accompanying drawing 2 example starts module 202 can comprise the first detecting unit 301 and start unit 302, as shown in Figure 3 the device of control process lifetime that provides of another embodiment of the present invention, wherein:
Whether the first detecting unit 301, exist for detecting subprocess message window;
Start unit 302, if do not exist for described subprocess message window, then starts promoter process.
The subprocess of accompanying drawing 3 example starts module 202 can also comprise the first trigger element 401, as shown in Figure 4 the device of control process lifetime that provides of another embodiment of the present invention.Shot timers when first trigger element 401 is for arriving in the time-count cycle of presetting.
The subprocess of accompanying drawing 2 example exits module 203 and can comprise the second trigger element 501, second detecting unit 502 and first and exit unit 503, as shown in Figure 5 the device of control process lifetime that provides of another embodiment of the present invention, wherein:
Second trigger element 501, shot timers during for arriving in the time-count cycle of presetting;
Second detecting unit 502, whether the operation kernel objects created for detecting described parent process exists;
First exits unit 503, if do not exist for the operation kernel objects of described parent process establishment, then described subprocess exits.
The subprocess of accompanying drawing 2 example exits module 203 and can comprise receiving element 601 and second and exit unit 602, as shown in Figure 6 the device of control process lifetime that provides of another embodiment of the present invention, wherein:
Receiving element 601, for receiving the process exit message that described parent process sends to subprocess message window;
Second exits unit 602, and for according to described process exit message, main thread exit message circulates.
The embodiment of the present invention gives a kind of terminal, and this terminal may be used for the method implementing the control process lifetime provided in above-described embodiment.Specifically: terminal can include one or more computer-readable recording mediums storer, more than one or one process the parts such as the processor of core.It will be understood by those skilled in the art that the restriction of above-mentioned server architecture not structure paired terminal, more or less parts can be comprised, or combine some parts, or different parts are arranged.Wherein:
Storer can be used for storing software program and module, and processor is stored in software program and the module of storer by running, thus performs the application of various function and data processing.Storer mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data etc. created according to the use of terminal.In addition, storer can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer can also comprise Memory Controller, to provide processor to the access of storer.
Although not shown, terminal also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor state more than one or one routine package containing the instruction for carrying out following operation:
Start parent process;
When detecting that subprocess entry condition meets, described parent process starts promoter process;
When detecting that subprocess exit criteria meets or receives the message of described parent process transmission, described subprocess exits.
Suppose that above-mentioned is the first possible embodiment, then, in the embodiment that the second provided based on the embodiment that the first is possible is possible, in the storer of described terminal, also comprise the instruction for performing following operation:
Detect subprocess message window whether to exist;
If described subprocess message window does not exist, then start promoter process.
Suppose the above-mentioned embodiment possible for the second, then, in the third the possible embodiment provided based on the embodiment that the second is possible, in the storer of described terminal, also comprise to give an order:
The shot timers when the time-count cycle of presetting arrives.
Suppose that above-mentioned is the third possible embodiment, then, in the 4th kind of possible embodiment provided based on the embodiment that the first is possible, in the storer of described terminal, also comprise to give an order:
The shot timers when the time-count cycle of presetting arrives;
Whether the operation kernel objects detecting the establishment of described parent process exists;
If the operation kernel objects that described parent process creates does not exist, then described subprocess exits.
Suppose that above-mentioned is the 4th kind of possible embodiment, then, in the 5th kind of possible embodiment provided based on the embodiment that the first is possible, in the storer of described terminal, also comprise to give an order:
Receive the process exit message that described parent process sends to subprocess message window;
According to described process exit message, main thread exit message circulates.
As another aspect, yet another embodiment of the invention additionally provides a kind of computer-readable recording medium, and this computer-readable recording medium can be the computer-readable recording medium comprised in the storer in above-described embodiment; Also can be individualism, be unkitted the computer-readable recording medium allocated in terminal.Described computer-readable recording medium stores more than one or one program, and described more than one or one program is used for execution one by one or more than one processor and controls the method for process lifetime, and described method comprises:
Start parent process;
When detecting that subprocess entry condition meets, described parent process starts promoter process;
When detecting that subprocess exit criteria meets or receives the message of described parent process transmission, described subprocess exits.
Suppose that above-mentioned is the first possible embodiment, then, in the embodiment that the second provided based on the embodiment that the first is possible is possible, described when detecting that subprocess entry condition meets, described parent process starts promoter process, comprising:
Detect subprocess message window whether to exist;
If described subprocess message window does not exist, then start promoter process.
Suppose the above-mentioned embodiment possible for the second, in the third the possible embodiment then provided based on the embodiment that the second is possible, taking a step forward that whether described detection subprocess message window exists comprises: the shot timers when the time-count cycle of presetting arrives.
Suppose that above-mentioned is the third possible embodiment, then, in the 4th kind of possible embodiment provided based on the embodiment that the first is possible, described when detecting that subprocess exit criteria meets, described subprocess exits, and comprising:
The shot timers when the time-count cycle of presetting arrives;
Whether the operation kernel objects detecting the establishment of described parent process exists;
If the operation kernel objects that described parent process creates does not exist, then described subprocess exits.
Suppose that above-mentioned is the 4th kind of possible embodiment, then, in the 5th kind of possible embodiment provided based on the embodiment that the first is possible, described when detecting that subprocess exit criteria meets, described subprocess exits, and comprising:
Receive the process exit message that described parent process sends to subprocess message window;
According to described process exit message, main thread exit message circulates.
It should be noted that, the content such as information interaction, implementation between each module/unit of said apparatus, due to the inventive method embodiment based on same design, its technique effect brought is identical with the inventive method embodiment, particular content see describing in the inventive method embodiment, can repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
Above a kind of method and apparatus controlling the process lifetime that the embodiment of the present invention provides is described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. control the method for process lifetime, it is characterized in that, described method comprises:
Start parent process;
When detecting that subprocess entry condition meets, described parent process starts promoter process;
When detecting that subprocess exit criteria meets or receives the exit message of described parent process transmission, described subprocess exits.
2. method according to claim 1, is characterized in that, described when detecting that subprocess entry condition meets, described parent process starts promoter process, comprising:
Detect subprocess message window whether to exist;
If described subprocess message window does not exist, then start promoter process.
3. method according to claim 2, is characterized in that, taking a step forward that whether described detection subprocess message window exists comprises: the shot timers when the time-count cycle of presetting arrives.
4. method according to claim 1, is characterized in that, described when detecting that subprocess exit criteria meets, described subprocess exits, and comprising:
The shot timers when the time-count cycle of presetting arrives;
Whether the operation kernel objects detecting the establishment of described parent process exists;
If the operation kernel objects that described parent process creates does not exist, then described subprocess exits.
5. method according to claim 1, is characterized in that, described when receiving the exit message that described parent process sends, described subprocess exits, and comprising:
Receive the process exit message that described parent process sends to subprocess message window;
According to described process exit message, main thread exit message circulates.
6. control the device of process lifetime, it is characterized in that, described device comprises:
Parent process starts module, for starting parent process;
Subprocess starts module, and for when detecting that subprocess entry condition meets, described parent process starts promoter process;
Subprocess exits module, and for when detecting that subprocess exit criteria meets or receives the exit message of described parent process transmission, described subprocess exits.
7. device according to claim 6, is characterized in that, described subprocess starts module and comprises:
Whether the first detecting unit, exist for detecting subprocess message window;
Start unit, if do not exist for described subprocess message window, then starts promoter process.
8. device according to claim 7, is characterized in that, described subprocess starts module and also comprises:
First trigger element, shot timers during for arriving in the time-count cycle of presetting.
9. device according to claim 6, is characterized in that, described subprocess exits module and comprises:
Second trigger element, shot timers during for arriving in the time-count cycle of presetting;
Second detecting unit, whether the operation kernel objects created for detecting described parent process exists;
First exits unit, if do not exist for the operation kernel objects of described parent process establishment, then described subprocess exits.
10. device according to claim 6, is characterized in that, described subprocess exits module and comprises:
Receiving element, for receiving the process exit message that described parent process sends to subprocess message window;
Second exits unit, and for according to described process exit message, main thread exit message circulates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310687222.0A CN104714839B (en) | 2013-12-12 | 2013-12-12 | A kind of method and apparatus of control process lifetime |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310687222.0A CN104714839B (en) | 2013-12-12 | 2013-12-12 | A kind of method and apparatus of control process lifetime |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104714839A true CN104714839A (en) | 2015-06-17 |
CN104714839B CN104714839B (en) | 2018-12-11 |
Family
ID=53414208
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310687222.0A Active CN104714839B (en) | 2013-12-12 | 2013-12-12 | A kind of method and apparatus of control process lifetime |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714839B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105528257A (en) * | 2016-01-08 | 2016-04-27 | 腾讯科技(深圳)有限公司 | Single process data processing method and device |
CN106055397A (en) * | 2016-05-30 | 2016-10-26 | 新浪网技术(中国)有限公司 | Control method and apparatus of lock |
CN106453679A (en) * | 2016-09-30 | 2017-02-22 | 上海斐讯数据通信技术有限公司 | Method and system for obtaining domain name IP address without blocking |
CN108628670A (en) * | 2018-04-26 | 2018-10-09 | 携程旅游信息技术(上海)有限公司 | Exit the method and system of node applications |
CN109408158A (en) * | 2018-11-06 | 2019-03-01 | 恒生电子股份有限公司 | Method and device, storage medium and the electronic equipment that subprocess is exited with parent process |
CN113378154A (en) * | 2020-03-10 | 2021-09-10 | 青岛海信传媒网络技术有限公司 | Application starting method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1996257A (en) * | 2006-12-26 | 2007-07-11 | 华为技术有限公司 | Method and system for monitoring process |
EP2672382A2 (en) * | 2012-06-06 | 2013-12-11 | QNX Software Systems Limited | System and method for changing abilities of a process by modifying the privileges assigned to the process |
-
2013
- 2013-12-12 CN CN201310687222.0A patent/CN104714839B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1996257A (en) * | 2006-12-26 | 2007-07-11 | 华为技术有限公司 | Method and system for monitoring process |
EP2672382A2 (en) * | 2012-06-06 | 2013-12-11 | QNX Software Systems Limited | System and method for changing abilities of a process by modifying the privileges assigned to the process |
Non-Patent Citations (1)
Title |
---|
LJP: ""Creating a process, and then killing it"", 《HTTP://WWWW.CODEPROJECT.COM/ARTICLES/44/CREATING-A-PROCESS-AND-THEN-KILLING-IT》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105528257A (en) * | 2016-01-08 | 2016-04-27 | 腾讯科技(深圳)有限公司 | Single process data processing method and device |
CN105528257B (en) * | 2016-01-08 | 2021-01-05 | 腾讯科技(深圳)有限公司 | Single-process data processing method and device |
CN106055397A (en) * | 2016-05-30 | 2016-10-26 | 新浪网技术(中国)有限公司 | Control method and apparatus of lock |
CN106055397B (en) * | 2016-05-30 | 2019-09-27 | 新浪网技术(中国)有限公司 | A kind of control method and device of lock |
CN106453679A (en) * | 2016-09-30 | 2017-02-22 | 上海斐讯数据通信技术有限公司 | Method and system for obtaining domain name IP address without blocking |
CN108628670A (en) * | 2018-04-26 | 2018-10-09 | 携程旅游信息技术(上海)有限公司 | Exit the method and system of node applications |
CN108628670B (en) * | 2018-04-26 | 2021-11-26 | 携程旅游信息技术(上海)有限公司 | Method and system for quitting node application |
CN109408158A (en) * | 2018-11-06 | 2019-03-01 | 恒生电子股份有限公司 | Method and device, storage medium and the electronic equipment that subprocess is exited with parent process |
CN113378154A (en) * | 2020-03-10 | 2021-09-10 | 青岛海信传媒网络技术有限公司 | Application starting method and device |
CN113378154B (en) * | 2020-03-10 | 2022-06-17 | 青岛海信传媒网络技术有限公司 | Application starting method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104714839B (en) | 2018-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106980492B (en) | For the device of calculating, system, method, machine readable storage medium and equipment | |
US9417935B2 (en) | Many-core process scheduling to maximize cache usage | |
CN104714839A (en) | Method and device for controlling life cycle of processes | |
US8516492B2 (en) | Soft partitions and load balancing | |
US20120222043A1 (en) | Process Scheduling Using Scheduling Graph to Minimize Managed Elements | |
WO2015106687A1 (en) | Method and apparatus for processing computational task | |
WO2015078394A1 (en) | Method and apparatus for scheduling blocking tasks | |
US20130117759A1 (en) | Network Aware Process Scheduling | |
CN107491346B (en) | Application task processing method, device and system | |
US20120311570A1 (en) | Distributed computing framework | |
CN105183564A (en) | Equipment scheduling method, device and system based on cloud testing platform | |
CN111459622B (en) | Method, device, computer equipment and storage medium for scheduling virtual CPU | |
CN111831411B (en) | Task processing method and device, storage medium and electronic equipment | |
WO2022237419A1 (en) | Task execution method and apparatus, and storage medium | |
US20200310828A1 (en) | Method, function manager and arrangement for handling function calls | |
JP6189545B2 (en) | Network application parallel scheduling to reduce power consumption | |
CN110445874B (en) | Session processing method, device, equipment and storage medium | |
WO2023193527A1 (en) | Thread execution method and apparatus, electronic device, and computer-readable storage medium | |
US9619277B2 (en) | Computer with plurality of processors sharing process queue, and process dispatch processing method | |
CN106484536B (en) | IO scheduling method, device and equipment | |
CN113407331A (en) | Task processing method and device and storage medium | |
CN112905267B (en) | Method, device and equipment for accessing virtual machine to coroutine library | |
CN111190725A (en) | Task processing method and device, storage medium and server | |
CN117971250A (en) | Application installation method, device, electronic equipment and readable storage medium | |
CN115373808A (en) | Data acquisition method, data acquisition device, computer storage medium and computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |