CN104503750A - Process clearing method and process clearing device - Google Patents

Process clearing method and process clearing device Download PDF

Info

Publication number
CN104503750A
CN104503750A CN201410776649.2A CN201410776649A CN104503750A CN 104503750 A CN104503750 A CN 104503750A CN 201410776649 A CN201410776649 A CN 201410776649A CN 104503750 A CN104503750 A CN 104503750A
Authority
CN
China
Prior art keywords
application program
finger daemon
clearance
plan
server
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
Application number
CN201410776649.2A
Other languages
Chinese (zh)
Inventor
杨继鑫
李良
潘全新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410776649.2A priority Critical patent/CN104503750A/en
Publication of CN104503750A publication Critical patent/CN104503750A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a process clearing method and a process clearing device. The process clearing method comprises the following steps of acquiring a first process of a to-be-cleared application program; acquiring a daemon process associated with the first process of the application program from a preset process table; when the to-be-cleared application program is cleared, suspending the first process of the application program and the daemon process; clearing the suspended first process and daemon process by the application program, wherein the preset process table comprises a corresponding relation between the first process of the application program running in equipment and the daemon process. By the method, the daemon process of the application program can be cleared better, so that the reaction sensitivity of the equipment is improved, and the user experience is promoted.

Description

Process method for cleaning and device
Technical field
The present invention relates to Internet technology, be specifically related to a kind of process method for cleaning and device.
Background technology
Mobile device is the equipment with multiple operation process, and multiple operation process is used for carrying out alternately with user and performing multiple service on the mobile device.Such as, mobile device can have a user's application process run in foreground, and wherein, user can carry out with this process alternately.Other operation process is the finger daemon providing service to user's application process or other operation process.The hardware resource of these other process consume mobile devices, such as, central processing unit (Central Processing Unit is called for short CPU), internal memory, storer, I/O etc.These resources consumed may be competed user and be applied resource needed for work, and may cause the equipment locking etc. that user interface glitch, equipment are insensitive, very slow to the response touched and/or cause owing to only having considerably less resource being just applied to user's application process.
Given this, need to be optimized the hardware resource of equipment, existing method for optimizing resources, existing method for optimizing resources, needs user manually to terminate some secondary processes, such as, user clicks a certain application program run by right key and selects to close in the toolbar of desktop, or the task manager in user's opening operation system, selects to terminate some process in task manager.
But if user selects to terminate some finger daemon, the operation process of those finger daemons does not terminate, then those finger daemons will be run process and restart, and continue the hardware resource consuming mobile device.
Summary of the invention
For defect of the prior art, the invention provides a kind of process method for cleaning and device, the method can remove the application program with finger daemon preferably, improves the reaction sensitivity of equipment, promotes Consumer's Experience.
First aspect, the invention provides a kind of process cleaning plant, comprising:
Process searches unit, for obtaining the first process of application program for clearance, in default plan, obtains the finger daemon relevant to described first process;
Cleaning unit, for when clearing up described application program for clearance, hangs up the first process of described application program and described finger daemon, clears up the first process of described hang-up and finger daemon;
Described default plan comprises: the first process of the described application program run in equipment and the corresponding relation of described finger daemon.
Alternatively, described device also comprises:
Plan acquiring unit, obtain request for sending plan to server, reception server obtains the plan asking to send according to plan.
Alternatively, described process searches unit, specifically for
The characteristic information of all application programs for clearance is sent server, in plan, searches first process identification (PID) corresponding with each characteristic information to make server according to described characteristic information and finger daemon identifies;
First process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described server identify;
The first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
Alternatively, described device also comprises:
Application program determining unit for clearance, for the mark of each process in acquisition equipment and the information of the current shared system resource of this process;
According to the mark of each process, determine the process optimisation strategy corresponding with the mark of each process;
Current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
Alternatively, described process optimisation strategy is the strategy comprising the system resource optimal value of current process downloaded from server in advance;
Described process optimisation strategy is the strategy mated with the operating system environment of equipment, and described system resource optimal value is that described server uses the optimal value of Information Statistics according to user.
Second aspect, the invention provides a kind of process method for cleaning, comprising:
Obtain the first process of application program for clearance;
The finger daemon relevant to described first process is obtained in default plan;
When clearing up described application program for clearance, the first process of described application program and described finger daemon are hung up;
First process of described hang-up and finger daemon are cleared up;
Described default plan comprises: the first process of the described application program run in equipment and the corresponding relation of described finger daemon.
Alternatively, described in default plan, search described application program for clearance the first process and finger daemon before, described method also comprises:
Send plan to server and obtain request;
Reception server obtains the plan of request transmission according to plan.
Alternatively, described the first process and the finger daemon searching application program for clearance in default plan, comprising:
The characteristic information of all application programs for clearance is sent server, in plan, searches first process identification (PID) corresponding with each characteristic information to make server according to described characteristic information and finger daemon identifies;
First process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described server identify;
The first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
Alternatively, the described application program for clearance selected according to user, before first process of searching described application program for clearance in default plan and finger daemon, described method also comprises:
The mark of each process and the information of the current shared system resource of this process in acquisition equipment;
According to the mark of each process, determine the process optimisation strategy corresponding with the mark of each process;
Current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
Alternatively, described process optimisation strategy is the strategy comprising the system resource optimal value of current process downloaded from server in advance;
Described process optimisation strategy is the strategy mated with the operating system environment of equipment, and described system resource optimal value is that described server uses the optimal value of Information Statistics according to user.
As shown from the above technical solution, process method for cleaning provided by the invention and device, when user selects application program for clearance, the first process and the finger daemon of the application program belonging to for clearance can be searched in plan, when clearing up above-mentioned application program, first process of those application programs and finger daemon can be hung up, system resource shared by those application programs is cleared up, and terminate the first process and the finger daemon of hang-up, thus, the application program with finger daemon can be removed preferably, the reaction sensitivity of raising equipment, promote Consumer's Experience.
In instructions of the present invention, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, to disclose and to help to understand in each inventive aspect one or more to simplify the present invention, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should not explained the following intention in reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
It will be understood by those skilled in the art that adaptively to change the module in the equipment in embodiment and they are arranged and be in one or more equipment that this embodiment is different.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit is mutually exclusive part, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of a kind of browser terminal of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme, it all should be encompassed in the middle of the scope of claim of the present invention and instructions.
Accompanying drawing explanation
The schematic flow sheet of the process method for cleaning that Figure 1A provides for one embodiment of the invention;
The schematic diagram of the process of application program is applied in the equipment that Figure 1B provides for one embodiment of the invention;
The schematic flow sheet of the process method for cleaning that Fig. 2 provides for another embodiment of the present invention;
The structural representation of the process cleaning plant that Fig. 3 provides for one embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of invention is further described.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
Finger daemon is a kind of special processing operating in backstage.It independent of opertaing device and periodically perform certain task or etc. some event pending.The most important characteristic of finger daemon is running background.
The Starting mode of finger daemon has its special character.It can start from booting script/etc/rc.d when os starting, by the operation process of operation i.e. the first process initiation, can also can be started by subscriber equipment.
As shown in Figure 1B, equipment can be smart phone, mobile terminal, personal digital assistant, music player devices, game station etc.In fig. ib, equipment can comprise operating system, this operating system is one group of software for management equipment hardware resource, other computer program run of such as application program etc. does not provide public service, in one embodiment, when the processor of equipment performs the process of each operation, operating system manages different operation processes by time scheduling.In another embodiment, process is the example of the computer program performed.In this embodiment, process can be the user's application performed due to user's input.Another example of process is the finger daemon providing one or more service to user's application, another finger daemon or other processes.Finger daemon in the present embodiment does not fetter the specific hardware resource of equipment.
The finger daemon mentioned in following examples and the first process are the process of mutually guarding for a pair, in other embodiments, also may adopt finger daemon and are described by finger daemon, and the present embodiment adopts finger daemon and the first process to be described.
Figure 1A shows the schematic flow sheet of the process method for cleaning that one embodiment of the invention provides, and shown in Figure 1B and Figure 1A, the process method for cleaning of the present embodiment is as described below.
101, obtain the first process of application program for clearance, in default plan, obtain the finger daemon relevant to the first process of described application program.
Default plan in the present embodiment can be to be downloaded in advance from server, includes the first process of the described application program run in equipment and the corresponding relation of described finger daemon.
Server in the present embodiment can be Cloud Server.
Certainly, in actual applications, Cloud Server regular update plan, this equipment can regularly from the plan after Cloud Server down loading updating.
Usually, the first process of application program can at front stage operation, and one or more finger daemons of this application program can at running background, and user can not directly see, can be mutual in the first process of front stage operation and the finger daemon of running background.
102, when clearing up described application application program for clearance, the first process of described application program and described finger daemon are hung up, the first process of described hang-up and finger daemon are cleared up;
Wherein, default plan comprises: the first process of the described application program run in equipment and the corresponding relation of described finger daemon.
By calling the application programming interface API for the first process, finger daemon being hung up respectively in Windows kernel, respectively the first process and finger daemon are hung up.
For example, process is hung up and can be: send the instruction hanging up this process to operating system, so that operating system suspends this process, and the resource shared by process that release suspends.That is, this process is left under order from hardware memory.
Plan in the present embodiment is what download from Cloud Server in advance.Such as, before step 101, the following step 100 shown in figure can be performed:
100, send plan to Cloud Server and obtain request; Receive Cloud Server obtains request transmission plan according to plan.
The process method for cleaning of the present embodiment, when user selects application program for clearance, the first process and the finger daemon of the application program belonging to for clearance can be searched in plan, when clearing up above-mentioned application program, first process of those application programs and finger daemon can be hung up, system resource shared by those application programs is cleared up, and terminate the first process and the finger daemon of hang-up, thus, the application program with finger daemon can be removed preferably, the reaction sensitivity of raising equipment, promotes Consumer's Experience.
In another optional embodiment, aforesaid step 101 also can be following not shown step 101 ':
According to the application program for clearance that user selects, the characteristic information of all application programs for clearance is sent Cloud Server, in plan, searches first process identification (PID) corresponding with each characteristic information to make Cloud Server according to described characteristic information and finger daemon identifies;
First process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described Cloud Server identify;
The first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
Will be understood that, the plan in the present embodiment can be the plan in Cloud Server.
The characteristic information of all application programs for clearance is sent server, in plan, searches first process identification (PID) corresponding with each characteristic information to make server according to described characteristic information and finger daemon identifies.
If process method for cleaning comprises step 101 ' and step 102, now this process method for cleaning can not comprise above-mentioned step 100.
The first above-mentioned process identification (PID) can be the title of this first process, and finger daemon mark can be the title etc. of this finger daemon.In actual applications, process identification (PID) can be code for uniquely identifying this process or title or other information that can identify, the present embodiment is only and illustrates, is not limited.
Fig. 2 shows the schematic flow sheet of the process method for cleaning that one embodiment of the invention provides, and as shown in Figure 2, the process method for cleaning of the present embodiment is as described below.
201, the mark of each process and the information of the current shared system resource of this process in acquisition equipment.
Will be understood that, process refers to the application program run in equipment.In actual applications, can by using all process lists (namely comprising the list of active schedule and inactive process) in application programming interfaces ActivityManager acquisition equipment, and the current shared information of system resource of each process in this process list that obtains and the mark of this process.
The information of the current occupying system resources of each process calculates (as weighting process etc.) according to following one or more information and obtains: the memory usage of this process, central processor CPU occupancy, disk input and output IO handling capacity, network throughput etc.The present embodiment is only and illustrates, does not limit concrete computation process, or calculates according to multinomial information.In a particular application, if the information of the current occupying system resources of process is multinomial, then can obtain the information of the current occupying system resources of this process according to multinomial information weighting process.In the present embodiment, the mark of each process can be the indications for distinguishing different process chosen, or process title etc.
202, according to the mark of each process, the process optimisation strategy corresponding with the mark of each process is determined.
Concrete, the operating system environment information of the mark of described process and equipment is sent Cloud Server, determines the process optimisation strategy corresponding with this mark to make Cloud Server according to the operating system environment information of described mark and described equipment;
The process optimisation strategy corresponding with the mark of this process receiving Cloud Server transmission is the strategy of the system resource optimal value comprising current process.
Process optimisation strategy in the present embodiment can be the strategy comprising the system resource optimal value of current process downloaded from Cloud Server in advance;
Described process optimisation strategy is the strategy mated with the operating system environment of equipment, and described system resource optimal value is that described Cloud Server uses the optimal value of Information Statistics according to user in each equipment.Cloud Server can regular update process optimisation strategy, and correspondingly, process cleaning plant can the process optimisation strategy corresponding with the operating system environment information of process cleaning plant corresponding device regularly from Cloud Server after down loading updating.
In other embodiments, this step 202 is also determined by following mode: the operating system environment information of the mark of described process and equipment is sent Cloud Server, determines the process optimisation strategy corresponding with this mark to make Cloud Server according to the operating system environment information of described mark and described equipment; Receive the process optimisation strategy corresponding with the mark of this process that Cloud Server sends;
Wherein, described process optimisation strategy is the strategy of the system resource optimal value comprising current process.
Operating system environment information in the present embodiment can comprise: software environment, hardware environment that this equipment is current, as memory size, operating system etc.Usually, Cloud Server can the operating system environment information of the arbitrary equipment of Real-time Obtaining.
203, current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
In other embodiments, application program that can be corresponding by the process meeting process optimisation strategy recommends user, selects part application program as application program for clearance to make user in the application program of the needs cleaning recommended.
204, the characteristic information of all application programs for clearance is sent Cloud Server, in plan, search first process identification (PID) corresponding with each characteristic information to make Cloud Server according to described characteristic information and finger daemon identifies;
205, first process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described Cloud Server identify;
206, the first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
207, according to user instruction cleaning described application program for clearance time, first process of described application program for clearance and finger daemon are hung up, system resource shared by described application program for clearance is cleared up, and terminates the first process and the finger daemon of hang-up.
Such as, by calling the application programming interface (Application Programming Interface is called for short API) for the first process being hung up in Windows kernel, the first process is hung up.
By calling the API for being hung up by finger daemon in Windows kernel, finger daemon is hung up.
In the present embodiment, system resource shared by described application program for clearance is cleared up, can comprise: the process terminating this application application program, or, discharge the idle internal memory that this application program takies, such as, internal memory that the process that calling system internal memory cleaning function SetProcessWorkingSetSize clears up this application program takies etc., the present embodiment is only and illustrates, does not limit the specific implementation of the system resource of this place cleaning application program, can arrange according to actual needs.Such as, the mode calling killProcess function can be adopted to terminate the process of this application program, web page tag process or browser plug-in process, cleaning system rubbish etc.
The process method for cleaning of the present embodiment, when user selects application program for clearance, the first process and the finger daemon of the application program belonging to for clearance can be searched in plan, when clearing up above-mentioned application program, first process of those application programs and finger daemon can be hung up, system resource shared by those application programs is cleared up, and terminate the first process and the finger daemon of hang-up, thus, the application program with finger daemon can be removed preferably, the reaction sensitivity of raising equipment, promotes Consumer's Experience.
The process method for cleaning in above-mentioned Fig. 2 is described below by way of a concrete example.
Particularly, run to have under supposing Windows system and mutually can call two process Y1 and Y2, that is when terminating one of them process, another process can restart the process be moved to end, i.e. process Y1 and Y2 finger daemon each other.More specifically, the function for obtaining another running state of process (comprising the accumulative non-response time) can be comprised in process Y1 and Y2, and judge whether the accumulative non-response time reaches system variable " WAIT_TIMEOUT ", if reach, restarts the application code of another process.
Thus for above-mentioned process Y1 and Y2, if clear up two processes according to common method order, after then likely there is receiving process Y1, process Y1 is restarted by Y2, then after terminating process Y2, process Y2 is restarted again by the process Y1 of restarting, and the situation that the cleaning for process Y1 and process Y2 was lost efficacy is occurred.
In order to solve the problem, according to the technical scheme of the embodiment of the present invention, first according to the application program for clearance that user selects, the first process and the finger daemon of application program for clearance can be searched in default plan.Particularly, when the application program that process Y1 and Y2 is corresponding is easily selected by a user as " application program for clearance ", this programme first can search all processes in this application program and the related information between process in default plan.Such as, this programme is first downloaded " plan " corresponding with this application program in Cloud Server according to the characteristic information (adopted name of such as application program) of application program, and in plan, search all processes corresponding with this application program, such as process X1, X2, X3 ... Xn, Y1, Y2, and from plan, obtain the information of process Y1 and Y2 finger daemon each other, process Y1 and Y2 is all added the first process identification (PID) and finger daemon mark.Or, also the characteristic information of application program for clearance can be sent to Cloud Server, Cloud Server is searched and the first process identification (PID) sent in this application program and finger daemon mark according to this characteristic information, make native operating sys-tern can receive above-mentioned mark, thus determine the first process (process Y1 and Y2) and the finger daemon (process Y2 and Y1) of application program for clearance according to mark.
Next, when clearing up above-mentioned application program according to user instruction (or before), special processing can be carried out: hung up in current operation system by process Y1 and Y2, outside the internal memory of operating system, then carry out the end operation of process to process Y1 and Y2.Such as above-mentioned hang-up can pass through the " _ progress.Suspend () in instruction " SuspendThread " or C#; " statement realization, but no matter be which kind of mode is hung up, process Y1 and Y2 all can be left under order by from the internal memory in current operation system, and process Y1 and process Y2 all cannot normally be run in scale removal process.Next, outside internal memory, end operation is carried out to process Y1 and Y2, such as correspond to " SuspendThread " instruction and then use " TerminateThread " instruction to terminate this two processes, and correspond to " _ progress.Suspend (); " statement use " _ progress.Abort (); " statement carries out end operation.
Fig. 3 shows the structural representation of the process cleaning plant that one embodiment of the invention provides, and as shown in Figure 3, the process cleaning plant of the present embodiment comprises: process searches unit 31, cleaning unit 32;
Wherein, process searches unit 31 for obtaining the first process of application program for clearance, obtains the finger daemon that the first process of described application program is relevant in default plan;
Cleaning unit 32 is for when clearing up described application program for clearance, and described first process and described finger daemon are hung up, the first process hang up described application program and finger daemon are cleared up;
Default plan in the present embodiment can comprise: the corresponding relation of each application program run in equipment and the first process of this application program and finger daemon.
For example, cleaning unit 32 can be specifically for, during according to user instruction cleaning described application program for clearance, by calling the application programming interface API for the first process, finger daemon being hung up respectively in Windows kernel, respectively the first process and finger daemon are hung up; System resource shared by described application program for clearance is cleared up, and terminates the first process and the finger daemon of hang-up.
In a kind of possible implementation, above-mentioned process cleaning plant also can comprise following not shown plan acquiring unit 31a, this plan acquiring unit 31a is used for sending plan acquisition request to Cloud Server, receives Cloud Server obtains request transmission plan according to plan.
In the implementation that another kind is possible, aforesaid process searches unit 31 also can be specifically for, according to the application program for clearance that user selects, the characteristic information of all application programs for clearance is sent Cloud Server, in plan, searches first process identification (PID) corresponding with each characteristic information to make Cloud Server according to described characteristic information and finger daemon identifies;
First process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described Cloud Server identify;
The first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
In the implementation that the third is possible, process cleaning plant also can comprise not shown application program determining unit 30 for clearance, this application program determining unit 30 for clearance can be used for before described process searches unit 31, the mark of each process and the information of the current shared system resource of this process in acquisition equipment;
According to the mark of each process, determine the process optimisation strategy corresponding with the mark of each process;
Current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
For example, above-mentioned process optimisation strategy is the strategy comprising the system resource optimal value of current process downloaded from Cloud Server in advance;
Described process optimisation strategy is the strategy mated with the operating system environment of equipment, and described system resource optimal value is that described Cloud Server uses the optimal value of Information Statistics according to user.
In the 4th kind of possible implementation, above-mentioned application program determining unit 30 for clearance can be used for before described process searches unit 31, the mark of each process and the information of the current shared system resource of this process in acquisition equipment; Correspondingly, the operating system environment information of the mark of described process and equipment is sent Cloud Server, determines the process optimisation strategy corresponding with this mark to make Cloud Server according to the operating system environment information of described mark and described equipment;
Receive the process optimisation strategy corresponding with the mark of this process that Cloud Server sends;
Current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
Above-mentioned process optimisation strategy can be the strategy of the system resource optimal value comprising current process.
In above-mentioned the third and the 4th kind of possible implementation, the information of the current occupying system resources of each process calculates (as weighting process etc.) according to following one or more information and obtains: the memory usage of this process, CPU usage, disk I/O information, network throughput etc.
The process cleaning plant of the present embodiment, unit is searched when user selects application program for clearance by process, the first process and the finger daemon of the application program belonging to for clearance can be searched in plan, and then when clearing up unit and clearing up above-mentioned application program, first process of those application programs and finger daemon can be hung up, system resource shared by those application programs is cleared up, and terminate the first process and the finger daemon of hang-up, thus, the application program with finger daemon can be removed preferably, the reaction sensitivity of raising equipment, promote Consumer's Experience.
The process cleaning plant of the present embodiment can perform the flow process of the process method for cleaning shown in earlier figures 1 and Fig. 2, and the present embodiment does not describe in detail at this.

