CN107168791A - Terminal Memory Optimize Method, device and mobile terminal under bright screen state - Google Patents

Terminal Memory Optimize Method, device and mobile terminal under bright screen state Download PDF

Info

Publication number
CN107168791A
CN107168791A CN201710241427.4A CN201710241427A CN107168791A CN 107168791 A CN107168791 A CN 107168791A CN 201710241427 A CN201710241427 A CN 201710241427A CN 107168791 A CN107168791 A CN 107168791A
Authority
CN
China
Prior art keywords
application process
internal memory
terminal
screen state
bright screen
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
CN201710241427.4A
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 Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology 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 Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710241427.4A priority Critical patent/CN107168791A/en
Publication of CN107168791A publication Critical patent/CN107168791A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4818Priority circuits therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5022Workload threshold

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides terminal Memory Optimize Method, device and the mobile terminal under a kind of bright screen state.Methods described includes:When terminal is in bright screen state, newly-built internal memory monitors thread;The terminal in bright screen state is monitored using the newly-built internal memory monitoring thread, monitoring result is obtained;If the monitoring result, which is the terminal, has reached default internal memory optimization condition in bright screen state, internal memory Automatic Optimal thread has been adjusted;Using the internal memory Automatic Optimal thread in multiple application processes that the terminal in bright screen state is currently run, at least one application process to be optimized is selected to carry out internal memory optimization processing.The technical scheme realizes the purpose for carrying out internal memory optimization under bright screen state to terminal, the confinement problems that convential memory optimization method is only capable of just optimizing in the case where ceasing screen state or during memory consumption wretched insufficiency are solved, so as to improve using experience degree of the user to terminal.

Description

