Background technology
Process is once operation activity of the program with certain standalone feature with regard to a certain data acquisition system.Which can be with Shen
Please with possess system resource, be the elementary cell of operating system Dynamic Execution, in traditional operating system, process is both basic
Allocation unit, and basic performance element.
For application program, process is just as a bulk container.After application program is run, it is equivalent to apply journey
Sequence is put in container, and you can add other data, file toward in container, such as:The operationally required variable number of application program
According to, need dll file etc. for quoting.When application program is run twice, the thing in container can't be disposed, system meeting
Look for a new Process Container to accommodate it.
And many times, excessive application program in system desktop, being opened, system resources consumption is excessive, causes operation
System operation becomes slowly, or even occurs in that " seemingly-dead " state, now system outofkilter, but essence does not dissipate
Ability to work is lost, can be instructed with identifying user, but user often unbearably waits, directly by computer power being cut off come again
Computer is opened, the data at this moment operating before user are likely occurred loss or mistake;If user is complete by computer
Into work, work and thinking can be caused to interrupt, swayed the emotion very much and lost time;And itself is restarted repeatedly for user's body
Test also very bad.Now how the current defective mode of system is returned to into system normal condition, system will be caused to occur
Seemingly-dead excessive closing application program, makes operating system just need not can resume work by way of cutting off the electricity supply, into
For a technical problem urgently to be resolved hurrily.
In addition sometimes, user, opens due to lacking Professional knowledge during using computer accidentally
Cause operating system that abnormal application program occurs.For example, user is being operated using word processor, also listen to it is many
During the music that media software is played, now after some application programs are opened system is caused to occur following abnormal:Word processing
Word inside software window is shown as blank or is shown as mess code, the icon of word processor is displayed without, text
The disappearance of Word frame, etc., while the music card that the control panel for also causing multimedia software disappears, played
Shell, page residual etc. are abnormal, and at this moment user is often by the software of these appearance abnormal unlatching manual-lock one by one, until
System recovery is normal, but which is as user cannot accurately obtain the application program for causing system exception occur, so
Much normal software, setting also can be closed together during closing, bring the damage of unnecessary time cost and use cost
Lose.Therefore this case how is processed, a technical problem urgently to be resolved hurrily is also become.
The content of the invention
In view of this, the technical problem to be solved there is provided a kind of method for closing processes, make system recovery
To normal condition, it is that user saves time cost and use cost.
In order to solve above-mentioned technical problem, the invention provides a kind of method for closing processes, including:Preset progress information
Storehouse, records the associated process of one or more application-specifics;According to progress information storehouse to the process performed by operating system
Hit, by the process Close All of hit after user's triggering.
Further, the associated process of the application program, be close after do not cause operating system collapse process.
Further, the associated process of the application program, including:The host process of the application program and the application
The process similar with the host process that program is opened.
Further, the associated process of the application program, including:The host process of the application program and with the master
Process has one or more processes of kinship.
Further, preset progress information storehouse, records the information of the associated process of one or more application-specifics
Step, including:The phase of the application-specific is collected according to the host process and process kinship of each application-specific
Put journey into, record in the progress information storehouse and update.
Further, including:According to the parent process mark/subprocess of a unknown process mark find its upper layer procedures/under
Layer process, when judging that the upper layer procedures/lower layer procedure has kinship with the host process, determines that the process is institute
State the associated process of application-specific and collection records the process.
Further, including:Found according to the subprocess mark/parent process mark of a known process in the associated process
Its Unrecorded lower layer procedure/upper layer procedures, determines the correlation that the lower layer procedure/upper layer procedures are the application-specific
Process simultaneously collects record.
Further, the process performed by operating system is hit according to progress information storehouse, receives the triggering of user,
The step of process Close All that will be hit, including:A target process list is built, according to the progress information storehouse to operation system
The performed process of system is hit, and the process record consistent with information in the progress information storehouse is arranged in the target process
In table;Receive the triggering of user, the target complete process in the target process list is closed.
Further, the application-specific, including:Expend system resource to exceed the application program of pre-determined threshold, lead
Cause operating system that abnormal application program and/or the application program performed after os starting occur.
Compared with currently existing scheme, the technique effect obtained by the present invention:
1) intelligently by occupying system resources excessive closing application program, system recovery is made to normal condition, it is to avoid
The loss for recovering computer state by restarting systems and causing;From the point of view of Consumer's Experience angle, the solution of the present invention tool
Make system recovery vigor.
2) will intelligently cause operating system that abnormal closing application program occurs, and other normal applications are protected
Stay, system recovery is made to normal condition, be that user saves time cost and use cost;From the point of view of Consumer's Experience angle, this
The scheme of invention has correcting system run-time error, and the effect of repair system failure brings operational support to user.
3) intelligently the application program opened by user after system start-up is finished is closed together by user's requirement, while
Also the application program with regard to ambient As is retained, so as to ensure that user, while numerous processes are closed, does not interfere with it
User opens and uses other application programs afterwards, is that user brings great convenience, saves time cost and use cost;
From the point of view of Consumer's Experience angle, the solution of the present invention has functions that return system original state.
Specific embodiment
Describe embodiments of the present invention below in conjunction with schema and embodiment in detail, thereby how the present invention is applied
Technological means come solve technical problem and reach technology effect realize that process can fully understand and implement according to this.
The present invention core idea be:Preset progress information storehouse, records the correlation of one or more application-specifics
Process;The process performed by operating system is hit according to progress information storehouse, will be the process of hit complete after user's triggering
Portion closes.
The application-specific, including:Expend system resource to exceed the application program of pre-determined threshold, cause operating system
There is abnormal application program and/or the application program for performing after the system starts.
Need exist under explanation, the associated process of these application-specifics be close after do not cause operating system collapse
Process.Because may be containing shared process, if these shared processes are also switched off meeting in the associated process of the application program
Affect the operation of other application programs.Therefore only recognize that the independent process in the associated process of the application program is turned off,
Retain shared process therein, but the thread in shared process with regard to the independent process terminates, now it is considered that by institute
The associated process for stating application-specific has been switched off.So when application-specific is closed, and other processes are not affected
With the use of application program, it is ensured that system stable operation.
The method of the present invention is illustrated with an embodiment below.As shown in figure 1, including:
Step S11, preset progress information storehouse, records the associated process of one or more application-specifics;
The application-specific, including:Expend the application program that system resource exceedes pre-determined threshold;These application programs
Operation that system resource total amount can be caused to consume is excessive, there is the slow or even seemingly-dead phenomenon of operation in system.The application-specific
Program, also includes:Cause operating system that abnormal application program occurs;These application programs can be by the storehouse of operating system
The error log of (i.e. CPU calls the process of data from internal memory) or operating system itself is collecting lookup.It is described it is specific should
With program, also include:The application program for performing after the system starts;These application programs are guarantee user in system loads
The application program started after the normal basic process using with the normal operation of system;The basic process, including:Most basic dimension
Hold system stability system process and system or user oneself addition some with regard to system environmentss arrange process (such as network
The process of environment, the process of security context).
In general, the associated process of application-specific described in progress information storehouse by technical staff rule of thumb and system
Count obtained by being analyzed exhaustion and need continuous updating maintenance;These associated process, refer to and application-specific
The related possible process of whole, no matter whether which is current with application program launching;But progress information storehouse is except by skill
Art personnel are safeguarded, can also be collected renewal by cloud mode, for example, answer the specific of reporting of user by blacklist mode
Collected with the associated process of program and updated.What is recorded in progress information storehouse is process name, mark and/or the path of the process
Name.
Progress information storehouse can be deposited beyond the clouds, start in client terminal system and be loaded into user terminal after networking,
Or be directly monitored according to progress information storehouse by high in the clouds;Can also there is user terminal, high in the clouds is gone by user terminal periodically
Down loading updating.
Step S12, hits to the process performed by operating system according to progress information storehouse, will life after user's triggering
In process Close All;
A target process list is built, the process performed by operating system is hit according to the progress information storehouse,
The process consistent with information in the progress information storehouse is recorded in the target process list;Receive the triggering of user, will
Target complete process in the target process list is closed;
When user triggers, triggering can be realized by the function button on mouse action click screen;But " false
Extremely " state or when occurring various wrong, it is more difficult by mouse action, can also now pass through the shortcut on keyboard
Compound mode or by way of special physical button is set on equipment realize triggering.
By the following three kinds of different situations of above-described embodiment reply, you can obtain corresponding effect:
1) process of all application programs for there are occupying system resources excessive is recorded in progress information storehouse.In current system
Excessive application program is run, system resources consumption is excessive, caused operating system to become slowly, to occur in that " false
Extremely " state when, target process list, at this moment directly can be by closing already by acquiring after examination in progress information storehouse
Whole processes in target process list, make system extensive so as to intelligently by occupying system resources excessive closing application program
Normal condition is arrived again, it is to avoid by restarting systems come the loss for recovering computer state and causing.From Consumer's Experience angle
From the point of view of, the solution of the present invention has functions that to make system reducing, can restore the system to a relatively steady state.
2) in progress information storehouse, record has the process for being easily caused the abnormal all application programs of operating system.Currently it is
System has run causes operating system that abnormal application program occurs, and when causing operating system to occur in that various wrong, system is close to
When paralysis, target process list, at this moment directly can be by closing already by acquiring after examination in progress information storehouse
Whole processes in target process list, so as to the closing application program that will intelligently cause operating system generation abnormal, and its
He is retained normal application, makes system recovery to normal condition, is that user saves time cost and use cost.From
From the point of view of Consumer's Experience angle, the solution of the present invention has correcting system run-time error, the effect of repair system failure, and ensures to use
Application program and the safety of data that family normally uses.
3) process of all application programs opened by user after record has system start-up to finish in progress information storehouse.When
Excessive application program is opened, when very many windows are occurred in that in system desktop, if user is now needed table simultaneously
Most of window of opening on face is emptied, but needs to retain with regard to the application program of ambient As, and also will click desktop
During a file in background, target process list already by acquiring after examination in progress information storehouse, at this moment directly i.e.
The whole processes closed in target process list can be passed through, so as to intelligently be opened these by user after system start-up is finished
Application program closed by user's requirement together, while also by the application program with regard to ambient As (such as network connection, fire wall
Deng) retain, so as to ensure that user while numerous application programs are closed, after not interfering with, user opens and uses other
Application program, is that user brings great convenience, saves time cost and use cost.From the point of view of Consumer's Experience angle,
The solution of the present invention has functions that return system original state.
Above-mentioned three kinds of situations are except individually consideration, it is also possible to be applied in combination, the present invention is not limited to this.For example be merely by
Current system has run excessive application program and has caused system seemingly-dead or paralyse, and wherein there is no malice in situation 1
Cause operating system that abnormal application program occurs in the application program or situation 2 that consume system resource, if at this moment passed through
Cause operating system that exception occurs in the excessive application program of occupying system resources or situation 2 in process list examination situation 1
Application program may not have the effect of anticipation, now can be opened by user after these system start-ups are finished with reference to situation 3
The mistake multiple utility program Close All for opening, then can discharge the resource of operating system, make system recovery metastable to one
State.
The collection of associated process of the invention and the method for renewal are illustrated with another embodiment below.
For collection and renewal by cloud mode to the associated process of the application-specific, can be by the following manner
Realize, the present invention is not limited to this:The real-time or each process of cycle monitoring, and the host process according to the application program and process man
Race's relation collects the associated process of the application program, and updates the progress information storehouse, reports to high in the clouds.
Specifically, when finding a new process by real-time or cycle monitoring, according to the parent process of this process
Mark/subprocess mark find its upper layer procedures/lower layer procedure, according to this upper layer procedures/lower layer procedure step by step again to upper strata/
Lower floor is found, and eventually finds host process, such that it is able to judge whether the upper layer procedures/lower layer procedure and the host process have
There is kinship, determine that the new process is the associated process of the application-specific and is collected when with kinship
The process is recorded, the progress information storehouse is updated according to the new process, high in the clouds is reported to.
Or, when finding a new process by real-time or cycle monitoring, according to the parent process of this process mark/
Subprocess mark find its upper layer procedures/lower layer procedure, according to a kinship list directly can know this upper layer procedures/
Whether lower layer procedure has kinship with the host process, directly determines the new process for institute when with kinship
State the associated process of application-specific and collection records the process, the progress information is updated according to the new process
Storehouse, reports to high in the clouds.
Or, when finding to have new process to occur by real-time or cycle monitoring, then trigger the institute to having collected record
The all associated process for stating application program are detected, according to the subprocess label detection of each associated process with the presence or absence of not
The lower layer procedure of record, if it is present can determine that this lower layer procedure is exactly the associated process of the application-specific
And collection records the lower layer procedure, the progress information storehouse is updated according to the lower layer procedure, high in the clouds is reported to.
Or, all associated process for having collected the application program of record are examined by the real-time or cycle
Survey, its Unrecorded upper layer procedures is found according to the parent process of the host process and its upper layer procedures mark, the upper strata is determined
Process is the associated process of the application-specific and collects record, according to the upper layer procedures renewal progress information
Storehouse, reports to high in the clouds.
Described above illustrates and describes some preferred embodiments of the present invention, but as previously mentioned, it should be understood that the present invention
Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and can be used for various other combinations,
Modification and environment, and can be in invention contemplated scope described herein, by above-mentioned teaching or the technology or knowledge of association area
It is modified.And change that those skilled in the art are carried out and change be without departing from the spirit and scope of the present invention, then all should be at this
In the protection domain of bright claims.