Claims (10)

1. a process cleaning plant, is characterized in that, comprising:
Process searches unit, for obtaining the first process of application program for clearance, in default plan, obtains the finger daemon relevant to described first process;
Cleaning unit, for when clearing up described application program for clearance, hangs up the first process of described application program and described finger daemon, clears up the first process of described hang-up and finger daemon;
Described default plan comprises: the first process of the described application program run in equipment and the corresponding relation of described finger daemon.
2. device according to claim 1, is characterized in that, described device also comprises:
Plan acquiring unit, obtain request for sending plan to server, reception server obtains the plan asking to send according to plan.
3. device according to claim 1, is characterized in that, described process searches unit, specifically for
The characteristic information of all application programs for clearance is sent server, in plan, searches first process identification (PID) corresponding with each characteristic information to make server according to described characteristic information and finger daemon identifies;
First process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described server identify;
The first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
4. device according to claim 1, is characterized in that, described device also comprises:
Application program determining unit for clearance, for the mark of each process in acquisition equipment and the information of the current shared system resource of this process;
According to the mark of each process, determine the process optimisation strategy corresponding with the mark of each process;
Current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
5. device according to claim 4, is characterized in that, described process optimisation strategy is the strategy comprising the system resource optimal value of current process downloaded from server in advance;
Described process optimisation strategy is the strategy mated with the operating system environment of equipment, and described system resource optimal value is that described server uses the optimal value of Information Statistics according to user.
6. a process method for cleaning, is characterized in that, comprising:
Obtain the first process of application program for clearance;
The finger daemon relevant to described first process is obtained in default plan;
When clearing up described application program for clearance, the first process of described application program and described finger daemon are hung up;
First process of described hang-up and finger daemon are cleared up;
Described default plan comprises: the first process of the described application program run in equipment and the corresponding relation of described finger daemon.
7. method according to claim 6, is characterized in that, described in default plan, search described application program for clearance the first process and finger daemon before, described method also comprises:
Send plan to server and obtain request;
Reception server obtains the plan of request transmission according to plan.
8. method according to claim 6, is characterized in that, described the first process and the finger daemon searching application program for clearance in default plan, comprising:
The characteristic information of all application programs for clearance is sent server, in plan, searches first process identification (PID) corresponding with each characteristic information to make server according to described characteristic information and finger daemon identifies;
First process identification (PID) corresponding with each characteristic information and the finger daemon that receive the transmission of described server identify;
The first process and the finger daemon of described application program for clearance is determined according to described first process identification (PID) and finger daemon mark.
9. method according to claim 6, is characterized in that, the described application program for clearance selected according to user, and before first process of searching described application program for clearance in default plan and finger daemon, described method also comprises:
The mark of each process and the information of the current shared system resource of this process in acquisition equipment;
According to the mark of each process, determine the process optimisation strategy corresponding with the mark of each process;
Current for each process shared information of system resource and the process optimisation strategy of this process are compared, using application program corresponding for the process that meets process optimisation strategy as application program for clearance.
10. method according to claim 9, is characterized in that, described process optimisation strategy is the strategy comprising the system resource optimal value of current process downloaded from server in advance;
Described process optimisation strategy is the strategy mated with the operating system environment of equipment, and described system resource optimal value is that described server uses the optimal value of Information Statistics according to user.
CN201410776649.2A 2014-12-15 2014-12-15 Process clearing method and process clearing device Pending CN104503750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410776649.2A CN104503750A (en) 2014-12-15 2014-12-15 Process clearing method and process clearing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410776649.2A CN104503750A (en) 2014-12-15 2014-12-15 Process clearing method and process clearing device