Terminal Memory Optimize Method, device and mobile terminal under bright screen state
Technical field
The present invention relates to communication technical field, terminal Memory Optimize Method, dress under more particularly to a kind of bright screen state Put and mobile terminal.
Background technology
With increasing for the application program run in terminal, the free memory of terminal is fewer and fewer, have impact on answering for operation With the fluency of program, accordingly, it would be desirable to carry out internal memory optimization to terminal.
In the prior art, most of internal memory optimizations are all to carry out internal memory optimization after terminal breath screen, and in bright screen then not Internal memory optimization processing is carried out, with interruption-free to user;Or in just being carried out only in the case of terminal memory consumption wretched insufficiency It is stored back to receipts.Obviously, above two internal memory optimization mode has some limitations, and can not all be directed to the actual motion feelings of terminal Condition takes corresponding internal memory optimization measure.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State terminal Memory Optimize Method, device and the mobile terminal under the bright screen state of problem.
According to one aspect of the present invention there is provided the terminal Memory Optimize Method under a kind of bright screen state, including:
When terminal is in bright screen state, newly-built internal memory monitors thread;
The terminal in bright screen state is monitored using the newly-built internal memory monitoring thread, monitoring knot is obtained Really;
If the monitoring result, which is the terminal, has reached default internal memory optimization condition in bright screen state, internal memory has been adjusted Automatic Optimal thread;
Entered using the internal memory Automatic Optimal thread in multiple applications that the terminal in bright screen state is currently run Cheng Zhong, selects at least one application process to be optimized to carry out internal memory optimization processing.
Alternatively, after at least one application process to be optimized of the selection carries out internal memory optimization processing, methods described is also Including:
Continue to monitor the free memory of the terminal in bright screen state;
When monitoring that the free memory is less than the first predetermined threshold value, the internal memory Automatic Optimal thread has been adjusted;
Internal memory is carried out to remaining application process currently run, not yet optimised using the internal memory Automatic Optimal thread Optimization processing.
Alternatively, at least one application process to be optimized of the selection carries out internal memory optimization processing, including:
Travel through the multiple application processes currently run;
Judge whether each application process of the traversal belongs to preset kind process, the preset kind process includes foreground At least one of in process, default white list process, default important process, upload/downloading process;
If not, it is determined that the application program is the application process to be optimized;
Internal memory optimization processing is carried out to the application process to be optimized.
Alternatively, at least one application process to be optimized of the selection carries out internal memory optimization processing, including:
Judge whether the application process belongs to the foreground process;
If it is determined that the application process is not belonging to the foreground process, then determine whether whether the application process belongs to The default white list process;
If it is determined that the application process is not belonging to the default white list process, then determine whether that the application process is It is no to belong to the default important process;
If it is determined that the application process is not belonging to the default important process, then whether the application process is determined whether Belong to the upload/downloading process;
If it is determined that the application process is not belonging to the upload/downloading process, it is determined that the application process is treated to be described Optimize application process.
Alternatively, it is described to select at least one after judging that the application process is not belonging to the preset kind process Application process to be optimized carries out internal memory optimization processing, in addition to:
Judge whether the application process is located in the state notifying column of the terminal;
If not, it is determined that the application program is the application process to be optimized.
Alternatively, the default white list process includes at least one in antivirus class process, receiving and dispatching mail class process;
The default important process includes audio/video process.
Alternatively, when the remaining application process includes multiple, using the internal memory Automatic Optimal thread to current fortune Capable, not yet optimised remaining application process carries out internal memory optimization processing, including:
The important ratio of each remaining application process is determined according to the process type of each remaining application process;
Priority ranking is carried out to the remaining application process according to the important ratio of each remaining application process, its In, the important ratio is higher, and its corresponding priority is higher;
Internal memory optimization processing is carried out to the remaining application process successively according to the order of the priority from low to high, directly It is not less than first predetermined threshold value to the free memory.
Alternatively, when the process type include foreground process, default white list process, preset important process, upload/under At be loaded into journey at least two, the process type according to each remaining application process determines each remaining application process Important ratio, including:
Obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weight Value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively Value, wherein, the weighted value is bigger, and its corresponding important ratio is higher.
Alternatively, the default internal memory optimization condition includes at least one of following:
EMS memory occupation reaches the second predetermined threshold value;
The duration of the bright screen state reaches the first preset duration;
The temperature of the terminal reaches preset temperature value;
Power consumption of the terminal in the second preset duration reaches default electricity consumption value.
According to another aspect of the present invention there is provided the terminal internal memory optimization device under a kind of bright screen state, including:
Newly-built module, suitable for when terminal is in bright screen state, newly-built internal memory monitors thread;
First monitoring modular, suitable for being entered using the newly-built internal memory monitoring thread to the terminal in bright screen state Row monitoring, obtains monitoring result;
First has adjusted module, if being that the terminal has reached that default internal memory is excellent in bright screen state suitable for the monitoring result Change condition, then adjusted internal memory Automatic Optimal thread;
First optimization module, suitable for current in the terminal in bright screen state using the internal memory Automatic Optimal thread In multiple application processes of operation, at least one application process to be optimized is selected to carry out internal memory optimization processing.
Alternatively, described device also includes:
Second monitoring modular, is suitably selected for after at least one application process progress internal memory optimization processing to be optimized, continues The free memory of the monitoring terminal in bright screen state;
Second has adjusted module, suitable for when monitoring that the free memory is less than the first predetermined threshold value, having adjusted the internal memory Automatic Optimal thread;
Second optimization module, suitable for being remained using the internal memory Automatic Optimal thread to currently running, not yet optimised Remaining application process carries out internal memory optimization processing.
Alternatively, first optimization module is further adapted for:
Travel through the multiple application processes currently run;
Judge whether each application process of the traversal belongs to preset kind process, the preset kind process includes foreground At least one of in process, default white list process, default important process, upload/downloading process;
If not, it is determined that the application program is the application process to be optimized;
Internal memory optimization processing is carried out to the application process to be optimized.
Alternatively, first optimization module is further adapted for:
Judge whether the application process belongs to the foreground process;
If it is determined that the application process is not belonging to the foreground process, then determine whether whether the application process belongs to The default white list process;
If it is determined that the application process is not belonging to the default white list process, then determine whether that the application process is It is no to belong to the default important process;
If it is determined that the application process is not belonging to the default important process, then whether the application process is determined whether Belong to the upload/downloading process;
If it is determined that the application process is not belonging to the upload/downloading process, it is determined that the application process is treated to be described Optimize application process.
Alternatively, first optimization module is further adapted for:
After judging that the application process is not belonging to the preset kind process, judge whether the application process is located at In the state notifying column of the terminal;
If not, it is determined that the application program is the application process to be optimized.
Alternatively, the default white list process includes at least one in antivirus class process, receiving and dispatching mail class process;
The default important process includes audio/video process.
Alternatively, second optimization module is further adapted for:
When the remaining application process includes multiple, determined according to the process type of each remaining application process described each surplus The important ratio of remaining application process;
Priority ranking is carried out to the remaining application process according to the important ratio of each remaining application process, its In, the important ratio is higher, and its corresponding priority is higher;
Internal memory optimization processing is carried out to the remaining application process successively according to the order of the priority from low to high, directly It is not less than first predetermined threshold value to the free memory.
Alternatively, second optimization module is further adapted for:
When the process type includes foreground process, default white list process, default important process, upload/downloading process In at least two when, obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weight Value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively Value, wherein, the weighted value is bigger, and its corresponding important ratio is higher.
Alternatively, the default internal memory optimization condition includes at least one of following:
EMS memory occupation reaches the second predetermined threshold value;
The duration of the bright screen state reaches the first preset duration;
The temperature of the terminal reaches preset temperature value;
Power consumption of the terminal in the second preset duration reaches default electricity consumption value.
According to another aspect of the present invention, there is provided a kind of mobile terminal, including processor and memory, the storage Device is used to store the program for performing the terminal Memory Optimize Method under above-mentioned bright screen state, and the processor is configurable for Perform the program stored in the memory.
Using technical scheme provided in an embodiment of the present invention, line can be monitored by newly-built internal memory when terminal is in bright screen state Journey, and the terminal in bright screen state is monitored using newly-built internal memory monitoring thread, also, when monitoring result is terminal When having reached default internal memory optimization condition in bright screen state, internal memory Automatic Optimal process can have been adjusted, and it is automatic using internal memory Optimization thread selects at least one application to be optimized to enter in multiple application processes that the terminal in bright screen state is currently run The processing of Cheng Jinhang internal memory optimizations.Therefore, the technical scheme realizes the purpose for carrying out internal memory optimization under bright screen state to terminal, solution The limitation that convential memory optimization method of having determined is only capable of just optimizing in the case where ceasing screen state or during memory consumption wretched insufficiency is asked Topic, so as to improve using experience degree of the user to terminal.
Further, during selection of technical scheme application process to be optimized, it can interpolate that whether each application process belongs to pre- At least one of if type process (i.e. in foreground process, default white list process, default important process, upload/downloading process), And application process to be optimized is only determined that it is when application process is not belonging to preset kind process, and then it is optimized, because This not only realize under bright screen state to terminal carry out internal memory optimization purpose, and can be according to user to terminal actual use Situation carries out intelligent decision, and optimization operation is optionally performed to certain applications process, and optimization behaviour is blindly performed so as to avoid As when cause user can not normal using terminal situation.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will be brighter Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is the schematic stream of the terminal Memory Optimize Method under a kind of bright screen state according to an embodiment of the invention Cheng Tu;
Fig. 2 is the schematic of the terminal Memory Optimize Method under a kind of bright screen state according to a specific embodiment of the invention Flow chart;
Fig. 3 is the indicative flowchart of step S205 in the terminal Memory Optimize Method under the bright screen state shown in Fig. 2;
Fig. 4 is the schematic frame of the terminal internal memory optimization device under a kind of bright screen state according to an embodiment of the invention Figure;
Fig. 5 is the schematic of the terminal internal memory optimization device under a kind of bright screen state in accordance with another embodiment of the present invention Block diagram;
Fig. 6 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 1 is the schematic stream of the terminal Memory Optimize Method under a kind of bright screen state according to an embodiment of the invention Cheng Tu.As shown in figure 1, this method may include following steps S101-S104 in general manner:
Step S101, when terminal is in bright screen state, newly-built internal memory monitors thread.
Step S102, is monitored to the terminal in bright screen state using newly-built internal memory monitoring thread, is monitored As a result.
Step S103, if monitoring result, which is terminal, has reached default internal memory optimization condition in bright screen state, has adjusted interior Deposit Automatic Optimal thread.
Step S104, is entered using internal memory Automatic Optimal thread in multiple applications that the terminal in bright screen state is currently run Cheng Zhong, selects at least one application process to be optimized to carry out internal memory optimization processing.
Using technical scheme provided in an embodiment of the present invention, line can be monitored by newly-built internal memory when terminal is in bright screen state Journey, and the terminal in bright screen state is monitored using newly-built internal memory monitoring thread, also, when monitoring result is terminal When having reached default internal memory optimization condition in bright screen state, internal memory Automatic Optimal process can have been adjusted, and it is automatic using internal memory Optimization thread selects at least one application to be optimized to enter in multiple application processes that the terminal in bright screen state is currently run The processing of Cheng Jinhang internal memory optimizations.Therefore, the technical scheme realizes the purpose for carrying out internal memory optimization under bright screen state to terminal, solution The limitation that convential memory optimization method of having determined is only capable of just optimizing in the case where ceasing screen state or during memory consumption wretched insufficiency is asked Topic, so as to improve using experience degree of the user to terminal.
In one embodiment, the default internal memory optimization condition described in step S103 may include at least one of following:It is interior Deposit occupancy and reach that predetermined threshold value, the duration of bright screen state reach that the first preset duration, the temperature of terminal reach preset temperature The power consumption of value, terminal in the second preset duration reaches default electricity consumption value.Wherein, the first preset duration and the second preset duration Can with it is identical, can also differ.For example, when the EMS memory occupation of terminal reaches predetermined threshold value 80%, having adjusted internal memory automatically excellent Change thread;Or, when the duration of the bright screen state of terminal reaches the first preset duration 1 hour, adjust internal memory automatically excellent Change thread;Or, when the temperature of terminal reaches 38 degree of preset temperature value, adjust internal memory Automatic Optimal thread;Or, work as terminal When power consumption in the second preset duration 10 minutes reaches default electricity consumption value 20%, internal memory Automatic Optimal thread has been adjusted;Etc..
In one embodiment, when performing step S104, the multiple applications that can be currently run in terminal as follows At least one application process to be optimized is selected to carry out internal memory optimization processing in process.
Step 1: multiple application processes that traversal is currently run.
Step 2: judging whether each application process of traversal belongs to preset kind process.
Wherein, preset kind process includes foreground process, default white list process, presets important process, uploads/be downloaded into At least one of in journey;If it is determined that application process is not belonging to preset kind process, it is determined that the application process is application to be optimized Process;Conversely, if it is determined that application process belongs to preset kind process, it is determined that the application process is not application process to be optimized. Default white list process includes at least one in antivirus class process, receiving and dispatching mail class process;Presetting important process includes sound/regard Frequency process.In addition, user can also be arranged as required to default white list process or preset important process.
Step 3: the application process that will not belong to preset kind process is defined as application process to be optimized, and to be optimized Application process carries out internal memory optimization processing.
In the embodiment, because terminal is when selecting application process to be optimized, by judging whether each application process belongs to Preset kind process (at least one i.e. in foreground process, default white list process, default important process, upload/downloading process ), and application process to be optimized is only determined that it is when application process is not belonging to preset kind process, and then it is carried out excellent Change.For example, when application process is to download the downloading process of file, to avoid optimization operation disruption user is currently lower from publishing papers Part, therefore internal memory optimization processing is not performed to the application process.For another example when application process belong to foreground process (i.e. before The process of platform operation) when, to avoid optimization operation from causing exiting for foreground process, therefore it is excellent not perform internal memory to the foreground process Change is handled.It follows that the embodiment not only realizes the purpose for carrying out internal memory optimization under bright screen state to terminal, and being capable of root Intelligent decision is carried out to the actual use situation of terminal according to user, optimization operation is optionally performed to certain applications process, from And avoid cause when blindly performing optimization operation user can not normal using terminal situation.
In one embodiment, at least one application to be optimized is selected to enter in multiple application processes that terminal is currently run Cheng Shi, can also select application process to be optimized further according to following manner:Enter first, it is determined that whether application process belongs to foreground Journey;If it is determined that application process is not belonging to foreground process, then determine whether whether application process belongs to default white list process;If Judge that application process is not belonging to default white list process, then determine whether whether application process belongs to default important process;If Judge that application process is not belonging to preset important process, then determine whether whether application process belongs to upload/downloading process;If sentencing Determine application process and be not belonging to upload/downloading process, it is determined that application process is application process to be optimized.
When first determining whether whether application process belongs to foreground process, if it is decided that application process belongs to foreground process, then Without performing following step again, now directly determine that application process is not belonging to application process to be optimized.Similarly, further In deterministic process, if it is decided that application process belongs to default white list process or presets important process, without performing down again The step of face, now directly determine that application process is not belonging to application process to be optimized.
The present embodiment is judged successively according to the significance level of different types of application process, certainly, except this Outside the judgement order that embodiment is provided, other also predeterminable judgment modes are answered to judge whether application process belongs to be optimized With process, the present embodiment is only to provide a kind of mode of preferred determination application process to be optimized.
In one embodiment, above-mentioned steps two are performed and (judge whether each application process of traversal belongs to preset kind Process) after, if it is decided that application process is not belonging to preset kind process, can also determine whether whether application process is located at eventually In the state notifying column at end, if application process is not located in the state notifying column of terminal, it is determined that the application program is to be optimized Application process, you can to carry out internal memory optimization processing to the application process;If conversely, application process is located at the state notifying of terminal In column, it is determined that the application process is not application process to be optimized, does not now carry out internal memory optimization processing to the application process.
For example, application process is short message process and in the state notifying column of terminal, now illustrates to have in terminal and newly connect The short message received, and user probably not yet checks the short message newly received.If carried out to short message process at internal memory optimization Reason, then can exit short message process, cause the SMS notification information for playing suggesting effect in state notifying column to disappear, so that user New short message can not be known whether by state notifying column.And the technical scheme provided by the present embodiment, only enter in application When journey is not located in the state notifying column of terminal, it is application process to be optimized just to think the application process, and just the application can be entered Cheng Jinhang internal memory optimizations processing, it is to avoid cause the feelings that certain applications process can not normally be run when blindly performing optimization operation Condition.
In one embodiment, perform after step S104, i.e., internal memory optimization is carried out to application process to be optimized and handle it Afterwards, it is further comprising the steps of:First, the free memory of the terminal in bright screen state is continued to monitor.Secondly, when monitoring residue When internal memory is less than predetermined threshold value, internal memory Automatic Optimal thread has been adjusted.Again, using internal memory Automatic Optimal thread to current operation , not yet optimised remaining application process carry out internal memory optimization processing.
In the present embodiment, terminal-pair application process to be optimized is carried out after internal memory optimization processing, can also continue to monitor bright screen The free memory of the terminal of state, and choose whether to have adjusted internal memory Automatic Optimal thread according to the number of free memory.Therefore, originally The technical scheme of embodiment enables the terminal under bright screen state to continue internally to deposit and optimize, to ensure under bright screen state Terminal remains that EMS memory occupation is relatively low, so as to extend the cruising time of terminal.In addition, adjusting internal memory Automatic Optimal line again Cheng Shi, selects remaining application process currently run and not yet optimised to carry out internal memory optimization processing, this executive mode Advantage is that other processes (application process i.e. to be optimized) in addition to these remaining application processes have been performed optimization operation, Too many memory consumption will not be taken in short time, without repeating internal memory optimization processing.Therefore, remaining application process is selected The larger application process of terminal priority treatment EMS memory occupation can be made by carrying out internal memory optimization processing, it is to avoid it is unnecessary that terminal is performed Work.
In one embodiment, can be in accordance with the following steps to multiple remaining applications when remaining application process includes multiple Process carries out internal memory optimization processing:
Step 1: determining the important ratio of each remaining application process according to the process type of each remaining application process.
Wherein, process type is included in foreground process, default white list process, default important process, upload/downloading process At least one of.
Specifically, when the process type of each remaining application process is identical, it is believed that the important ratio of each remaining application process Value is identical;When the process type of each remaining application process is different, i.e., the process type of each remaining application process include foreground process, When presetting at least two in white list process, default important process, upload/downloading process, it can determine as follows each The important ratio of remaining application process:First, obtain each process type and distinguish corresponding weighted value;Secondly, should according to each residue With the process type of process, determine that each remaining application process distinguishes corresponding weighted value;Again, according to each remaining application process point Not corresponding weighted value determines the important ratio of each remaining application process, wherein, weighted value is bigger, and its corresponding important ratio is got over It is high.
Step 2: priority ranking is carried out to remaining application process according to the important ratio of each remaining application process, wherein, Important ratio is higher, and its corresponding priority is higher.
Step 3: carrying out internal memory optimization processing to remaining application process successively according to the order of priority from low to high, directly It is not less than predetermined threshold value to free memory.
In the step, the priority of application process is lower, and illustrating the application process, significance level is lower for a user, should This preferentially carries out internal memory optimization processing to it.And significance level highest application process is then finally carried out at internal memory optimization to it Reason, in order to avoid the operation of influence important application process.
During internal memory optimization processing is carried out to remaining application process, still need to continue to monitor the free memory of terminal, And when the free memory for monitoring terminal is not less than predetermined threshold value, can stop carrying out at internal memory optimization remaining application process Reason.If remaining application process include it is N number of, terminal during to this, N number of remaining application process carries out internal memory optimization processing, The free memory of terminal is continued to monitor, after internal memory optimization processing is carried out to the individual remaining application processes of M (M < N), is monitored The free memory of terminal has been not less than predetermined threshold value, then can stop current internal memory optimization processing procedure, i.e., no longer to others (N-M) individual remaining application process carries out internal memory optimization processing.
For example, the corresponding weighted value of foreground process is 15%, it is 20% to preset the corresponding weighted value of white list process, is preset The corresponding weighted value of important process is 35%, and the corresponding weighted value of upload/downloading process is 30%.Assuming that remaining application process A Process type be foreground process, remaining application process B process type is default white list process, remaining application process C's Process type is uploading process, then the corresponding weighted values of remaining application process A are 15%, the corresponding weight of remaining application process B It is worth for 20%, the corresponding weighted value of remaining application process C is 30%.So, according to the size of weighted value, it may be determined that go out remaining answer With process C important ratio highest, next to that remaining application process B, and remaining application process A important ratio is minimum.Then, Priority ranking is carried out according to the important ratio of each remaining application process, ranking results are:Remaining application process C priority is most Height, next to that remaining application process B, and remaining application process A priority is minimum.According still further to the order of priority from low to high Internal memory optimization processing is carried out to remaining application process successively, i.e., internal memory optimization processing is carried out to remaining application process A first, secondly Internal memory optimization processing is carried out to remaining application process B, internal memory optimization processing finally is carried out to remaining application process C again.
Illustrate the terminal Memory Optimize Method under the bright screen state that the present invention is provided below by way of a specific embodiment.
Fig. 2 is the schematic of the terminal Memory Optimize Method under a kind of bright screen state according to a specific embodiment of the invention Flow chart.As shown in Fig. 2 this method comprises the following steps S201-S210:
Step S201, when terminal is in bright screen state, newly-built internal memory monitors thread.
Step S202, is monitored to the terminal in bright screen state using newly-built internal memory monitoring thread, is monitored As a result.
Step S203, judges whether terminal reaches default internal memory optimization condition in bright screen state according to monitoring result;If It is then to perform step S204;If it is not, then return to step S202, that is, continue to be monitored the terminal in bright screen state.
Wherein, default internal memory optimization condition may include at least one of following:EMS memory occupation reaches predetermined threshold value, bright screen state Duration reach that the first preset duration, the temperature of terminal reach the consumption of preset temperature value, terminal in the second preset duration Electricity reaches default electricity consumption value.Wherein, the first preset duration and the second preset duration can with it is identical, can also differ.
Step S204, has adjusted internal memory Automatic Optimal thread, and travel through the multiple application processes currently run.
For example, when the EMS memory occupation of terminal reaches predetermined threshold value 80%, having adjusted internal memory Automatic Optimal thread;Or, when When the duration of the bright screen state of terminal reaches the first preset duration 1 hour, internal memory Automatic Optimal thread has been adjusted;Or, when When the temperature of terminal reaches 38 degree of preset temperature value, internal memory Automatic Optimal thread has been adjusted;Or, when terminal is in the second preset duration When power consumption in 10 minutes reaches default electricity consumption value 20%, internal memory Automatic Optimal thread has been adjusted;Etc..
Step S205, judges whether each application process of traversal belongs to preset kind process;If it is not, then performing step S206;If so, then performing step S210.
Wherein, preset kind process includes foreground process, default white list process, presets important process, uploads/be downloaded into At least one of in journey.
Step S206, judges whether application process is located in the state notifying column of terminal;If it is not, then performing step S207; If so, then performing step S210.
Step S207, it is application process to be optimized to determine application process, and carries out internal memory optimization to application process to be optimized Processing.
Step S208, continues to monitor the free memory of the terminal in bright screen state, and judge whether the free memory is low In predetermined threshold value;If it is not, then performing step S209;If so, then continuing executing with the step, that is, continue to monitor in bright screen state The free memory of terminal.
Step S209, internal memory optimization processing is carried out to remaining application process currently run, not yet optimised, until surplus Remaining internal memory is not less than predetermined threshold value.
Step S210, it is not application process to be optimized to determine application process.
In the embodiment, step S205 can be also performed further as step S301-S306 as shown in Figure 3:
Step S301, judges whether application process belongs to foreground process;If it is not, then performing step S302;If so, then performing Step S306.
Step S302, judges whether application process belongs to default white list process;If it is not, then performing step S303;If so, Then perform step S306.
Step S303, judges whether application process belongs to default important process;If it is not, then performing step S304;If so, then Perform step S306.
Step S304, judges whether application process belongs to upload/downloading process;If it is not, then performing step S305;If so, Then perform step S306.
Step S305, it is application process to be optimized to determine application process.
Step S306, it is not application process to be optimized to determine application process.
By taking concrete scene as an example, when terminal is in bright screen state, monitor that terminal reaches default internal memory optimization condition (such as The EMS memory occupation of terminal reach predetermined threshold value 80%, the duration of the bright screen state of terminal reach the first preset duration 1 hour, The temperature of terminal reaches that the power consumption of 38 degree of preset temperature value or terminal in the second preset duration 10 minutes reaches default consumption Electric value 20% etc.), then start internal memory Automatic Optimal thread.Assuming that the application process currently run of terminal include application process a, b, C, d, e five, wherein, application process a is foreground process, and application process c is downloading process, therefore only application processes b, c, d Carry out internal memory optimization processing.The free memory of monitoring terminal is then proceeded to, when free memory is less than predetermined threshold value (such as 50%), Internal memory optimization thread is again started up, remaining application process (i.e. application process a and c) currently run, not yet optimised is entered Row internal memory optimization processing, until the free memory of terminal is less than predetermined threshold value 50%.
Thus specific embodiment is understood, the technical scheme can monitor line by newly-built internal memory when terminal is in bright screen state Journey, and the terminal in bright screen state is monitored using newly-built internal memory monitoring thread, also, when monitoring result is terminal When having reached default internal memory optimization condition in bright screen state, internal memory Automatic Optimal process can have been adjusted, and it is automatic using internal memory Optimization thread selects at least one application to be optimized to enter in multiple application processes that the terminal in bright screen state is currently run The processing of Cheng Jinhang internal memory optimizations.The purpose for carrying out internal memory optimization under bright screen state to terminal is realized, convential memory is solved excellent Change method is only capable of the confinement problems just optimized in the case where ceasing screen state or during memory consumption wretched insufficiency.Also, the technology During Scheme Choice application process to be optimized, it can interpolate that whether each application process belongs to preset kind process (i.e. foreground process, pre- At least one of if in white list process, default important process, upload/downloading process), and be only not belonging to preset in application process Type process and application process to be optimized is determined that it is when not being located in the state notifying column of terminal, and then it is optimized, Therefore the technical scheme can also carry out intelligent decision according to user to the actual use situation of terminal, optionally should to part Perform optimization operation with process, thus avoid cause when blindly performing optimization operation user can not normal using terminal feelings Condition.
Fig. 4 is the schematic frame of the terminal internal memory optimization device under a kind of bright screen state according to an embodiment of the invention Figure.As shown in figure 4, the device includes:
Newly-built module 410, suitable for when terminal is in bright screen state, newly-built internal memory monitors thread;
First monitoring modular 420, is coupled with newly-built module 410, suitable for using newly-built internal memory monitoring thread in The terminal of bright screen state is monitored, and obtains monitoring result;
First has adjusted module 430, is coupled with the first monitoring modular 420, if suitable for monitoring result be terminal in bright screen shape Default internal memory optimization condition has been reached during state, then has adjusted internal memory Automatic Optimal thread;
First optimization module 440, has adjusted module 430 to be coupled with first, suitable for being located using internal memory Automatic Optimal thread In multiple application processes that the terminal of bright screen state is currently run, at least one application process to be optimized is selected to carry out internal memory excellent Change is handled.
Alternatively, as shown in figure 5, said apparatus also includes:
Second monitoring modular 450, is coupled with the first optimization module 440, is suitably selected at least one application to be optimized and enters After the processing of Cheng Jinhang internal memory optimizations, the free memory of the terminal in bright screen state is continued to monitor;
Second has adjusted module 460, is coupled with the second monitoring modular 450, monitors that free memory is less than first suitable for working as During predetermined threshold value, internal memory Automatic Optimal thread has been adjusted;
Second optimization module 470, has adjusted module 460 to be coupled with second, suitable for utilizing internal memory Automatic Optimal thread to working as Preceding operation, not yet optimised remaining application process carries out internal memory optimization processing.
Alternatively, the first optimization module 440 is further adapted for:
Travel through the multiple application processes currently run;
Judge whether each application process of traversal belongs to preset kind process, preset kind process includes foreground process, pre- At least one of if in white list process, default important process, upload/downloading process;
If not, it is determined that application program is application process to be optimized;
Internal memory optimization processing is carried out to application process to be optimized.
Alternatively, the first optimization module 440 is further adapted for:
Judge whether application process belongs to foreground process;
If it is determined that application process is not belonging to foreground process, then determine whether whether application process belongs to default white list and enter Journey;
If it is determined that application process is not belonging to default white list process, then determine whether whether application process belongs to default weight Want process;
If it is determined that application process be not belonging to preset important process, then determine whether application process whether belong to upload/under It is loaded into journey;
If it is determined that application process is not belonging to upload/downloading process, it is determined that application process is application process to be optimized.
Alternatively, the first optimization module 440 is further adapted for:
After judging that application process is not belonging to preset kind process, judge application process whether be located at terminal state it is logical Know in column;
If not, it is determined that application program is application process to be optimized.
Alternatively, presetting white list process includes at least one in antivirus class process, receiving and dispatching mail class process;
Presetting important process includes audio/video process.
Alternatively, the second optimization module is further adapted for:
When remaining application process include it is multiple when, according to the process type of each remaining application process determine each residue apply into The important ratio of journey;
Priority ranking is carried out to remaining application process according to the important ratio of each remaining application process, wherein, important ratio Value is higher, and its corresponding priority is higher;
Internal memory optimization processing is carried out to remaining application process successively according to the order of priority from low to high, until in remaining Deposit and be not less than the first predetermined threshold value.
Alternatively, the second optimization module 470 is further adapted for:
When process type is included in foreground process, default white list process, default important process, upload/downloading process At at least two, obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weighted value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively, wherein, Weighted value is bigger, and its corresponding important ratio is higher.
Alternatively, internal memory optimization condition is preset including at least one of following:
EMS memory occupation reaches the second predetermined threshold value;
The duration of bright screen state reaches the first preset duration;
The temperature of terminal reaches preset temperature value;
Power consumption of the terminal in the second preset duration reaches default electricity consumption value.
Using device provided in an embodiment of the present invention, thread can be monitored by newly-built internal memory when terminal is in bright screen state, And the terminal in bright screen state is monitored using newly-built internal memory monitoring thread, also, when monitoring result is that terminal exists When default internal memory optimization condition has been reached during bright screen state, internal memory Automatic Optimal process can have been adjusted, and it is automatically excellent using internal memory Change thread and at least one application process to be optimized is selected in multiple application processes that the terminal in bright screen state is currently run Carry out internal memory optimization processing.Therefore, the technical scheme realizes the purpose for carrying out internal memory optimization under bright screen state to terminal, solves Convential memory optimization method is only capable of in the confinement problems just optimized under ceasing screen state or during memory consumption wretched insufficiency, So as to improve using experience degree of the user to terminal.
It should be understood that, the terminal internal memory optimization device under the bright screen state in Fig. 4 and Fig. 5 can For realizing the terminal internal memory optimization scheme under previously described bright screen state, detailed description therein should be with method part above Description is similar, cumbersome to avoid, and does not repeat separately herein.
The embodiment of the present invention additionally provides a kind of mobile terminal, as shown in fig. 6, for convenience of description, illustrate only and this The related part of inventive embodiments, particular technique details is not disclosed, refer to present invention method part.The movement is whole End can be to include mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, so that terminal is mobile phone as an example:
Fig. 6 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.Ginseng Fig. 6 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 610, memory 620, input block 630, display unit 640th, sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless-fidelity, Wi-Fi) module 670, processor 680, And the grade part of power supply 690.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 is not constituted to mobile phone Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 6:
RF circuits 610 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, handled to processor 680;In addition, being sent to base station by up data are designed.Generally, RF circuits 610 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 610 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 620 can be used for storage software program and module, and processor 680 is stored in memory 620 by operation Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 620 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses what is created according to mobile phone Data (such as voice data, phone directory etc.) etc..In addition, memory 620 can include high-speed random access memory, can be with Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.
Input block 630 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the relevant key signals input of function control.Specifically, input block 630 may include that contact panel 631 and other inputs are set Standby 632.Contact panel 631, also referred to as touch-screen, collecting touch operation of the user on or near it, (such as user uses The operation of any suitable object such as finger, stylus or annex on contact panel 631 or near contact panel 631), and root Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 631 may include touch detecting apparatus and touch Two parts of controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 680, and the order sent of reception processing device 680 and can be performed.Furthermore, it is possible to using electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 631.Except contact panel 631, input Unit 630 can also include other input equipments 632.Specifically, other input equipments 632 can include but is not limited to secondary or physical bond One or more in disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 640 can be used for the various of the information that is inputted by user of display or the information for being supplied to user and mobile phone Menu.Display unit 640 may include display panel 641, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 641.Further, contact panel 631 can cover display panel 641, when contact panel 631 is detected thereon or attached After near touch operation, processor 680 is sent to determine the type of touch event, with preprocessor 680 according to touch event Type corresponding visual output is provided on display panel 641.Although in figure 6, contact panel 631 and display panel 641 It is input and the input function that mobile phone is realized as two independent parts, but in some embodiments it is possible to by touch-control Panel 631 and the input that is integrated and realizing mobile phone of display panel 641 and output function.
Mobile phone may also include at least one sensor 650, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 641, proximity transducer can close display panel 641 when mobile phone is moved in one's ear And/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) acceleration Size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor of configuration, will not be repeated here.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 661, sound is converted to by loudspeaker 661 by road 660 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, by voicefrequency circuit 660 receive after turn It is changed to voice data, then after voice data output processor 680 is handled, through RF circuits 610 to be sent to such as another mobile phone, Or export voice data to memory 620 so as to further processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 670 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 6 is shown WiFi module 670, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 680 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform and be stored in software program and/or module in memory 620, and call and be stored in memory 620 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 680 can be wrapped Include one or more processing units;It is preferred that, processor 680 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone also includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 680 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 680 included by the terminal also has following functions:
When terminal is in bright screen state, newly-built internal memory monitors thread;
The terminal in bright screen state is monitored using the newly-built internal memory monitoring thread, monitoring knot is obtained Really;
If the monitoring result, which is the terminal, has reached default internal memory optimization condition in bright screen state, internal memory has been adjusted Automatic Optimal thread;
Entered using the internal memory Automatic Optimal thread in multiple applications that the terminal in bright screen state is currently run Cheng Zhong, selects at least one application process to be optimized to carry out internal memory optimization processing.
Alternatively, processor 680 also has following functions:
At least one application process to be optimized of the selection is carried out after internal memory optimization processing, is continued to monitor described in bright The free memory of the terminal of screen state;
When monitoring that the free memory is less than the first predetermined threshold value, the internal memory Automatic Optimal thread has been adjusted;
Internal memory is carried out to remaining application process currently run, not yet optimised using the internal memory Automatic Optimal thread Optimization processing.
Alternatively, processor 680 also has following functions:
Travel through the multiple application processes currently run;
Judge whether each application process of the traversal belongs to preset kind process, the preset kind process includes foreground At least one of in process, default white list process, default important process, upload/downloading process;
If not, it is determined that the application program is the application process to be optimized;
Internal memory optimization processing is carried out to the application process to be optimized.
Alternatively, processor 680 also has following functions:
Judge whether the application process belongs to the foreground process;
If it is determined that the application process is not belonging to the foreground process, then determine whether whether the application process belongs to The default white list process;
If it is determined that the application process is not belonging to the default white list process, then determine whether that the application process is It is no to belong to the default important process;
If it is determined that the application process is not belonging to the default important process, then whether the application process is determined whether Belong to the upload/downloading process;
If it is determined that the application process is not belonging to the upload/downloading process, it is determined that the application process is treated to be described Optimize application process.
Alternatively, processor 680 also has following functions:
After judging that the application process is not belonging to the preset kind process, judge whether the application process is located at In the state notifying column of the terminal;
If not, it is determined that the application program is the application process to be optimized.
Alternatively, the default white list process includes at least one in antivirus class process, receiving and dispatching mail class process;
The default important process includes audio/video process.
Alternatively, processor 680 also has following functions:
When the remaining application process includes multiple, determined according to the process type of each remaining application process described each surplus The important ratio of remaining application process;
Priority ranking is carried out to the remaining application process according to the important ratio of each remaining application process, its In, the important ratio is higher, and its corresponding priority is higher;
Internal memory optimization processing is carried out to the remaining application process successively according to the order of the priority from low to high, directly It is not less than first predetermined threshold value to the free memory.
Alternatively, processor 680 also has following functions:
When the process type includes foreground process, default white list process, default important process, upload/downloading process In at least two when, obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weight Value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively Value, wherein, the weighted value is bigger, and its corresponding important ratio is higher.
Alternatively, the default internal memory optimization condition includes at least one of following:
EMS memory occupation reaches the second predetermined threshold value;
The duration of the bright screen state reaches the first preset duration;
The temperature of the terminal reaches preset temperature value;
Power consumption of the terminal in the second preset duration reaches default electricity consumption value.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Mode it can use in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) realize that the terminal internal memory under bright screen state according to embodiments of the present invention is excellent Disguise some or all functions of some or all parts in putting.The present invention is also implemented as being used to perform institute here The some or all equipment or program of device of the method for description are (for example, computer program and computer program production Product).Such program for realizing the present invention can be stored on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and obtained, and either be provided or on carrier signal to appoint What other forms is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention It is determined that or deriving many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized It is set to and covers other all these variations or modifications.
The embodiments of the invention provide the terminal Memory Optimize Method under a kind of bright screen states of A1., including:
When terminal is in bright screen state, newly-built internal memory monitors thread;
The terminal in bright screen state is monitored using the newly-built internal memory monitoring thread, monitoring knot is obtained Really;
If the monitoring result, which is the terminal, has reached default internal memory optimization condition in bright screen state, internal memory has been adjusted Automatic Optimal thread;
Entered using the internal memory Automatic Optimal thread in multiple applications that the terminal in bright screen state is currently run Cheng Zhong, selects at least one application process to be optimized to carry out internal memory optimization processing.
A2. the method according to A1, wherein, at least one application process to be optimized of the selection is carried out at internal memory optimization After reason, methods described also includes:
Continue to monitor the free memory of the terminal in bright screen state;
When monitoring that the free memory is less than the first predetermined threshold value, the internal memory Automatic Optimal thread has been adjusted;
Internal memory is carried out to remaining application process currently run, not yet optimised using the internal memory Automatic Optimal thread Optimization processing.
A3. the method according to A1 or A2, wherein, it is excellent that at least one application process to be optimized of the selection carries out internal memory Change is handled, including:
Travel through the multiple application processes currently run;
Judge whether each application process of the traversal belongs to preset kind process, the preset kind process includes foreground At least one of in process, default white list process, default important process, upload/downloading process;
If not, it is determined that the application program is the application process to be optimized;
Internal memory optimization processing is carried out to the application process to be optimized.
A4. the method according to A3, wherein, at least one application process to be optimized of the selection is carried out at internal memory optimization Reason, including:
Judge whether the application process belongs to the foreground process;
If it is determined that the application process is not belonging to the foreground process, then determine whether whether the application process belongs to The default white list process;
If it is determined that the application process is not belonging to the default white list process, then determine whether that the application process is It is no to belong to the default important process;
If it is determined that the application process is not belonging to the default important process, then whether the application process is determined whether Belong to the upload/downloading process;
If it is determined that the application process is not belonging to the upload/downloading process, it is determined that the application process is treated to be described Optimize application process.
A5. the method according to A3 or A4, wherein, judging that the application process is not belonging to the preset kind process Afterwards, at least one application process to be optimized of the selection carries out internal memory optimization processing, in addition to:
Judge whether the application process is located in the state notifying column of the terminal;
If not, it is determined that the application program is the application process to be optimized.
A6. the method according to any one of A3-A5, wherein, the default white list process include antivirus class process, At least one of in receiving and dispatching mail class process;
The default important process includes audio/video process.
A7. the method according to any one of A3-A6, wherein, when the remaining application process includes multiple, utilize The internal memory Automatic Optimal thread carries out internal memory optimization processing, bag to remaining application process currently run, not yet optimised Include:
The important ratio of each remaining application process is determined according to the process type of each remaining application process;
Priority ranking is carried out to the remaining application process according to the important ratio of each remaining application process, its In, the important ratio is higher, and its corresponding priority is higher;
Internal memory optimization processing is carried out to the remaining application process successively according to the order of the priority from low to high, directly It is not less than first predetermined threshold value to the free memory.
A8. the method according to A7, wherein, include foreground process when the process type, default white list process, pre- If during at least two in important process, upload/downloading process, the process type according to each remaining application process determines institute The important ratio of each remaining application process is stated, including:
Obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weight Value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively Value, wherein, the weighted value is bigger, and its corresponding important ratio is higher.
A9. the method according to any one of A1-A8, wherein, the default internal memory optimization condition include it is following at least One:
EMS memory occupation reaches the second predetermined threshold value;
The duration of the bright screen state reaches the first preset duration;
The temperature of the terminal reaches preset temperature value;
Power consumption of the terminal in the second preset duration reaches default electricity consumption value.
The embodiment of the present invention additionally provides the terminal internal memory optimization device under a kind of bright screen states of B10., including:
Newly-built module, suitable for when terminal is in bright screen state, newly-built internal memory monitors thread;
First monitoring modular, suitable for being entered using the newly-built internal memory monitoring thread to the terminal in bright screen state Row monitoring, obtains monitoring result;
First has adjusted module, if being that the terminal has reached that default internal memory is excellent in bright screen state suitable for the monitoring result Change condition, then adjusted internal memory Automatic Optimal thread;
First optimization module, suitable for current in the terminal in bright screen state using the internal memory Automatic Optimal thread In multiple application processes of operation, at least one application process to be optimized is selected to carry out internal memory optimization processing.
B11. the device according to B10, wherein, described device also includes:
Second monitoring modular, is suitably selected for after at least one application process progress internal memory optimization processing to be optimized, continues The free memory of the monitoring terminal in bright screen state;
Second has adjusted module, suitable for when monitoring that the free memory is less than the first predetermined threshold value, having adjusted the internal memory Automatic Optimal thread;
Second optimization module, suitable for being remained using the internal memory Automatic Optimal thread to currently running, not yet optimised Remaining application process carries out internal memory optimization processing.
B12. the device according to B10 or B11, wherein, first optimization module is further adapted for:
Travel through the multiple application processes currently run;
Judge whether each application process of the traversal belongs to preset kind process, the preset kind process includes foreground At least one of in process, default white list process, default important process, upload/downloading process;
If not, it is determined that the application program is the application process to be optimized;
Internal memory optimization processing is carried out to the application process to be optimized.
B13. the device according to B12, wherein, first optimization module is further adapted for:
Judge whether the application process belongs to the foreground process;
If it is determined that the application process is not belonging to the foreground process, then determine whether whether the application process belongs to The default white list process;
If it is determined that the application process is not belonging to the default white list process, then determine whether that the application process is It is no to belong to the default important process;
If it is determined that the application process is not belonging to the default important process, then whether the application process is determined whether Belong to the upload/downloading process;
If it is determined that the application process is not belonging to the upload/downloading process, it is determined that the application process is treated to be described Optimize application process.
B14. the device according to B12 or B13, wherein, first optimization module is further adapted for:
After judging that the application process is not belonging to the preset kind process, judge whether the application process is located at In the state notifying column of the terminal;
If not, it is determined that the application program is the application process to be optimized.
B15. the device according to any one of B12-B14, wherein, the default white list process includes antivirus class and entered At least one of in journey, receiving and dispatching mail class process;
The default important process includes audio/video process.
B16. the device according to any one of B12-B15, wherein, second optimization module is further adapted for:
When the remaining application process includes multiple, determined according to the process type of each remaining application process described each surplus The important ratio of remaining application process;
Priority ranking is carried out to the remaining application process according to the important ratio of each remaining application process, its In, the important ratio is higher, and its corresponding priority is higher;
Internal memory optimization processing is carried out to the remaining application process successively according to the order of the priority from low to high, directly It is not less than first predetermined threshold value to the free memory.
B17. the device according to B16, wherein, second optimization module is further adapted for:
When the process type includes foreground process, default white list process, default important process, upload/downloading process In at least two when, obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weight Value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively Value, wherein, the weighted value is bigger, and its corresponding important ratio is higher.
B18. the device according to any one of B10-B17, wherein, the default internal memory optimization condition is included below extremely One item missing:
EMS memory occupation reaches the second predetermined threshold value;
The duration of the bright screen state reaches the first preset duration;
The temperature of the terminal reaches preset temperature value;
Power consumption of the terminal in the second preset duration reaches default electricity consumption value.
The embodiment of the invention also discloses a kind of mobile terminals of C19., including processor and memory:
The memory is used to store the program for performing any one of A1 to A9 method,
The processor is configurable for performing the program stored in the memory.

