CN103294542B - The method and its device of Process Protection - Google Patents
The method and its device of Process Protection Download PDFInfo
- Publication number
- CN103294542B CN103294542B CN201310225981.5A CN201310225981A CN103294542B CN 103294542 B CN103294542 B CN 103294542B CN 201310225981 A CN201310225981 A CN 201310225981A CN 103294542 B CN103294542 B CN 103294542B
- Authority
- CN
- China
- Prior art keywords
- set threshold
- threshold value
- counting
- level
- many times
- 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.)
- Active
Links
Abstract
The present invention discloses a kind of method and apparatus of Process Protection, and this method includes:When Installed System Memory value is less than the first pre-set threshold value, judge all to choose whether process to be terminated belongs to protected process;If process belongs to protected process, judge whether the process-level real time value of process is equal to the second pre-set threshold value;If the process-level real time value of process is not equal to the second pre-set threshold value, the process-level of process is improved;If the process-level real time value of process is equal to the second pre-set threshold value, terminate process.The method of Process Protection proposed by the present invention, by improving the process-level of process, reaches the purpose for protecting some important processes.
Description
Technical field
The present invention relates to field of information security technology, more particularly to a kind of Process Protection method and its device.
Background technology
As the related intelligent artifact of current android system is more and more.Because of friendly operation circle of android system
Face, abundant expanded application and property of increasing income so that current android system in the occupancy of intelligent artifact market far away
Lead over other systems.But with increasing for Android smart machines, increasing Android smart machines exist and are
The system situation inadequate to the characteristic satisfaction of some products.Such as android system has its when built-in application program is managed
Process-level is divided and administrative mechanism, and application program that will be different divides different process-levels, and process-level is higher, more not
Easily by the Low memory killer of Android(Terminate process during low internal memory)Memory management mechanism terminates.Work as Android
During the Out of Memory of intelligent artifact, Low memory killer memory managements mechanism terminates some application programs automatically, and preferentially
The low application program of the process-level of application program is terminated.But, for some application processes for the main product of product
When the corresponding process-level of application process is not again high, Low memory killer memory managements mechanism can not recognize that these are applied
Program, can automatically terminate these programs critically important for intelligent artifact.
The content of the invention
The main object of the present invention is to provide the method and its device of a kind of Process Protection, it is intended to protect some important to enter
Journey by memory management mechanism without being terminated easily.
In order to achieve the above object, the present invention proposes a kind of method of Process Protection, comprises the following steps:
When Installed System Memory value is less than the first pre-set threshold value, judge all to choose process to be terminated whether to belong to be protected
Process;
If the process belongs to protected process, judge whether the process-level real time value of the process is equal to the
Two pre-set threshold values;
If the process-level real time value of the process is not equal to the second pre-set threshold value, the process level of the process is improved
Not;
If the process-level real time value of the process is equal to the second pre-set threshold value, terminate the process.
Preferably, also include before the step of process-level of the raising process:
Judge whether the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value;
If the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value, terminate the process;
If the corresponding real-time guard counting how many times of the process are not equal to the 3rd pre-set threshold value, entering for the process is improved
Journey rank, reduces the corresponding protection counting how many times of the process.
Preferably, the process-level real time value for judging the process whether be equal to the second pre-set threshold value the step of it
It is preceding also to include:
Judge whether the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value;
If the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value, terminate the process;
If the corresponding real-time guard counting how many times of the process are not equal to the 3rd pre-set threshold value, entering for the process is judged
Whether journey rank real time value is equal to the second pre-set threshold value;
When the process-level real time value of the process is not equal to the second pre-set threshold value, then the process of the process is improved
Rank, reduces the corresponding protection counting how many times of the process;
When the process-level real time value of the process is equal to the second pre-set threshold value, then terminate the process.
Preferably, it is described to replace with the step of reduce the process corresponding protection counting how many times:
When the process-level real time value of the process brings up to the second pre-set threshold value, the corresponding guarantor of the process is set
Shield counting how many times are the 3rd pre-set threshold value;
When the process-level real time value of the process does not bring up to the second pre-set threshold value, the process correspondence is reduced
Protection counting how many times.
Preferably, it is described judge process whether belong to protected process the step of before also include:
Preset the mapping relations of the protected process title and the protection counting how many times.
The present invention further also proposes a kind of device of Process Protection, including:
First judge module, for system when memory value be less than the first pre-set threshold value when, judge it is all choose it is to be terminated
Whether process belongs to protected process;
Second judge module, for when judging that the process belongs to protected process, judging the process of the process
Whether rank real time value is equal to the second pre-set threshold value;
Process-level improves module, and the second pre-set threshold value is not equal to for the process-level real time value when the process
When, improve the process-level of the process;
Process terminate module, for when the process-level real time value of the process is equal to the second pre-set threshold value, terminating
The process.
Preferably, the device of the Process Protection also includes:
3rd judge module:For judging whether the corresponding real-time guard counting how many times of the process are equal to the 3rd default valve
Value;
Protection counting how many times update module:For reducing the corresponding protection counting how many times of the process.
The process-level improves module and is additionally operable to be not equal to the 3rd when the corresponding real-time guard counting how many times of the process
During pre-set threshold value, the process-level of the process is improved,
The process terminate module is additionally operable to be equal to the 3rd default valve when the corresponding real-time guard counting how many times of the process
Value, terminates the process;
Preferably, the process terminate module is additionally operable to be equal to the 3rd when the corresponding real-time guard counting how many times of the process
During pre-set threshold value, terminate the process;
Second judge module is additionally operable to be preset when the corresponding real-time guard counting how many times of the process are not equal to the 3rd
During threshold values, judge whether the process-level real time value of the process is equal to the second pre-set threshold value;
The process-level improves module and is additionally operable to be preset when the process-level real time value of the process is not equal to second
During threshold values, the process-level of the process is improved;
The process terminate module is additionally operable to when the process-level real time value of the process is equal to the second pre-set threshold value
When, terminate the process.
Preferably, the protection counting how many times update module is additionally operable to be improved when the real-time process rating value of the process
During to the second pre-set threshold value, it is the 3rd pre-set threshold value to set the corresponding protection counting how many times of the process.
Preferably, the device of the Process Protection also includes:
Protection counting how many times presetting module, for presetting the protected process title with the protection counting how many times
Mapping relations.
The method of Process Protection proposed by the present invention, by improving the process-level of process, some are heavier to reach protection
Want the purpose of process.Because process-level is higher, process is just less susceptible to by Low memory killer memory managements mechanism institute
It is process to be terminated to choose.So, even if some important process is divided by android system for product processes
Grade is not high, and the process-level of important process is stepped up by this method, so as to reach the purpose of protection process.Meanwhile, this
Invention is provided with the higher limit that process-level is improved, it is ensured that the process of application program will not be disturbed system process, it is to avoid
Influence the normal operation of system process.In addition, the method for Process Protection proposed by the present invention does not interfere with existing system platform
The normal operation of upper other processes, and realize that simple, deployment is convenient.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the method first embodiment of Process Protection of the present invention;
Fig. 2 is the schematic flow sheet of the method second embodiment of Process Protection of the present invention;
Fig. 3 is the schematic flow sheet of the method 3rd embodiment of Process Protection of the present invention;
Fig. 4 is the schematic flow sheet of the method fourth embodiment of Process Protection of the present invention;
Fig. 5 is the schematic flow sheet of the embodiment of method the 5th of Process Protection of the present invention;
Fig. 6 is the structural representation of the device first embodiment of Process Protection of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
Below in conjunction with the accompanying drawings and specific embodiment is described further with regard to technical scheme.It should be appreciated that this
The described specific embodiment in place is only used to explain the present invention, is not intended to limit the present invention.
Reference picture 1, Fig. 1 is the schematic flow sheet of the method first embodiment of Process Protection of the present invention.
The present invention proposes a kind of method of Process Protection, comprises the following steps:
Step S10, when Installed System Memory value is less than the first pre-set threshold value, judges all to choose whether process to be terminated belongs to
In protected process;If choose treating that end process belongs to protected process, step S20 is performed, if described choosing waits to terminate
Process is not belonging to protected process, performs step S30.What deserves to be explained is, in this step, choose the process to be terminated can
For multiple or single, for the situation of multiple processes, judged one by one by the step.
The present invention illustrates that not limiting the inventive method is used for android system so that android system is main as an example,
The method of Process Protection such as proposed by the present invention can also be used for iOS, Windows operating system.
In android system, Low can choose a collection of program to enter when memory killer memory management mechanism comes into force
Journey, and directly a collection of program process that will choose is terminated.
For android system, process-level numerical value has 1-15,0 and less than 0 etc., and the process-level
Numerical value is lower, and rank is higher, and process-level numerical value is 0 or belongs to system process less than 0.These system process are by Android systems
Application system persistent attributes in system are protected, and the persistent attributes in android system are by system process
Protection, makes system process never to be terminated by Low memory killer memory management mechanism.Android process levels
Other numerical value is higher, and process-level is lower, and process is easier to be terminated by Low memory killer memory management mechanism.
And this method specifically can be set the initialized data base of a protected process, the title of some important processes is protected
In there is initialized data base, and judge whether process is the foundation of being protected process as follow-up.
In the present embodiment, by taking android system as an example, the first pre-set threshold value may be configured as total internal memory 10%, 20%,
30%th, 40% or 50%, i.e., when internal memory surplus less than total internal memory 10%, 20%, 30%, 40% or 50%, internal memory pipe of the invention
Reason mechanism comes into effect, and will be not protected process by the Low memory killer automatic latter ends of memory management mechanism, and press
Step S20 treatment is by protection process.
Contrasted with the title of preset data library storage by the process title to be terminated that will currently choose, judge to work as
Preceding chooses as whether process to be terminated is protected process.If current chooses as process to be terminated is not to be protected
Process when, directly terminate the program.
Step S20, judges whether the real-time process rating value of the process is equal to the second pre-set threshold value.
If the process-level real time value of the process is not equal to the second pre-set threshold value, step S40 is performed;If it is described enter
The process-level real time value of journey is equal to the second pre-set threshold value, then perform step S30;
Step S30, terminates the process.
Step S40, improves the process-level of the process;
In the present embodiment, the management of process mechanism according to android system, the second pre-set threshold value is preferably arranged to 1, certainly
Second pre-set threshold value may be alternatively provided as other values, and this is not limited by the present invention, such as may be configured as 2,3.Preferably simultaneously, often
Secondary to be selected when the process for terminating, then to improve the process-level one-level of process, i.e. process-level numerical value subtracts 1.
Because when the process-level numerical value of program process is equal to 1, if improving process-level again, now, entering
Journey rating value is 0 or less than 0 numerical value.At this moment, the process-level of the process-level of this certain applications program and system process
Identical, this Partial Process can occupy the internal memory of system process, so as to influence the normal operation of system process.Therefore, process level is worked as
When other numerical value is equal to 1, process-level is just no longer improved, terminate current process.Current chooses as process to be terminated is to be protected
During the process of shield, it is selected each time when the process for terminating, one-level process-level to be improved by this method, so as to reach guarantor
The purpose of shield process, and it is the second pre-set threshold value to improve the number of times upper limit of process-level.As long as i.e. process-level does not bring up to
During the second pre-set threshold value, process is often selected as process to be terminated just improves a process-level.Often improve a process level
Not, the process is less susceptible to be selected as to be terminated enters when next Low memory killer memory management mechanism comes into force
Journey, so as to reach the purpose strengthened step by step to the protection of process by improving constantly the rank of process.
The method of Process Protection proposed by the present invention, by improving the process-level of process, some are heavier to reach protection
Want the purpose of process.Because process-level is higher, process is just less susceptible to by Low memory killer memory managements mechanism institute
It is process to be terminated to choose.So, even if some important process is divided by android system for product processes
Grade is not high, and the process-level of important process is stepped up by this method, so as to reach the purpose of protection process.Meanwhile, this
Invention is provided with the higher limit that process-level is improved, it is ensured that the process of application program will not be disturbed system process, it is to avoid
Influence the normal operation of system process.In addition, the method for Process Protection proposed by the present invention does not interfere with existing system platform
The normal operation of upper other processes, and realize that simple, deployment is convenient.
Referring in particular to Fig. 2, the present invention proposes the second embodiment of the method for Process Protection, with above-mentioned implementation in the present embodiment
Unlike example, also included before step S40:
Step S50, judges whether the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value;
If the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value, step S30 is performed,
Step S30, terminates the process;
If the corresponding real-time guard counting how many times of the process are not equal to the 3rd pre-set threshold value, step S40 is performed, performed
Step S60 is performed after step S40,
Step S40, improves the process-level of the process;
Step S60, reduces the corresponding protection counting how many times of the process.
Specifically, in the present embodiment, a protection counting how many times are correspondingly arranged by each protected process, i.e., quite
It is defined in the number of times that process-level is improved.In the present embodiment, preferred procedure rank often improves one-level, corresponding protection time
Counting number just reduces 1, and the functional relation of other process-levels and protection counting how many times is may also set up certainly.In the present embodiment, with
3rd pre-set threshold value illustrates that is, when protecting counting how many times to reduce to 0, and corresponding real-time process-level is not as a example by being set to 0
During to 1, stop the raising to process-level.Certain 3rd pre-set threshold value may be alternatively provided as other values, and the present invention is not limited this
It is fixed.
Concrete example illustrates that the initial processes rating value for setting process A is 10, the initial processes rating value of process B
It is 10(Initial processes rank is the process-level that android system is defined automatically to process A, B).We set the guarantor of process A
Shield counting how many times are 3, and the protection counting how many times of process B are 2, by this method process A is brought up to process-level numerical value for 8 when
No longer improve, process B brings up to when process-level numerical value is 7 and no longer improves, i.e., the protection level to process B is better than process A.Separately
Outward, if when process C initial processes rating value be 10, and set protect counting how many times as 15 when, this method carries process C
Height to process-level numerical value be 1 when, although now corresponding real-time guard counting how many times are not decremented to 0, process-level
1 is had been increased to, this method influences whether that system is entered by the process of process C, the rank for otherwise improving constantly process is no longer improved
The normal operation of journey.Certainly, also the protection counting how many times of all protected processes can be set as same value, so as to avoid
The processes of different protection counting how many times are set for different processes.
The method of the Process Protection that the present embodiment is proposed, the number of times limitation that the rank of each process can be improved, so that
The method for making this Process Protection is more flexible.
Referring in particular to Fig. 3, the 3rd embodiment of the method for this Process Protection is proposed.
From unlike above-mentioned second embodiment, in the present embodiment, step S50 was performed the present embodiment before step S20,
That is the judged result of step S30 is when the process for terminating belongs to protected process, to perform step S50, if entering described in judging
The corresponding real-time guard counting how many times of journey are equal to the 3rd pre-set threshold value, then perform step S30,
When the process-level real time value of the process is not equal to the second pre-set threshold value, then step S40, and step are performed
S60;
When the process-level real time value of the process is equal to the second pre-set threshold value, then step S30 is performed.
In the present embodiment, will determine that the corresponding real-time guard counting how many times of process be placed in equal to the 3rd pre-set threshold value judge into
Before the process-level real time value of journey is equal to the second pre-set threshold value.
Referring in particular to Fig. 4, the fourth embodiment of the method for this Process Protection is proposed.
The present embodiment replaces with step S60 from unlike above-mentioned 3rd embodiment:
Step S61, when the process-level real time value of the process brings up to the second pre-set threshold value, sets the process
Corresponding protection counting how many times are the 3rd pre-set threshold value;
Step S62, when the process-level real time value of the process does not bring up to the second pre-set threshold value, is reduced described
The corresponding protection counting how many times of process.
From unlike 3rd embodiment, the present embodiment has been increased to the protection time of 1 process to process to the present embodiment
Counting number carries out returning 0 treatment, when next time, circulation carried out this process protection method, through the judgement of step S60, directly terminates current
Process, when choosing the process to be moved to end next time so as to avoid, will also carry out the judgement of step S20 to current process, enter
And save the expense of system.
The present invention proposes the 5th embodiment of the method for Process Protection.
Reference picture 5, Fig. 5 is the schematic flow sheet of the embodiment of method the 5th of Process Protection of the present invention.
The present embodiment also included from unlike above-mentioned fourth embodiment before step S10:
Step S70, presets the mapping relations of the protected process title and the protection counting how many times.
It is preferred that mapping relations are mapping table.Default process is only carried out once, hereafter, is entered in this mapping table
Result real-time update of the corresponding protection counting how many times of journey according to cycle criterion.
In other variant embodiments, step S70 also can be in the step of first embodiment, second embodiment and 3rd embodiment
Performed before rapid S10.
The method of this Process Protection can set different by setting corresponding protection counting how many times according to different processes
Protection counting how many times, to limit the corresponding number of times for improving process-level, so that setting neatly according to different processes is different
Protection class.
The method of specific this Process Protection realizes that step is as follows:
1), modification Linux process structure body task_struct, increase count integers section.Count represents application program and enters
The corresponding protection counting how many times of journey, and it is 0 to set the initial value of count.
2), such as the method for internal memory threshold values of low memory killer be set be similar to, setting our needs process to be protected
Package titles, title must be identical with the comm fields in task_struct, and pathname could be arranged to:
/sys/module/lowmemorykiller/parameters/comm.
/sys/module/lowmemorykiller/parameters/count
3), in Android ccf layers add configuration file, setting needs package titles to be protected and sets corresponding
Count, and write java codes and read the configuration file and arrive content write:
/ sys/module/lowmemorykiller/parameters/comm. //package titles
/ sys/module/lowmemorykiller/parameters/count //count numerical value
Package titles and count this 2 groups of contents are one-to-one.
4), modification lowmemorykiller.c files, add the reading mould of package titles and count this two groups of parameters
Block.
5), lowmem_shink methods in modification lowmemorykiller.c, increase package titles and count this two
The judgement protection mechanism of group parameter.
The present invention further also proposes a kind of device of Process Protection.
Reference picture 6, proposes the first embodiment of the device of this Process Protection.
In the present embodiment, the device of Process Protection includes:
First judge module 10, for when Installed System Memory value is less than the first pre-set threshold value, judging that all choosing waits to terminate
Process whether belong to protected process;
Second judge module 20, for when judging that the process belongs to protected process, judging entering for the process
Whether journey rank real time value is equal to the second pre-set threshold value;
Process-level improves module 30, and the second pre-set threshold value is not equal to for the process-level real time value when the process
When, improve the process-level of the process;
Process terminate module 40, for judging the non-process for belonging to protection of target process when first judge module 10,
And target end process when current memory value is less than the first pre-set threshold value;Or the process-level real time value of the process etc.
When the second pre-set threshold value, terminate the process.
The present invention is applied to be illustrated as a example by android system is main that the present invention is not limited this by the device of Process Protection
It is fixed.
Illustrated by taking android system as an example, the first pre-set threshold value is 10%, 20%, 30%, 40% or the 50% of total internal memory, that is, work as
When internal memory surplus is less than 10%, 20%, 30%, 40% or the 50% of total internal memory, Low memory killer memory management mechanism is opened
Beginning comes into force.In the prior art, Low memory killer memory management mechanism chooses a collection of program, and for directly choosing
EP (end of program) is criticized to fall.And this method specifically can be set the initialized data base of a protected process, by some important processes
Title is stored in initialized data base.The title and the name of preset data library storage of the process to be terminated by will currently choose
Title is contrasted, and judges current choosing as whether process to be terminated is protected process.Current chooses to wait to terminate
Process when being not protected process, directly terminate the program.
In the present embodiment, the management of process mechanism according to android system, the second pre-set threshold value is preferably arranged to 1, while
It is preferred that improving the process-level one-level of process every time.Because when the process-level numerical value of program process is equal to 1, if again
Secondary raising process-level, now, process-level numerical value is 0 or less than 0 numerical value.At this moment, the process level of this certain applications program
Process-level not with system process is identical, and this Partial Process can occupy the internal memory of system process, so as to influence system process
Normal operation.Therefore, when process-level numerical value is equal to 1, process-level is just no longer improved, terminates current process.Current choosing
In be wait the process for terminating be protected process when, the purpose of protection process is reached by the process-level for improving process.Carry
The upper limit of process-level high is no more than the second pre-set threshold value.
The device of Process Protection proposed by the present invention, the process-level that module 30 improves process is improved by process-level,
Reach the purpose for protecting some important processes.Because process-level numerical value is higher, process is just less susceptible to by Low
It is process to be terminated that memory killer memory management mechanism is chosen.So, even if some are important for product
The progress levels that process is divided by android system are not high, and the process-level of important process is stepped up by the present apparatus, so that
Reach the purpose of protection process.Meanwhile, the present invention is provided with the higher limit that process-level is improved, it is ensured that the process of application program is not
System process can be disturbed, it is to avoid the normal operation of influence system process.In addition, the dress of Process Protection proposed by the present invention
The normal operation for not interfering with other processes in existing system platform is put, and realizes that simple, deployment is convenient.
The present invention proposes the second embodiment of the device of Process Protection.
In the present embodiment, the device of Process Protection also includes:
3rd judge module:For judging whether the corresponding real-time guard counting how many times of the process are equal to the 3rd default valve
Value;
Protection counting how many times update module:For reducing the corresponding protection counting how many times of the process.
The process-level improves module and is additionally operable to be not equal to the 3rd when the corresponding real-time guard counting how many times of the process
During pre-set threshold value, the process-level of the process is improved,
The process terminate module 40 is additionally operable to be preset when the corresponding real-time guard counting how many times of the process are equal to the 3rd
Threshold values, terminates the process;
Specifically, in the present embodiment, a protection counting how many times are correspondingly arranged by each protected process, i.e., quite
It is defined in the number of times that process-level is improved.In the present embodiment, preferred procedure rank often improves one-level, corresponding protection time
Counting number just reduces 1, and the functional relation of other process-levels and protection counting how many times is may also set up certainly.In the present embodiment, with
3rd pre-set threshold value illustrates that is, when protecting counting how many times to reduce to 0, and corresponding real-time process-level is not as a example by being set to 0
During to 1, stop improving process-level.
Further, the process terminate module is additionally operable to be equal to the when the corresponding real-time guard counting how many times of the process
During three pre-set threshold values, terminate the process;
Second judge module is additionally operable to be preset when the corresponding real-time guard counting how many times of the process are not equal to the 3rd
During threshold values, judge whether the process-level real time value of the process is equal to the second pre-set threshold value;
The process-level improves module 30 and is additionally operable to when the process-level real time value of the process that to be not equal to second pre-
If during threshold values, improving the process-level of the process;
The process terminate module 40 is additionally operable to be equal to the second pre-set threshold value when the process-level real time value of the process
Constantly, the process is terminated.
Further, the protection counting how many times update module is additionally operable to be carried when the real-time process rating value of the process
When height is to the second pre-set threshold value, it is the 3rd pre-set threshold value to set the corresponding protection counting how many times of the process.
Further, the device of this Process Protection also includes:
Protection counting how many times presetting module, for presetting the protected process title with the protection counting how many times
Mapping relations.
The device of this Process Protection sets corresponding protection counting how many times by protecting counting how many times presetting module, for not
Same process sets different protection counting how many times, to limit the corresponding number of times for improving process-level, so that neatly according to not
With the different protection class of the setting of process.
The preferred embodiments of the present invention are the foregoing is only, the scope of the claims of the invention, every utilization is not thereby limited
The equivalent structure transformation that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other related technology necks
Domain, is included within the scope of the present invention.
Claims (6)
1. a kind of method of Process Protection, it is characterised in that comprise the following steps:
When Installed System Memory value be less than the first pre-set threshold value when, judge it is all choose process to be terminated whether belong to it is protected enter
Journey;
If the process belongs to protected process, judge whether the process-level real time value of the process is pre- equal to second
If threshold values;
If the process-level real time value of the process is not equal to the second pre-set threshold value, the corresponding real-time guarantor of the process is judged
Whether shield counting how many times are equal to the 3rd pre-set threshold value;
If the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value, terminate the process;
If the corresponding real-time guard counting how many times of the process are not equal to the 3rd pre-set threshold value, the process level of the process is improved
Not, the corresponding protection counting how many times of the process are reduced;
If the process-level real time value of the process is equal to the second pre-set threshold value, terminate the process;
Or comprise the following steps:
When Installed System Memory value be less than the first pre-set threshold value when, judge it is all choose process to be terminated whether belong to it is protected enter
Journey;
If the process belongs to protected process, judge whether the corresponding real-time guard counting how many times of the process are equal to the 3rd
Pre-set threshold value;
If the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value, terminate the process;
If the corresponding real-time guard counting how many times of the process are not equal to the 3rd pre-set threshold value, the process level of the process is judged
Whether other real time value is equal to the second pre-set threshold value;
When the process-level real time value of the process is not equal to the second pre-set threshold value, then the process level of the process is improved
Not, the corresponding protection counting how many times of the process are reduced;
When the process-level real time value of the process is equal to the second pre-set threshold value, then terminate the process.
2. the method for Process Protection as claimed in claim 1, it is characterised in that judge that the process is corresponding in real time when described
Protect whether counting how many times are in the process-level real time value for judging the process the step of being equal to three pre-set threshold values
It is no the step of be equal to the second pre-set threshold value before when, replace the step of the reduction process corresponding protection counting how many times
For:
When the process-level real time value of the process brings up to the second pre-set threshold value, the corresponding protection time of the process is set
Counting number is the 3rd pre-set threshold value;
When the process-level real time value of the process does not bring up to the second pre-set threshold value, the corresponding guarantor of the process is reduced
Shield counting how many times.
3. the method for Process Protection as claimed in claim 1, it is characterised in that described to judge whether process belongs to protected
Also include before the step of process:
Preset the mapping relations of the protected process title and the protection counting how many times.
4. a kind of device of Process Protection, it is characterised in that including:
First judge module, for when Installed System Memory value is less than the first pre-set threshold value, judging all to choose process to be terminated
Whether protected process is belonged to;
Second judge module, for when judging that the process belongs to protected process, judging the process-level of the process
Whether real time value is equal to the second pre-set threshold value;
Process-level improves module, for when the process-level real time value of the process is not equal to the second pre-set threshold value, carrying
The process-level of the process high;
Process terminate module, for when the process-level real time value of the process is equal to the second pre-set threshold value, terminating described
Process;
3rd judge module:For judging whether the corresponding real-time guard counting how many times of the process are equal to the 3rd pre-set threshold value;
Protection counting how many times update module:For reducing the corresponding protection counting how many times of the process;
The process-level improves module and is additionally operable to be preset when the corresponding real-time guard counting how many times of the process are not equal to the 3rd
During threshold values, the process-level of the process is improved,
The process terminate module is additionally operable to be equal to the 3rd pre-set threshold value, knot when the corresponding real-time guard counting how many times of the process
Shu Suoshu processes.
5. the device of Process Protection as claimed in claim 4, it is characterised in that
The protection counting how many times update module is additionally operable to be preset when the real-time process rating value of the process brings up to second
During threshold values, it is the 3rd pre-set threshold value to set the corresponding protection counting how many times of the process.
6. the device of Process Protection as claimed in claim 4, it is characterised in that also include:
Protection counting how many times presetting module, the mapping for presetting the protected process title and the protection counting how many times
Relation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310225981.5A CN103294542B (en) | 2013-06-07 | 2013-06-07 | The method and its device of Process Protection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310225981.5A CN103294542B (en) | 2013-06-07 | 2013-06-07 | The method and its device of Process Protection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103294542A CN103294542A (en) | 2013-09-11 |
CN103294542B true CN103294542B (en) | 2017-06-16 |
Family
ID=49095474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310225981.5A Active CN103294542B (en) | 2013-06-07 | 2013-06-07 | The method and its device of Process Protection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103294542B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103617129B (en) * | 2013-12-10 | 2017-10-24 | 中科创达软件股份有限公司 | A kind of method and device of internal memory processing |
CN105893066A (en) * | 2014-12-19 | 2016-08-24 | 上海涌杰信息科技有限公司 | Android system based mobile terminal recovery control method |
CN112269663A (en) * | 2020-11-16 | 2021-01-26 | 深圳创维-Rgb电子有限公司 | Android system resource management method and device, terminal device and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5925102A (en) * | 1997-03-28 | 1999-07-20 | International Business Machines Corporation | Managing processor resources in a multisystem environment in order to provide smooth real-time data streams, while enabling other types of applications to be processed concurrently |
CN1737761A (en) * | 2004-08-18 | 2006-02-22 | 中兴通讯股份有限公司 | Method for protecting assigned course private data area and stack area |
CN102073545A (en) * | 2011-02-28 | 2011-05-25 | 中国人民解放军国防科学技术大学 | Process scheduling method and device for preventing screen jam of user interface in operating system |
CN102736953A (en) * | 2011-04-08 | 2012-10-17 | 腾讯科技(深圳)有限公司 | System resource allocation method and equipment |
CN103092389A (en) * | 2011-11-04 | 2013-05-08 | 德尔福技术有限公司 | Touch screen device and method for achieving virtual mouse action |
-
2013
- 2013-06-07 CN CN201310225981.5A patent/CN103294542B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5925102A (en) * | 1997-03-28 | 1999-07-20 | International Business Machines Corporation | Managing processor resources in a multisystem environment in order to provide smooth real-time data streams, while enabling other types of applications to be processed concurrently |
CN1737761A (en) * | 2004-08-18 | 2006-02-22 | 中兴通讯股份有限公司 | Method for protecting assigned course private data area and stack area |
CN102073545A (en) * | 2011-02-28 | 2011-05-25 | 中国人民解放军国防科学技术大学 | Process scheduling method and device for preventing screen jam of user interface in operating system |
CN102736953A (en) * | 2011-04-08 | 2012-10-17 | 腾讯科技(深圳)有限公司 | System resource allocation method and equipment |
CN103092389A (en) * | 2011-11-04 | 2013-05-08 | 德尔福技术有限公司 | Touch screen device and method for achieving virtual mouse action |
Also Published As
Publication number | Publication date |
---|---|
CN103294542A (en) | 2013-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103294542B (en) | The method and its device of Process Protection | |
CN103984743B (en) | A kind of method and device of managing internal memory resource | |
CN103914322A (en) | Terminal acceleration method and terminal | |
CN105517081B (en) | Method for processing business, device and mobile terminal under a kind of hybrid network standard | |
CN103793140B (en) | A kind of application icon aligning method and mobile terminal | |
CN106502778A (en) | A kind of terminal and its process scheduling optimization method | |
CN104778031A (en) | Method and device for closing processes | |
CN109491788B (en) | Method and device for realizing load balance of virtualization platform | |
CN107870981A (en) | Electronic installation, the method and storage medium of tables of data filing processing | |
CN106407010A (en) | Internal memory management method and mobile terminal | |
CN105469633A (en) | Parking stall management method and device | |
CN106899857A (en) | Server load adjusting method, device and server | |
CN106528065B (en) | A kind of thread acquisition methods and equipment | |
CN103442267A (en) | User behavior information collection method and television | |
CN106020421A (en) | Application management method and terminal | |
CN111400016A (en) | Method and equipment for calling application program interface function | |
CN106569890A (en) | Application control method and terminal | |
CN103873439B (en) | The method and electronic equipment of a kind of networking | |
CN108509322A (en) | Avoid the method excessively paid a return visit, electronic device and computer readable storage medium | |
CN105744034A (en) | Screen brightness output method and device | |
CN106200866A (en) | A kind of application freezing method and mobile terminal | |
CN112818341B (en) | External device control method and device based on operating system filter layer drive | |
CN107807956A (en) | Electronic installation, data processing method and computer-readable recording medium | |
CN106126011A (en) | The resource occupation method for information display of a kind of application program and mobile terminal | |
CN107168800A (en) | A kind of memory allocation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |