Summary of the invention
In view of this, technical matters to be solved by this invention has provided a kind of system recovery method, makes operating system directly return to initial upstate, and cleaning desktop and resource.
In order to solve the problems of the technologies described above, the invention provides a kind of system recovery method, comprising: process list is set, the process that the recording operation system should carry out under init state; Accept user's triggering, the whole processes beyond the process that writes down in the described process list are closed, operating system recovery is to described init state.
Further, described init state comprises: the state when the os starting sequential finishes, and/or behind os starting user-defined state.
Further, process list is set, be recorded in the step of the process that operating system should be carried out under the init state, also comprise: the real-time or executed process of intermittent scanning operating system, the system list identification that carries according to operating system wherein moves relevant system process with maintenance system, and the system process renewal that wherein is not included in as yet in the described process list is recorded in the described process list.
Further, process list is set, is recorded in the step of the process that operating system should be carried out under the init state, also comprise: the process according to user-selected reservation makes up a self-defined tabulation; In real time or the executed process of intermittent scanning operating system, wherein belong to the process that the user keeps, the process that the user keeps of belonging to that wherein is not included in as yet in the described process list is upgraded and is recorded in the described process list according to described self-defined tabulation identification.
Further, make up the step of a self-defined tabulation according to the process of user-selected reservation, comprise: when making up described self-defined tabulation, collect the associated process that the user wishes the whole application program that keeps, the associated process of described application program is merged into a set for user's selection; When described set is selected by the user, the corresponding associated process of described set is added into described self-defined tabulation.
Further, the title of described set shows with application name or document title; The display icon of described set shows with application icon.
Further, when the process similar that the associated process of described application program comprises that the host process of described application program and described application program open with described host process, the collection user wishes the step of the associated process of the whole application program that keeps, comprise: in real time or the cycle monitor each process, and according to the process name of the host process of described application program and/or the associated process that pathname is collected described application program.
Further, the associated process of described application program comprises: the host process of described application program and have one or more processes of kinship with described host process.
Further, collect the step that the user wishes the associated process of the whole application program that keeps, comprising: preset the tabulation of the associated process of an application program, wherein preserve the sign of all potential associated process of described application program; In conjunction with the tabulation of described associated process, the real-time or cycle is collected the associated process of described application program.
Further, collect the step that the user wishes the associated process of the whole application program that keeps, comprising: the real-time or cycle is monitored each process, and collects the associated process of described application program according to the host process and the process kinship of described application program.
Further, comprise: the parent process sign/subprocess sign according to a unknown process finds its upper layer procedures/lower layer procedure, when judging that described upper layer procedures/lower layer procedure and described host process have kinship, determine that described process is the associated process of described application program and collects the described process of record.
Further, comprising: the subprocess sign/parent process sign according to a known process in the described associated process finds its Unrecorded lower layer procedure/upper layer procedures, determines that described lower layer procedure/upper layer procedures is the associated process of described application program and collects record.
Compare the technique effect that the present invention obtained with existing scheme:
1) makes operating system directly return to initial upstate, avoided recovering the trouble that time loss that the computer state brings and various again environment are provided with by restarting systems; From the user experience angle, the solution of the present invention has the effect that makes system reducing, and the system of paralysis is reborn.
2) make the user can close numerous application programs very easily, the resource that takies is cleared up and emptied to desktop,, saved time cost and use cost for the user brings great convenience; From the user experience angle, the solution of the present invention can be cleared up desktop and resource.
3) with in the system process of carrying out after the os starting, may also keep by the relevant system process of still not collected with system stability by process list, cause system crash when having avoided returning to init state.
4) with in the consumer process of carrying out after the os starting, process that may be relevant with user's use habit keeps, for example the process with network connection, antivirus software, fire wall or the like keeps, can bring great convenience to the user by this customized mode, make that the user recovers can directly begin the use of next stage after the init state.
Embodiment
Below will cooperate graphic and embodiment describes embodiments of the present invention in detail, by this to the present invention how the application technology means implementation procedure that solves technical matters and reach the technology effect can fully understand and implement according to this.
Core idea of the present invention is: process list is set, the process that the recording operation system should carry out under init state; Accept user's triggering, the whole processes beyond the process that writes down in the described process list are closed, operating system recovery is to described init state.
Described init state comprises: the state when the os starting sequential finishes, and/or behind os starting user-defined state.
State when the os starting sequential here finishes just is meant in the os starting process that the most basic system process of execution, these system processs are pacing itemss of operating system, can normally move by maintenance system.But except comprising the init state of these system processs, sometimes the user also wish can network settings, security set are relevant process etc. be also contained in the init state, therefore the User Defined state is set here, be interpreted as in the operational process behind os starting that the user can be provided with a state point at any time.For example behind the os starting, the user has carried out the respective environment setting again, has finished the network connection, and has started the necessary security securing software, and this is the User Defined state point, has preserved process that starts before this state point and the configuration of finishing.
Below with an embodiment method of the present invention is described.As shown in Figure 1, comprising:
Step S11 is provided with process list, the process that the recording operation system should carry out under init state; What write down in the process list is process name, sign and/or the pathname of described process;
In general, in the process list of initial configuration, the process that operating system should be carried out under init state rule of thumb reaches statistics by the technician and analyzes the exhaustive resultant and continuous updating maintenance of needs; These processes are meant the process that should carry out, no matter its current whether startup; The process list of this initial configuration can be kept in the user terminal, perhaps is kept at high in the clouds, is carried in described user terminal by high in the clouds.
But process list is except carrying out maintenance update by the technician, and user terminal oneself also can be collected renewal, can realize in the following manner:
1) the real-time or executed process of intermittent scanning operating system, the system list identification that carries according to operating system wherein moves relevant system process with maintenance system, and the system process renewal that wherein is not included in as yet in the described process list is recorded in the described process list.
Such purpose is in the system process of carrying out after will os starting, may also keep by the relevant system process of still not collected by process list with system stability, causes system crash after avoiding this part system process closed.
2) process according to user-selected reservation makes up a self-defined tabulation; In real time or the executed process of intermittent scanning operating system, wherein belong to the process that the user keeps, the process that the user keeps of belonging to that wherein is not included in as yet in the described process list is upgraded and is recorded in the described process list according to described self-defined tabulation identification.
Such purpose is in the consumer process that will carry out after the os starting, and process that may be relevant with user's use habit keeps, and for example the process with network connection, antivirus software, fire wall or the like keeps.Because if after the process that these are relevant with user's use habit is also closed together when recovering init state, the user needs these processes to be opened one by one toward contact again, can bring great convenience to the user by this customized mode, make that the user recovers can directly begin the use of next stage after the init state.
Step S12 accepts user's triggering, and the whole processes beyond the process that writes down in the described process list are closed, and returns described init state.
After accepting user's triggering, rev down process rev returns the operation of init state and can directly be carried out by user terminal, also can control user terminal by high in the clouds and carry out.
When the user triggers, can realize triggering by the function button that mouse action is clicked on the screen; But at " seemingly-dead " state or occur variously when wrong, by mouse action difficulty comparatively, also can realize triggering this moment by the array mode of the shortcut on the keyboard or by the mode that special physical button is set on equipment.
Utilize this mode; moved too much application program in current system; system resources consumption is excessive; cause operating system to become very slow; when " seemingly-dead " state having occurred, directly can keep, all the other process Close Alls by the process of process list to needs; make operating system directly return to initial upstate, avoided recovering the trouble that time loss that the computer state brings and various again environment are provided with by restarting systems.From the user experience angle, the solution of the present invention has the effect that makes system reducing, and the system of paralysis is reborn, and returns to init state.
Utilize this mode, when having opened too much application program, when having occurred very many windows on the system desktop simultaneously, if the user need open window with the major part on the desktop and empty this moment, but the environment setting about user's custom needs to keep, directly can keep by the process of process list to needs, with all the other process Close Alls, make the user can close numerous application programs very easily, desktop is cleared up, and emptied the resource that takies, and the user opens and use other application programs after can not influencing, for the user brings great convenience, time cost and use cost have been saved.From the user experience angle, the solution of the present invention can be cleared up desktop and resource.
Below with an embodiment user terminal oneself being collected the mode 2 of upgrading process list again describes.As shown in Figure 2, comprising:
Step 21, process according to user-selected reservation makes up a self-defined tabulation, when making up described self-defined tabulation, collect the associated process that the user wishes the whole application program that keeps, the associated process of described application program is merged into a set for user's selection; The title of described set shows with application name or document title, and document title promptly refers to the title of the medium of the title of the file of the title of task of the current execution of described application program or current operation, current broadcast; Application name promptly refers to the title of described application program, and this title can be the Chinese and English title of program, also can be the EXENAME of described application program; For example, during the operation of one video player, related a plurality of processes, after these processes are merged into a set, can use the video file name (document title) that is being played to be used as set name this moment, can certainly use the name (application name) of this video player to be used as set name.The display icon of described set shows with application icon.
The associated process of the whole application program that keeps comprises: the host process of described application program and have the supporting process of kinship with described host process; Wherein, these supporting processes comprise: one or more processes that host process is directly or indirectly opened, called reach one or more processes of directly or indirectly opening, calling described host process.The associated process of the whole application program that keeps also can comprise: process similar with described host process that the host process of described application program, described application program are opened and the process similar with described host process that similar application program is opened with described application program.
For the collection of the process similar with the host process of described application program, can be by following mode
Realize that the present invention is not limited to this:
In real time or the cycle monitor each process, and according to the process name of the host process of described application program and/or the associated process that pathname is collected described application program; Specifically, some application program can be opened a plurality of processes when repeated priming, and for example: described application program is in when operation, corresponding host process; This moment, the user started described application program once more, and this application program can be restarted a process, generally itself and the of the same name and/or same path of described host process, and the two is similar process; This moment is by each process in real-time or the cycle supervisory system, process name or pathname according to the host process of described application program, other that collect that described application program opens are of the same name and/or with the process in path, and these processes are exactly the associated process of described application program.
For the collection of the supporting process of described application program, can be separately or knot by following mode
Realize that the present invention is not limited to this with closing:
1) presets a tabulation, wherein preserve the sign of all potential associated process of described application program; In conjunction with described tabulation in real time or the cycle collect the associated process of described application program;
Specifically, the sign of described associated process is PID (process identification (PID)); The associated process that all are potential, be meant the whole possible process relevant with application program, no matter whether it is current with application program launching, this potential associated process can rule of thumb reach statistics by the technician and carry out exhaustive and the continuous updating maintenance of needs; In real time or the process that occurs in the cycle supervisory system, obtain the PID of these processes, which is the supporting process of described application program and collects record in the process of coming to occur in the recognition system by list match.
2) the real-time or cycle is monitored each process, and collects the associated process of described application program according to the host process and the process kinship of described application program;
Specifically, when finding a new process by the monitoring of real-time or cycle, parent process sign/subprocess sign according to this process finds its upper layer procedures/lower layer procedure, seek to upper strata/lower floor more step by step according to this upper layer procedures/lower layer procedure, finally find host process, thereby can judge described upper layer procedures/lower layer procedure and whether described host process has kinship, when having kinship, determine the associated process that described new process is described application program and collect the described process of record;
Perhaps, when finding a new process by the monitoring of real-time or cycle, parent process sign/subprocess sign according to this process finds its upper layer procedures/lower layer procedure, tabulation can know directly whether this upper layer procedures/lower layer procedure and described host process have kinship according to a kinship, directly determines the associated process that described new process is described application program and collect the described process of record when having kinship.
Perhaps, when monitoring is found to have new process to occur by real-time or cycle, all associated process that then trigger the described application program of collecting record detect, whether the subprocess label detection according to described each associated process exists Unrecorded lower layer procedure, if exist, can determine that then this lower layer procedure is exactly the associated process of described application program and collects the described lower layer procedure of record.
Perhaps, detect by real-time or cycle all associated process the described application program of collecting record, parent process sign according to described host process and upper layer procedures thereof finds its Unrecorded upper layer procedures, determines that described upper layer procedures is the associated process of described application program and collects record.
Need to prove, 1) in, when tabulation is upgraded but new process occurred, can be in conjunction with 2) emerging process is discerned collection, to guarantee to merge the accuracy that shows; 2) in, also can be with 1) tabulation as the kinship tabulation, as judging whether the foundation that has kinship and whether write down, to guarantee to merge the accuracy of demonstration;
Step 22 when described set is selected by the user, is added into described self-defined tabulation with the corresponding associated process of described set.
Step 23, in real time or the executed process of intermittent scanning operating system, wherein belong to the process that the user keeps according to described self-defined tabulation identification, the process renewal that belongs to user's reservation that wherein is not included in as yet in the described process list is recorded in the described process list.
Above-mentioned explanation illustrates and has described some preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard eliminating as to other embodiment, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection domain of claims of the present invention.