Claims (10)

1. the terminal Memory Optimize Method under a kind of bright screen state, including:
When terminal is in bright screen state, newly-built internal memory monitors thread;
The terminal in bright screen state is monitored using the newly-built internal memory monitoring thread, monitoring result is obtained;
If the monitoring result, which is the terminal, has reached default internal memory optimization condition in bright screen state, adjust internal memory automatic Optimize thread;
Using the internal memory Automatic Optimal thread in multiple application processes that the terminal in bright screen state is currently run, At least one application process to be optimized is selected to carry out internal memory optimization processing.
2. according to the method described in claim 1, wherein, described at least one application process to be optimized of selection carries out internal memory optimization After processing, methods described also includes:
Continue to monitor the free memory of the terminal in bright screen state;
When monitoring that the free memory is less than the first predetermined threshold value, the internal memory Automatic Optimal thread has been adjusted;
Internal memory optimization is carried out to remaining application process currently run, not yet optimised using the internal memory Automatic Optimal thread Processing.
3. method according to claim 1 or 2, wherein, at least one application process to be optimized of the selection carries out internal memory Optimization processing, including:
Travel through the multiple application processes currently run;
Judge whether each application process of the traversal belongs to preset kind process, the preset kind process is entered including foreground At least one of in journey, default white list process, default important process, upload/downloading process;
If not, it is determined that the application program is the application process to be optimized;
Internal memory optimization processing is carried out to the application process to be optimized.
4. method according to claim 3, wherein, at least one application process to be optimized of the selection carries out internal memory optimization Processing, including:
Judge whether the application process belongs to the foreground process;
If it is determined that the application process is not belonging to the foreground process, then determine whether whether the application process belongs to described Default white list process;
If it is determined that the application process is not belonging to the default white list process, then determine whether whether the application process belongs to Important process is preset in described;
If it is determined that the application process is not belonging to the default important process, then determine whether whether the application process belongs to Upload/the downloading process;
If it is determined that the application process is not belonging to the upload/downloading process, it is determined that the application process is described to be optimized Application process.
5. the method according to claim 3 or 4, wherein, it is not belonging to the preset kind in the judgement application process and enters After journey, at least one application process to be optimized of the selection carries out internal memory optimization processing, in addition to:
Judge whether the application process is located in the state notifying column of the terminal;
If not, it is determined that the application program is the application process to be optimized.
6. the method according to any one of claim 3-5, wherein, the default white list process includes antivirus class and entered At least one of in journey, receiving and dispatching mail class process;
The default important process includes audio/video process.
7. the method according to any one of claim 3-6, wherein, when the remaining application process includes multiple, profit Internal memory optimization processing is carried out to remaining application process currently run, not yet optimised with the internal memory Automatic Optimal thread, Including:
The important ratio of each remaining application process is determined according to the process type of each remaining application process;
Priority ranking is carried out to the remaining application process according to the important ratio of each remaining application process, wherein, institute State important ratio higher, its corresponding priority is higher;
Internal memory optimization processing is carried out to the remaining application process successively according to the order of the priority from low to high, until institute State free memory and be not less than first predetermined threshold value.
8. method according to claim 7, wherein, when the process type include foreground process, default white list process, It is described to be determined according to the process type of each remaining application process when presetting at least two in important process, upload/downloading process The important ratio of each remaining application process, including:
Obtain each process type and distinguish corresponding weighted value;
According to the process type of each remaining application process, determine that each remaining application process distinguishes corresponding weighted value;
According to each remaining application process, corresponding weighted value determines the important ratio of each remaining application process respectively, its In, the weighted value is bigger, and its corresponding important ratio is higher.
9. the terminal internal memory optimization device under a kind of bright screen state, including:
Newly-built module, suitable for when terminal is in bright screen state, newly-built internal memory monitors thread;
First monitoring modular, suitable for being supervised using the newly-built internal memory monitoring thread to the terminal in bright screen state Survey, obtain monitoring result;
First has adjusted module, if being that the terminal has reached default internal memory optimization bar in bright screen state suitable for the monitoring result Part, then adjusted internal memory Automatic Optimal thread;
First optimization module, suitable for currently being run in the terminal in bright screen state using the internal memory Automatic Optimal thread Multiple application processes in, select at least one application process to be optimized to carry out internal memory optimization processing.
10. a kind of mobile terminal, including processor and memory:
The memory is used for the program for storing any one of perform claim requirement 1 to 8 method,
The processor is configurable for performing the program stored in the memory.
CN201710241427.4A 2017-04-13 2017-04-13 Terminal Memory Optimize Method, device and mobile terminal under bright screen state Pending CN107168791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710241427.4A CN107168791A (en) 2017-04-13 2017-04-13 Terminal Memory Optimize Method, device and mobile terminal under bright screen state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710241427.4A CN107168791A (en) 2017-04-13 2017-04-13 Terminal Memory Optimize Method, device and mobile terminal under bright screen state

