CN106201690A - Application progress control method and device - Google Patents
Application progress control method and device Download PDFInfo
- Publication number
- CN106201690A CN106201690A CN201610535013.8A CN201610535013A CN106201690A CN 106201690 A CN106201690 A CN 106201690A CN 201610535013 A CN201610535013 A CN 201610535013A CN 106201690 A CN106201690 A CN 106201690A
- Authority
- CN
- China
- Prior art keywords
- monitored
- monitoring
- application
- stopped
- synchronization
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of application progress control method, including: the startup in response to application creates the first process, and according to described first process creation the second process, described second process runs described application with described first Process Synchronization;In described second process, set up monitoring mechanism, make described second process that described first process to be monitored;If monitoring described first process to be stopped, restart described first process, and recover described first process and described second Process Synchronization runs described application and described first process is monitored by described second process running status.The embodiment of the present invention also provides for a kind of application operating control device, including: process creation module, the first monitoring modular and first restart module.First process is monitored by the present invention by creating the second process, can restart the first process immediately when the first process is stopped, it is ensured that will not interrupt during application running background, beneficially user is again started up entering this application quickly.
Description
Technical field
The present invention relates to application management technical field, particularly relate to a kind of application progress control method and device.
Background technology
Along with the development of software and hardware, the intelligent movable such as such as smart mobile phone, panel computer, intelligent watch or electronic reader
Terminal have also been obtained the most universal and development.Therefore, the various application around mobile intelligent terminal also emerge in an endless stream.
And the process running too busy to get away correspondence applied, during mobile intelligent terminal uses, it is in the process on foreground
All the time only one of which, the active schedule and the inactive process that are in backstage then constantly can increase along with the use of mobile terminal
Many, system resource can be occupied depleted by these growing number of processes, finally affects the fluency that system is run.
Therefore, in traditional application management pattern, when an application is switched to running background, it is more likely that can be by
Reclaim the reasons such as idle process in system and stopped by system, thus longer by expending when causing user to be again started up this application
Time, application PUSH message cannot be received in time or needs cannot be performed apply long playing function etc. on backstage to ask
Topic.
To this end, some application providers use some measures to make up, main solution has two big classes: its
One, two or more to restart mutually (waking up up) between applying, this mode needs user on mobile intelligent terminal
Install two or more and comprise the application mutually restarting (waking up up) logic, being easily caused on mobile intelligent terminal peace
Dress and operation too much do not have the application of too many actually used value for a user, take more system resource and affect shifting
The normal running speed of dynamic intelligent terminal;Its two, application is added the application white list that will not be stopped, the side of white list by application
Formula can avoid the problem that application is stopped by system well, but, owing to application white list great majority are by intelligent movable eventually
End manufacturer has pre-set before product export, although user in use can also supplement in interpolation white list
Application, but user supplements the mode of interpolation does not ensures that application can be added to white list in time, and applies offer
Business and mobile intelligent terminal manufacturer carry out linking up and the business cooperation that brings of maintenance application white list and commercial operation cost all phases
To higher.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, it is provided that a kind of application progress control method and device, energy
Ensure that application is the most properly functioning.
For solving above-mentioned technical problem, first the embodiment of the present invention provides following technical scheme: a kind of application runs and controls
Method, including:
Startup in response to application creates the first process, according to described first process creation the second process, described second process with
Described first Process Synchronization runs described application;
In described second process, set up monitoring mechanism, make described second process that described first process to be monitored;
If monitoring described first process to be stopped, restarting described first process, and recovering described first process and described second
The running status that described first process is monitored by the Process Synchronization described application of operation and described second process.
Further, specifically include according to described first process creation the second process:
Using described first process as parent process, create the second process as subprocess by method of calling.
Further, described method also includes:
In described first process, set up monitoring mechanism, make described first process that described second process to be monitored;
If monitoring described second process to be stopped, restarting described second process, and recovering described first process and described second
The running status that described second process is monitored by the Process Synchronization described application of operation and described first process.
Further, described first process is monitored by described second process or described first process is entered described second
Journey is monitored including:
Monitor whether monitored process exists the signal being stopped;
When monitoring described monitored process and there is the signal being stopped, generate the process halted state of described monitored process
Mark.
Further, the signal that described monitored process is stopped includes that the registration file of described monitored process is in system
Process file in be removed, or the Process identifier of the most described monitored process does not exists.
Further, restart described in described first process or described in restart the concrete operations of described second process and include:
Process halted state mark according to described monitored process sends the instruction restarting the service of described monitored process;
Using the process of enforcement monitoring as parent process, create the described monitored process as subprocess by method of calling.
On the other hand, the embodiment of the present invention also provides for a kind of application operating control device, including:
Process creation module, for creating the first process in response to the startup of application, enters according to described first process creation second
Journey, described second process runs described application with described first Process Synchronization;
First monitoring modular, for setting up monitoring mechanism in described second process, makes described second process enter described first
Journey is monitored;
First restarts module, for when monitoring described first process and being stopped, restarts described first process, and recovers described
Described first process is monitored by the first process and the described second Process Synchronization described application of operation and described second process
Running status.
Further, described process creation module also includes: the first call unit, for using described first process as father
Process, creates the second process as subprocess by method of calling.
Further, described device also includes:
Second monitoring modular, for setting up monitoring mechanism in described first process, makes described first process enter described second
Journey is monitored;
Second restarts module, for when monitoring described second process and being stopped, restarts described second process, and recovers described
Described second process is monitored by the first process and the described second Process Synchronization described application of operation and described first process
Running status.
Further, described first monitoring modular or the second monitoring modular include:
Monitoring means, for monitoring whether monitored process exists the signal being stopped;
Mark unit, for when monitoring monitored process and there is the signal being stopped, generating entering of described monitored process
Journey halted state identifies.
Further, the signal that the monitored process in described monitoring means is stopped includes the note of described monitored process
Volume file is removed in the process file of system, or the Process identifier of the most described monitored process does not exists.
Further, described first restarts module or second and restarts module and include:
Command unit, identifies transmission for the process halted state according to described monitored process and restarts described monitored process clothes
The instruction of business;
Second call unit, for the process to implement monitoring as parent process, is created as subprocess by method of calling
Described monitored process.
After using technique scheme, the present invention at least has the advantages that method and the dress of the embodiment of the present invention
Put when the startup in response to application creates the first process, the most in time according to described one the second process of first process creation,
Two Process Synchronizations run described application and are monitored described first process by described second process, and can find in time
Whether described first process is stopped, and can restart described first process immediately when described first process is stopped, it is ensured that
Apply and interruption situation, beneficially user will not be occurred when running background to be again started up entering this application quickly, also can maintain
This is applied and carries out the operation operation such as message propelling movement or time-consuming long data process on backstage.The embodiment of the present invention only needs in the application
Use relevant treatment measure, can realize applying not stopped by system, development cost and to realize cost the most relatively low, and user without
Multiple application need to be installed on mobile intelligent terminal, it is to avoid what installation and operation multiple application brought takies a large amount of system resource
Problem.
Accompanying drawing explanation
Fig. 1 is the principle schematic of embodiment of the present invention application progress control method.
Fig. 2 is the schematic flow sheet of embodiment of the present invention application progress control method.
Fig. 3 is the schematic flow sheet of another embodiment of the present invention application progress control method.
Fig. 4 is that the first process is monitored or first enters by the second process of embodiment of the present invention application progress control method
The process step schematic diagram that second process is monitored by journey.
Fig. 5 is restarting described first process or restarting described second process of embodiment of the present invention application progress control method
Operating procedure schematic diagram.
Fig. 6 is the principle of compositionality block diagram of embodiment of the present invention application operating control device.
Fig. 7 is the principle of compositionality block diagram of the process creation module of embodiment of the present invention application operating control device.
Fig. 8 is the principle of compositionality block diagram of another embodiment of the present invention application operating control device.
Fig. 9 is the principle of compositionality block diagram of the monitoring modular of embodiment of the present invention application operating control device.
Figure 10 is that the first of embodiment of the present invention application operating control device is restarted module or second and restarted the composition of module
Theory diagram.
Detailed description of the invention
With specific embodiment, the application is described in further detail below in conjunction with the accompanying drawings.It should be noted that following
Exemplary embodiment and description are only used for explaining the present invention, not as a limitation of the invention, and, in situation about not conflicting
Under, the embodiment in the application and the feature in embodiment can be combined with each other.
The present embodiments relate to a kind of application progress control method and device, can apply to various intelligent terminal,
In the embodiment of the present invention, this intelligent terminal can be smart mobile phone, panel computer, intelligent television, intelligent watch or electronic reading
Devices etc., the operating system that described intelligent terminal runs can be Android (Android) system, also can also is that such as Windows
The operating systems such as operating system, Saipan operating system, IOS.
Shown in Fig. 1 and Fig. 2, in one embodiment of the invention, it is provided that a kind of application progress control method, bag
Include:
S11, the startup in response to application creates the first process, and according to described first process creation the second process, described second enters
Journey runs described application with described first Process Synchronization;
S12, sets up monitoring mechanism in described second process, makes described second process be monitored described first process;
S13, if monitoring described first process when being stopped, restarts described first process, and recovers the first process and second and enter
The running status that described first process is monitored by the journey described application of synchronous operation and described second process.
During the use of intelligent terminal, when starting an application, such as: user independently opens according to use demand
Dynamic application, or system applies (start self-starting or in predetermined point of time self-starting) according to preset instructions self-starting, system
All can create a corresponding process to operate to the operation performing described application.And the embodiment of the present invention is by response to application
Startup when creating the first process, the most in time according to described one the second process of first process creation, two Process Synchronizations fortune
Row described application and being monitored described first process by described second process, such that it is able to first process that finds in time is
No it is stopped, and the first process can be restarted when the first process is stopped immediately, it is ensured that applying will not when running background
Occur interruption situation, beneficially user to be again started up entering this application quickly, this also can be maintained to apply on backstage and carry out message
Push or time-consuming long data process etc. runs operation.The embodiment of the present invention only needs to use correlation process method in the application, i.e.
Can realize applying not stopped by system, development cost and to realize cost the most relatively low, and user is without on mobile intelligent terminal
Multiple application is installed, it is to avoid the problem taking a large amount of system resource that installation and operation multiple application brings.
In another embodiment, specifically include according to described first process creation the second process:
Using described first process as parent process, create the second process as subprocess by method of calling.
Owing to using fork function fashion can realize setting up clone's process (son of a process (parent process) easily
Process), therefore, the present invention is by calling establishment described second with fork function fashion by system for parent process with the first process
Process, due to the characteristic of fork function, the second process created is essentially identical with the first process, is used to perform identical thing
Part, the most synchronously runs same application, thus the operation for application provides a real-time backup, at follow-up running
In, even if the first process be stopped by system, described second process remains to maintain the continuous service of application, can ensure well
Can go swiftly to when user is again started up this application, moreover it is possible to the message realizing described application on backstage pushes, and rear
Platform carries out time-consuming long data process etc. and runs operation.
Optionally, generally with described first process at front stage operation, and running background can be proceeded to according to practical situation, and institute
Second process of stating then is generally only at running background, and, when an application needs to proceed to front stage operation from running background, also
Generally realize with described first process.
And in one alternative embodiment of the present invention, as it is shown on figure 3, described method may further comprise:
S14, sets up monitoring mechanism in described first process, makes described first process be monitored described second process;
S15, is stopped if monitoring described second process, restarts described second process, and recovers described first process and described
The running status that described second process is monitored by the second Process Synchronization described application of operation and described first process.
Owing to described first process or described second process all exist the probability stopped by system when running background,
The present embodiment, by also setting up monitoring mechanism in described first process further, makes described first process also enter described second
Journey is monitored, such that it is able to when described first monitoring the process to described second process is stopped, also can restart institute in time
State the second process.Mutual monitoring is achieved owing to all setting up the monitoring mechanism of correspondence in the first process and the second process,
Each process in a relation scene be as implement monitoring process, and become in another relation scene by
Monitoring process, when a process as implement monitoring process time, when monitoring monitored process and being stopped, can notify be
System restarts the monitored process being stopped immediately, thus more effectively ensure that described first process and the second process all can begin
Maintain running status eventually.
And in another embodiment of the present invention, as shown in Figure 4, described first process is supervised by described second process
Survey and described first process be identical to the processing mode that the second process is monitored, all include:
S121(S141), the signal that monitored process is stopped is monitored whether;
S122(S142), when monitoring described monitored process and there is the signal being stopped, described monitored process is generated
Process halted state identifies.
When the first process and the second process are mutually monitored, whether can be existed by the monitored process of monitoring and be stopped
Signal determine monitored state of a process, such as: being stopped or continued to be in operation, having been supervised if monitoring
Survey process continues to be in operation, then circulation is monitored, if monitoring monitored process when being stopped, i.e. can produce
The process halted state mark of corresponding monitored process, thus be conducive to quickly taking the follow-up operation restarting process, carry
Rising treatment effeciency, the operation that application has been effectively ensured will not be interrupted.
In the specific implementation, the signal that described monitored process is stopped includes that the registration file of monitored process is in system
Process file in be removed, or the Process identifier (process ID) of the most described monitored process does not exists.Logical
Cross readily identified for these and monitoring signal to be monitored, can judge rapidly to be defined as whether monitored process is stopped
Only.
In another embodiment, as it is shown in figure 5, described in restart described first process or described in restart described
The concrete operations of two processes include:
S131(S151), identify transmission according to the process halted state of monitored process and restart the finger of described monitored process service
Order;
S132(S152), using the process of enforcement monitoring as parent process, the described quilt as subprocess is created by method of calling
Monitoring process.
By according to process halted state mark send restart described in be stopped another process service instruction, accurately
Property high, and, the operation restarting the operation of process and second process of establishment is essentially identical, is all to enter using a process as father
Journey, creates as another process described in subprocess by method of calling, and this establishment mode efficiency is high, and can guarantee that son enters
Journey is run the progress of the identical application applied and run and can be kept synchronizing with parent process.In specific implementation process, institute
State the first process as implement the monitoring the process of monitoring to the second process as monitored process be stopped time, then by described the
One process sends the instruction restarting described second process service to system bottom, after system bottom receives described instruction, with described
First process is parent process, restarts described second process by method of calling;Otherwise, when the second process is as implementing entering of monitoring
Journey monitors the first process as monitored process when being stopped, then sent to system bottom by described second process and restart institute
State the instruction of the first process service, after system bottom receives instruction, then with described second process as parent process, pass through method of calling
Restart described first process.
When being embodied as, described in restart monitored process, with implement monitoring process as parent process, be also with fork function
Carry out creating the corresponding monitored process as subprocess by method of calling, after creating corresponding subprocess, also at this
Newly created subprocess resettles monitoring mechanism, on the one hand, newly created subprocess and parent process synchronous operation can be made same
One application and Restoration monitoring, the processing cycle cycle mutually monitored hence into the next one and restart, thus, at any time,
Process can be the most quickly restarted when any one process in two processes is stopped.
As it has been described above, according to described first process creation the second process and the monitored process that is stopped described in restarting all
The subprocess of correspondence can be created by method of calling with fork function.To this, for promoting the efficiency of establishment process, can be by
The method being called the corresponding subprocess of establishment with fork function fashion by system by parent process is compiled into so storehouse, and is stored in system
In the libs catalogue of engineering, call in the oncreate creation method of service and perform to create new subprocess and monitoring
The task of mechanism.For the present invention, described in be compiled into the step in so storehouse and only need to implement once when application and development, be i.e. available for
Follow-up actually used operating procedure is called neatly.
On the other hand, for above method is better achieved, as shown in Figure 6, the embodiment of the present invention additionally provides a kind of application
Operating control device, including:
Process creation module 10, for creating the first process, according to described first process creation second in response to the startup of application
Process, described second process runs described application with the first Process Synchronization;
First monitoring modular 20, for setting up monitoring mechanism in described second process, makes described second process to the first process
It is monitored;
First restarts module 30, for when monitoring the first process and being stopped, restarts described first process, and recovers described the
One process and described second Process Synchronization run described application and described second process to the monitoring that described first process is carried out
Running status.
During the use of intelligent terminal, system needs to create corresponding process and performs the operation operation of application.And
Embodiment of the present invention process creation module 10 can create the first process by the startup of response application and perform described application, and
And run simultaneously described application according to described one the second process of first process creation the most in time, and also by the first monitoring
Module realizes the monitoring to the first process of second process, such that it is able to find in time whether the first process is stopped, and can be
The first process is restarted immediately, it is ensured that apply the interruption situation that will not occur when running background, favorably when first process is stopped
It is again started up entering this application quickly in user, this also can be maintained to apply on backstage and carry out message propelling movement or time-consuming long data
Process etc. run operation.
The embodiment of the present invention only needs to use correlation process method in the application, can realize applying not stopped by system, open
Send out cost and to realize cost the most relatively low, and user is without installing multiple application on mobile intelligent terminal, it is to avoid install and
Run the problem taking a large amount of system resource that multiple application brings.
In another embodiment of the present invention, as it is shown in fig. 7, described process creation module 10 also includes: first calls
Unit 100, for using described first process as parent process, creating the second process as subprocess by method of calling.
Owing to using fork function fashion can realize setting up clone's process (son of a process (parent process) easily
Process), therefore, by being adjusted by system with fork function fashion with described first process for parent process when the present invention is embodied as
With creating the second process.Due to the characteristic of fork function, described second process created is essentially identical with described first process,
Be used to perform identical event, the most synchronously run same application, thus for the operation of application provide one real-time standby
Part, in follow-up running, even if the first process be stopped by system, also the second process can maintain the lasting fortune of application
OK, can ensure well can go swiftly to when user is again started up this application, moreover it is possible to realize described application on backstage
Message pushes, and carries out the operation operations such as time-consuming long data process on backstage.
And in another embodiment of the present invention, as shown in Figure 8, described device also includes:
Second monitoring modular 40, for setting up monitoring mechanism in described first process, makes described first process to described second
Process is monitored;
Second restarts module 50, for when monitoring described second process and being stopped, restarts described second process, and recovers institute
State the first process and described second Process Synchronization runs described application and described second process is monitored by described first process
Running status.
Owing to described first process and described second process all exist the probability stopped by system when running background,
The present embodiment also sets up monitoring mechanism by the second monitoring modular 40 further in described first process, makes described first process
Also described second process is monitored, such that it is able to when described first monitoring the process to described second process is stopped, also
Module 50 can be restarted by second in time and restart described second process.Right owing to all setting up in the first process and the second process
The monitoring mechanism answered achieves mutual monitoring, and each process is as the process implementing monitoring in a relation scene,
And in another relation scene, become monitored process, when a process is as when implementing the process monitored, in monitoring
To monitored process be stopped time, the system that can notify is restarted the monitored process being stopped immediately, thus is more effectively protected
Demonstrate,prove described first process and the second process all can maintain running status all the time.
In another embodiment of the present invention, as it is shown in figure 9, described first monitoring modular 20 and the second monitoring modular 40
To realize principle the most identical with structure, all include:
Monitoring means 200(400), for monitoring whether monitored process exists the signal being stopped;
Mark unit 202(402), for when monitoring described monitored process and there is the signal being stopped, generating described quilt
The process halted state mark of monitoring.
When the first process and the second process are mutually monitored, whether can be existed by the monitored process of monitoring and be stopped
Signal determine monitored state of a process, continue to be in operation if monitoring monitored process, then circulation supervise
Surveying, if monitoring monitored process when being stopped, i.e. can produce the process halted state mark of the monitored process of correspondence,
Thus be conducive to quickly taking the follow-up operation restarting process, and promoting treatment effeciency, the operation that application has been effectively ensured will not
Interrupt.
In the specific implementation, the signal that described monitored process is stopped includes that the registration file of monitored process is in system
Process file in be removed, or the Process identifier (process ID) of the most described monitored process does not exists.Logical
Cross readily identified for these and monitoring signal to be monitored, can judge rapidly to be defined as whether monitored process is stopped
Only.
In another embodiment of the present invention, as shown in Figure 10, described first restarts module 30 and second and restarts module
50 to realize principle the most identical with structure, all include:
Command unit 300(500), for according to the process halted state of monitored process identify transmission restart described monitored enter
The instruction of journey service;
Second call unit 302(502), for the process to implement monitoring as parent process, create conduct by method of calling
The described monitored process of subprocess.
By according to process halted state mark send restart described in be stopped monitored process service instruction, accurately
Property high.And, restart process operation and create the second process operation essentially identical, be all to enter using a process as father
Journey, creates the described monitored process as subprocess by method of calling, and this establishment mode efficiency is high, and can guarantee that son enters
Journey is run the progress of the identical application applied and run and can be kept synchronizing with parent process.
In the specific implementation, described in restart monitored process, with implement monitoring process as parent process, be also with fork letter
Number carries out creating the corresponding monitored process as subprocess by method of calling, after creating corresponding subprocess, also exists
This newly created subprocess resettles monitoring mechanism, on the one hand, newly created subprocess and parent process synchronous operation can be made
Same application and Restoration monitoring, the processing cycle cycle mutually monitored hence into the next one and restart, thus, in office when
Wait, can the most quickly restart process when any one process in two processes is stopped.
For promoting the efficiency of establishment process, establishment correspondence can will be called with fork function fashion by system by parent process
The method of subprocess is compiled into so storehouse, and is stored in the libs catalogue of system engineering, at the oncreate creation method of service
In call the task of performing to create new subprocess and monitoring mechanism.For the present invention, so storehouse it is compiled into described in
Step only need to implement once when application and development, be i.e. available for follow-up actually used operating procedure and call neatly, thus
Quickly realize according to first process creation the second process and the operation of monitored process that has been stopped described in restarting.
If the function described in the embodiment of the present invention realizes and as independent using the form of software function module or unit
When production marketing or use, a calculating device-readable can be stored in and take in storage medium.Based on such understanding, the present invention
Part or the part of this technical scheme that prior art is contributed by embodiment can embody with the form of software product
Coming, this software product is stored in a storage medium, including some instructions with so that a calculating equipment (can be individual
Computer, server, mobile computing device or the network equipment etc.) perform the whole of method described in each embodiment of the present invention or
Part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory),
Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store program code
Medium.In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is real with other
Executing the difference of example, between each embodiment, same or similar part sees mutually.
Although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, permissible
Understand and these embodiments can be carried out multiple change without departing from the principles and spirit of the present invention, revise, replace
And modification, the scope of the present invention is limited by claims and equivalency range thereof.
Claims (12)
1. an application progress control method, it is characterised in that including:
Startup in response to application creates the first process, according to described first process creation the second process, described second process with
Described first Process Synchronization runs described application;
In described second process, set up monitoring mechanism, make described second process that described first process to be monitored;
If monitoring described first process to be stopped, restarting described first process, and recovering described first process and described second
The running status that described first process is monitored by the Process Synchronization described application of operation and described second process.
Apply progress control method the most as claimed in claim 1, it is characterised in that enter according to described first process creation second
Journey specifically includes:
Using described first process as parent process, create the second process as subprocess by method of calling.
Apply progress control method the most as claimed in claim 1, it is characterised in that described method also includes:
In described first process, set up monitoring mechanism, make described first process that described second process to be monitored;
If monitoring described second process to be stopped, restarting described second process, and recovering described first process and described second
The running status that described second process is monitored by the Process Synchronization described application of operation and described first process.
Apply progress control method the most as claimed in claim 3, it is characterised in that described second process is to described first process
It is monitored or described second process is monitored including by described first process:
Monitor whether monitored process exists the signal being stopped;
When monitoring described monitored process and there is the signal being stopped, generate the process halted state of described monitored process
Mark.
Apply progress control method the most as claimed in claim 4, it is characterised in that the signal that described monitored process is stopped
Registration file including described monitored process is removed in the process file of system, or the most described monitored process
Process identifier do not exist.
Apply progress control method the most as claimed in claim 4, it is characterised in that described in restart described first process or described
The concrete operations restarting described second process include:
Process halted state mark according to described monitored process sends the instruction restarting the service of described monitored process;
Using the process of enforcement monitoring as parent process, create the described monitored process as subprocess by method of calling.
7. an application operating control device, it is characterised in that including:
Process creation module, for creating the first process in response to the startup of application, enters according to described first process creation second
Journey, described second process runs described application with described first Process Synchronization;
First monitoring modular, for setting up monitoring mechanism in described second process, makes described second process enter described first
Journey is monitored;
First restarts module, for when monitoring described first process and being stopped, restarts described first process, and recovers described
The monitoring that described first process is carried out by the first process and the described second Process Synchronization described application of operation and described second process
Running status.
Apply operating control device the most as claimed in claim 7, it is characterised in that described process creation module also includes: the
One call unit, for using described first process as parent process, creating the second process as subprocess by method of calling.
Apply operating control device the most as claimed in claim 8, it is characterised in that described device also includes:
Second monitoring modular, for setting up monitoring mechanism in described first process, makes described first process enter described second
Journey is monitored;
Second restarts module, for when monitoring described second process and being stopped, restarts described second process, and recovers described
Described second process is monitored by the first process and the described second Process Synchronization described application of operation and described first process
Running status.
Apply operating control device the most as claimed in claim 8, it is characterised in that described first monitoring modular or the second prison
Survey module includes:
Monitoring means, for monitoring whether monitored process exists the signal being stopped;
Mark unit, for when monitoring monitored process and there is the signal being stopped, generating entering of described monitored process
Journey halted state identifies.
11. apply operating control device as claimed in claim 10, it is characterised in that in described monitoring means monitored enter
The signal that journey is stopped includes that the registration file of described monitored process is removed in the process file of system, or in systems
The Process identifier of described monitored process does not exists.
12. apply operating control device as claimed in claim 10, it is characterised in that described first restarts module or the second weight
Open module to include:
Command unit, identifies transmission for the process halted state according to described monitored process and restarts described monitored process clothes
The instruction of business;
Second call unit, for the process to implement monitoring as parent process, is created as subprocess by method of calling
Described monitored process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610535013.8A CN106201690A (en) | 2016-07-07 | 2016-07-07 | Application progress control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610535013.8A CN106201690A (en) | 2016-07-07 | 2016-07-07 | Application progress control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106201690A true CN106201690A (en) | 2016-12-07 |
Family
ID=57472485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610535013.8A Pending CN106201690A (en) | 2016-07-07 | 2016-07-07 | Application progress control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106201690A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775981A (en) * | 2016-12-15 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of process handling method, device and computer-readable medium |
CN107704133A (en) * | 2017-09-28 | 2018-02-16 | 努比亚技术有限公司 | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium |
CN107704274A (en) * | 2017-08-24 | 2018-02-16 | 武汉斗鱼网络科技有限公司 | Method, storage medium, equipment and the system waken up for Android application host process |
CN108733465A (en) * | 2017-04-18 | 2018-11-02 | 北大方正集团有限公司 | The control method of service processes, the control device of service processes and terminal |
CN109491720A (en) * | 2018-10-09 | 2019-03-19 | 深圳市网心科技有限公司 | Process initiation method, electronic equipment, system and storage medium |
CN110007981A (en) * | 2019-02-28 | 2019-07-12 | Oppo广东移动通信有限公司 | Start method, apparatus, electronic equipment and the medium of application program |
CN110032487A (en) * | 2018-11-09 | 2019-07-19 | 阿里巴巴集团控股有限公司 | Keep Alive supervision method, apparatus and electronic equipment |
CN110275782A (en) * | 2018-03-13 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN110321203A (en) * | 2018-03-29 | 2019-10-11 | 武汉斗鱼网络科技有限公司 | The seemingly-dead processing method of background process and client |
CN113377451A (en) * | 2021-06-09 | 2021-09-10 | 北京千丁互联科技有限公司 | Application program restarting method and device, computer equipment and readable storage medium |
WO2023029835A1 (en) * | 2021-09-01 | 2023-03-09 | 中兴通讯股份有限公司 | Method for protecting kernel thread, and terminal and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103746782A (en) * | 2013-12-25 | 2014-04-23 | 北京奇虎科技有限公司 | Method and apparatus for obtaining feedback information of application |
CN104252380A (en) * | 2013-06-28 | 2014-12-31 | 百度在线网络技术(北京)有限公司 | Control method and device for system call under Linux system |
CN104598313A (en) * | 2015-02-04 | 2015-05-06 | 广州市久邦数码科技有限公司 | Implementation method for automatic restart after stop of application process and system thereof |
CN105335171A (en) * | 2014-06-24 | 2016-02-17 | 北京奇虎科技有限公司 | Method and device for long residence of application program in background of operating system |
-
2016
- 2016-07-07 CN CN201610535013.8A patent/CN106201690A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104252380A (en) * | 2013-06-28 | 2014-12-31 | 百度在线网络技术(北京)有限公司 | Control method and device for system call under Linux system |
CN103746782A (en) * | 2013-12-25 | 2014-04-23 | 北京奇虎科技有限公司 | Method and apparatus for obtaining feedback information of application |
CN105335171A (en) * | 2014-06-24 | 2016-02-17 | 北京奇虎科技有限公司 | Method and device for long residence of application program in background of operating system |
CN104598313A (en) * | 2015-02-04 | 2015-05-06 | 广州市久邦数码科技有限公司 | Implementation method for automatic restart after stop of application process and system thereof |
Non-Patent Citations (1)
Title |
---|
JUPITERWANGQ: "Android实现双进程守护", 《HTTP://BLOG.CSDN.NET/ZTEMT_SW2/ARTICLE/DETAILS/27101681》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775981B (en) * | 2016-12-15 | 2020-03-03 | 北京奇虎科技有限公司 | Process processing method and device and computer readable medium |
CN106775981A (en) * | 2016-12-15 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of process handling method, device and computer-readable medium |
CN108733465A (en) * | 2017-04-18 | 2018-11-02 | 北大方正集团有限公司 | The control method of service processes, the control device of service processes and terminal |
CN107704274B (en) * | 2017-08-24 | 2019-11-05 | 武汉斗鱼网络科技有限公司 | Method, storage medium, equipment and the system waken up for Android application host process |
CN107704274A (en) * | 2017-08-24 | 2018-02-16 | 武汉斗鱼网络科技有限公司 | Method, storage medium, equipment and the system waken up for Android application host process |
CN107704133A (en) * | 2017-09-28 | 2018-02-16 | 努比亚技术有限公司 | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium |
CN107704133B (en) * | 2017-09-28 | 2021-09-21 | 努比亚技术有限公司 | Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium |
CN110275782B (en) * | 2018-03-13 | 2023-08-29 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN110275782A (en) * | 2018-03-13 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN110321203A (en) * | 2018-03-29 | 2019-10-11 | 武汉斗鱼网络科技有限公司 | The seemingly-dead processing method of background process and client |
CN109491720A (en) * | 2018-10-09 | 2019-03-19 | 深圳市网心科技有限公司 | Process initiation method, electronic equipment, system and storage medium |
CN110032487A (en) * | 2018-11-09 | 2019-07-19 | 阿里巴巴集团控股有限公司 | Keep Alive supervision method, apparatus and electronic equipment |
CN110007981A (en) * | 2019-02-28 | 2019-07-12 | Oppo广东移动通信有限公司 | Start method, apparatus, electronic equipment and the medium of application program |
CN113377451A (en) * | 2021-06-09 | 2021-09-10 | 北京千丁互联科技有限公司 | Application program restarting method and device, computer equipment and readable storage medium |
CN113377451B (en) * | 2021-06-09 | 2024-03-12 | 北京千丁互联科技有限公司 | Application restarting method, device, computer equipment and readable storage medium |
WO2023029835A1 (en) * | 2021-09-01 | 2023-03-09 | 中兴通讯股份有限公司 | Method for protecting kernel thread, and terminal and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201690A (en) | Application progress control method and device | |
CN110502340A (en) | A kind of resource dynamic regulation method, device, equipment and storage medium | |
US20220179682A1 (en) | Task processing method, apparatus, and system based on distributed system | |
US9960963B2 (en) | Dynamic client fail-over during a rolling patch installation based on temporal server conditions | |
CN103631633B (en) | Virtual machine total-system online migration method, device and system | |
CN103152419B (en) | A kind of high availability cluster management method of cloud computing platform | |
CN105354113B (en) | A kind of system and method for server, management server | |
US9830181B2 (en) | Method and system for gracefully shutdown virtual system | |
CN106330523A (en) | Cluster server disaster recovery system and method, and server node | |
CN115297124B (en) | System operation and maintenance management method and device and electronic equipment | |
CN114064217B (en) | OpenStack-based node virtual machine migration method and device | |
CN107810488A (en) | A kind of method of state management of virtual machine, device and intelligent terminal | |
CN104216776A (en) | Quick starting method for Android operating system based on BLCR (Berkeley lab checkpoint restart) technology | |
CN104965727A (en) | Method and device for restarting server | |
CN106572137B (en) | Distributed service resource management method and device | |
CN105589756A (en) | Batch processing cluster system and method | |
CN109284339A (en) | A kind of method and apparatus of database data real-time synchronization | |
CN104850394A (en) | Management method of distributed application program and distributed system | |
CN104516796A (en) | Command set based network element backup and recovery method and device | |
CN105302611A (en) | Method and system for starting computer system under Linux | |
CN108268302A (en) | Realize the method and apparatus that equipment starts | |
CN109725916B (en) | Topology updating system and method for stream processing | |
CN110502369A (en) | A kind of method, apparatus and storage medium of equipment crash recovery | |
CN109542829A (en) | The control method of GPU equipment, device and electronic equipment in multisystem | |
CN111614702B (en) | Edge calculation method and edge calculation system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161207 |
|
WD01 | Invention patent application deemed withdrawn after publication |