Publications (1)

Publication Number Publication Date
CN104503750A true CN104503750A (en) 2015-04-08

Family

ID=52945151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410776649.2A Pending CN104503750A (en) 2014-12-15 2014-12-15 Process clearing method and process clearing device

Country Status (1)

Country Link
CN (1) CN104503750A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201698A (en) * 2016-07-15 2016-12-07 北京金山安全软件有限公司 Method and device for managing application program and electronic equipment
WO2018018690A1 (en) * 2016-07-28 2018-02-01 宇龙计算机通信科技(深圳)有限公司 Process clearing method and mobile terminal
CN108229167A (en) * 2017-12-29 2018-06-29 北京安云世纪科技有限公司 For the method, equipment and mobile terminal controlled multi-process application
WO2019061060A1 (en) * 2017-09-27 2019-04-04 深圳传音通讯有限公司 Process scanning and killing method and device
CN111176751A (en) * 2019-12-18 2020-05-19 南京巨鲨显示科技有限公司 Method and system for completely closing application software
CN112948241A (en) * 2021-02-09 2021-06-11 北京奇艺世纪科技有限公司 Anti-debugging method and device of application program, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883003A (en) * 2009-05-08 2010-11-10 华北电力大学 Mandatory running method of computer operating system
CN102163161A (en) * 2011-04-01 2011-08-24 奇智软件(北京)有限公司 Process management method and device thereof
CN102331950A (en) * 2011-09-15 2012-01-25 北京安天电子设备有限公司 Method and system for realizing daemon process based on Linux timing task
CN102957555A (en) * 2011-08-29 2013-03-06 中国移动通信集团上海有限公司 Method, system and server for identifying inter-process association relationship in business support system
CN103412793A (en) * 2013-07-29 2013-11-27 北京奇虎科技有限公司 Method, device and system for optimizing system resources
CN103853610A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Resource optimization method and resource optimization device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883003A (en) * 2009-05-08 2010-11-10 华北电力大学 Mandatory running method of computer operating system
CN102163161A (en) * 2011-04-01 2011-08-24 奇智软件(北京)有限公司 Process management method and device thereof
CN102957555A (en) * 2011-08-29 2013-03-06 中国移动通信集团上海有限公司 Method, system and server for identifying inter-process association relationship in business support system
CN102331950A (en) * 2011-09-15 2012-01-25 北京安天电子设备有限公司 Method and system for realizing daemon process based on Linux timing task
CN103853610A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Resource optimization method and resource optimization device
CN103412793A (en) * 2013-07-29 2013-11-27 北京奇虎科技有限公司 Method, device and system for optimizing system resources

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201698A (en) * 2016-07-15 2016-12-07 北京金山安全软件有限公司 Method and device for managing application program and electronic equipment
WO2018018690A1 (en) * 2016-07-28 2018-02-01 宇龙计算机通信科技(深圳)有限公司 Process clearing method and mobile terminal
WO2019061060A1 (en) * 2017-09-27 2019-04-04 深圳传音通讯有限公司 Process scanning and killing method and device
CN108229167A (en) * 2017-12-29 2018-06-29 北京安云世纪科技有限公司 For the method, equipment and mobile terminal controlled multi-process application
CN108229167B (en) * 2017-12-29 2022-05-31 北京安云世纪科技有限公司 Method and device for controlling multi-process application and mobile terminal
CN111176751A (en) * 2019-12-18 2020-05-19 南京巨鲨显示科技有限公司 Method and system for completely closing application software
CN112948241A (en) * 2021-02-09 2021-06-11 北京奇艺世纪科技有限公司 Anti-debugging method and device of application program, electronic equipment and storage medium
CN112948241B (en) * 2021-02-09 2024-02-06 北京奇艺世纪科技有限公司 Anti-debugging method and device for application program, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104503750A (en) Process clearing method and process clearing device
JP6571277B2 (en) Method and apparatus for loading terminal application
RU2605919C2 (en) Method and apparatus for displaying push messages
CN102946599B (en) Realize method and mobile terminal that application program for mobile terminal is downloaded
TWI573075B (en) Persistent and resilient worker processes
CN105068865A (en) Task scheduling method and apparatus
CN109033814B (en) Intelligent contract triggering method, device, equipment and storage medium
CN108241496B (en) Smooth upgrading method and device for application program
CN102999387B (en) Process running gear and method
CN111176801B (en) Multi-process management method, device, equipment and storage medium
CN105786839A (en) Application data acquisition method and apparatus
CN108011931B (en) Web data acquisition method and Web data acquisition system
CN105528257B (en) Single-process data processing method and device
CN105468707A (en) Cache-based data processing method and device
CN112988185A (en) Cloud application updating method, device and system, electronic equipment and storage medium
CN106550021B (en) Push method and device for push message
WO2017133229A1 (en) Mobile terminal image display method and device
CN105787359A (en) Course guarding method and device
CN112817687A (en) Data synchronization method and device
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
US9705912B2 (en) Device, system and method for processing virus files
CN110515718B (en) Batch task breakpoint continuous method, device, equipment and medium
CN108632366B (en) File downloading method and device and terminal equipment
CN111611077A (en) Task parameter processing method, terminal and storage medium
CN107209882B (en) Multi-stage de-registration for managed devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150408