Publications (1)

Publication Number Publication Date
CN107168791A true CN107168791A (en) 2017-09-15

Family

ID=59849814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710241427.4A Pending CN107168791A (en) 2017-04-13 2017-04-13 Terminal Memory Optimize Method, device and mobile terminal under bright screen state

Country Status (1)

Country Link
CN (1) CN107168791A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967177A (en) * 2017-11-30 2018-04-27 努比亚技术有限公司 Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on kernel process
CN109254848A (en) * 2018-08-22 2019-01-22 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal releasing memory method, apparatus and storage device
CN109600409A (en) * 2017-09-30 2019-04-09 华为终端(东莞)有限公司 The method for managing resource and terminal of application
CN110162396A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 Method for recovering internal storage, device, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136629A1 (en) * 2007-05-03 2008-11-13 Mtekvision Co., Ltd. Image brightness controlling apparatus and method thereof
WO2014019471A1 (en) * 2012-07-30 2014-02-06 Tencent Technology (Shenzhen) Company Limited Method and device for performing cleaning process on portable electronic device
CN105701025A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Memory recovery method and device
CN105760229A (en) * 2016-02-15 2016-07-13 广东欧珀移动通信有限公司 Method and device for cleaning backstage running programs and mobile terminal
CN106445783A (en) * 2016-09-27 2017-02-22 北京金山安全软件有限公司 Method and device for detecting jamming of electronic equipment and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008136629A1 (en) * 2007-05-03 2008-11-13 Mtekvision Co., Ltd. Image brightness controlling apparatus and method thereof
WO2014019471A1 (en) * 2012-07-30 2014-02-06 Tencent Technology (Shenzhen) Company Limited Method and device for performing cleaning process on portable electronic device
CN105701025A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Memory recovery method and device
CN105760229A (en) * 2016-02-15 2016-07-13 广东欧珀移动通信有限公司 Method and device for cleaning backstage running programs and mobile terminal
CN106445783A (en) * 2016-09-27 2017-02-22 北京金山安全软件有限公司 Method and device for detecting jamming of electronic equipment and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600409A (en) * 2017-09-30 2019-04-09 华为终端(东莞)有限公司 The method for managing resource and terminal of application
CN107967177A (en) * 2017-11-30 2018-04-27 努比亚技术有限公司 Memory Optimize Method, mobile terminal and readable storage medium storing program for executing based on kernel process
CN107967177B (en) * 2017-11-30 2022-02-22 努比亚技术有限公司 Memory optimization method based on core process, mobile terminal and readable storage medium
CN110162396A (en) * 2018-02-14 2019-08-23 阿里巴巴集团控股有限公司 Method for recovering internal storage, device, system and storage medium
CN109254848A (en) * 2018-08-22 2019-01-22 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal releasing memory method, apparatus and storage device

Similar Documents

Publication Publication Date Title
CN105120065B (en) Message treatment method and device
CN107092520B (en) Recommended method, device, storage medium and the mobile terminal of application program
CN106598529A (en) Method and device for sub-screen display of mobile terminal, and mobile terminal
CN105739699B (en) A kind of control method and terminal device of message notifying
CN103489303B (en) A kind of remote control thereof and device
CN107731146A (en) Brightness adjusting method and related product
CN107168791A (en) Terminal Memory Optimize Method, device and mobile terminal under bright screen state
CN107153537B (en) Information display method and device based on multi-task interface and mobile terminal
CN104834529A (en) Method and device for optimizing performance of application
CN103561400B (en) Method for initiating communication, device thereof and mobile terminal
CN106850978A (en) A kind of application control method and relevant device
CN106775323A (en) Method, device and the mobile communication terminal of application program have been adjusted in communication process
CN106919428A (en) Clear up method, device and the mobile terminal of mobile terminal internal memory
CN106879055A (en) A kind of wireless network scan control method and relevant device
CN106373531A (en) Method for adjusting displaying brightness and electronic equipment
CN106845422A (en) A kind of fingerprint recognition module, fingerprint identification method and mobile terminal
CN106714275A (en) Wi-Fi connection method and mobile terminal
CN107357651A (en) Application acceleration method, apparatus and terminal
CN106980525A (en) Using startup method, device and mobile terminal
CN107333310A (en) Control method, device and the mobile terminal of reselecting network
CN107977261A (en) Method, equipment, mobile terminal and the computer-readable storage medium of limiting process
CN106844135A (en) The temperature monitoring method of mobile terminal, device and mobile terminal
CN107197083A (en) The method and mobile terminal of a kind of continuation of the journey duration for adjusting mobile terminal
CN106648460A (en) Step-counting data filtering method and intelligent terminal
CN104135396B (en) Show the method for network speed information, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20170915