CN107807857A - Method, equipment and the computer for clearing up running memory can storage mediums - Google Patents
Method, equipment and the computer for clearing up running memory can storage mediums Download PDFInfo
- Publication number
- CN107807857A CN107807857A CN201711227554.5A CN201711227554A CN107807857A CN 107807857 A CN107807857 A CN 107807857A CN 201711227554 A CN201711227554 A CN 201711227554A CN 107807857 A CN107807857 A CN 107807857A
- Authority
- CN
- China
- Prior art keywords
- application
- occupancy
- normalization
- running
- starts
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5016—Allocation 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5022—Mechanisms to release resources
Abstract
The invention discloses a kind of method for clearing up running memory, including:Obtain the backstage duration of the application of running background and take the occupancy of running memory;Judge whether backstage duration exceedes default backstage duration and judge whether occupancy exceedes default occupancy;When determining that backstage duration exceedes default backstage duration and occupancy is more than default occupancy, the application for determining running background is pending application;Pending application is closed, and discharges the running memory that pending application takes.Can storage medium the present invention also discloses a kind of equipment for clearing up running memory and computer.By the solution of the present invention, it can prevent from closing the background application that some users are not desired to close, improve the precision and degree of intelligence of cleaning running memory, can effectively improve Consumer's Experience.
Description
Technical field
The present invention relates to the intellectualized technology field of intelligent terminal, more particularly to a kind of method for clearing up running memory, set
Standby and computer can storage medium.
Background technology
With the development of science and technology, the function of mobile phone is also increasingly abundanter, feature-rich while, the usage experience of user
Also it is more and more important;When the running memory utilization rate of mobile phone is too high, Caton phenomenon occurs in mobile phone, in order to eliminate Caton phenomenon
Need to clear up running memory, the application of running background is closed to the running memory for carrying out release busy;Mobile phone is run at present
Internal memory method for cleaning is mainly automatic cleaning two ways after the manual cleaning of user or screen locking.
The manual cleaning of user usually user feels can just select to clear up internal memory manually when mobile phone interim card, such
Mode mobile phone can not accomplish intelligent cleaning running memory, make Consumer's Experience very poor;Although running memory is cleared up after screen locking automatically
Intelligent cleaning running memory can be accomplished, but also bring along some bad Consumer's Experiences, for example user is applied with some
See Online Video, it is interim suddenly busy by mobile phone screen locking, return to open mobile phone after a period of time, the front opening for discoverys this
The Online Video of application closes due to clearing up running memory automatically after screen locking, and user also needs to reenter application searching
The Online Video just closed;So, the mode of cleaning running memory may turn off some users and be not desired to automatically after screen locking
The application of closing, cause precision not high enough, reduce degree of intelligence.
The content of the invention
In view of this, the embodiment of the present invention it is expected that providing a kind of method, equipment and computer for clearing up running memory can deposit
Storage media, to realize the precision and degree of intelligence that improve cleaning running memory, improve Consumer's Experience.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
First aspect of the embodiment of the present invention provides a kind of method for clearing up running memory, and methods described includes:
Obtain the backstage duration of the application of running background and take the occupancy of running memory;
Judge whether the backstage duration exceedes default backstage duration and judge whether the occupancy exceedes default take
Rate;
Determine that the backstage duration exceedes the default backstage duration and the occupancy exceedes the default occupancy
When, the application for determining the running background is pending application;
The pending application is closed, and discharges the running memory that the pending application takes.
Alternatively, the application for determining the running background is pending application, including:
The number of starts of the application of the running background is obtained, the number of starts is to current after os starting
The number of starts untill moment;
The application for handling the running background takes the startup of the occupancy of running memory and the application of the running background
Number, the result after being handled;
Judge whether the result after the processing meets preparatory condition;
When determining that the result after the processing meets preparatory condition, determine that the application of the running background is waited to locate to be described
It ought to use.
Alternatively, the application of the processing running background takes the occupancy of running memory and the running background
The number of starts of application, the result after being handled, including:
The occupancy of the application occupancy running memory of the running background is handled using the mode of normalization, normalization is obtained and accounts for
With rate, the number of starts of the application of the running background is handled using the mode of normalization, and after the mode that normalizes being utilized to handle
The number of starts take absolute value with 1 difference, obtain normalizing the number of starts;
The first weight coefficient is distributed for the normalization occupancy, the second weight system is distributed for the normalization number of starts
Number, first weight coefficient are 1 and first weight coefficient and second weight with the second weight coefficient sum
Coefficient is both greater than 0 and is less than 1;
The synthetic weights weight values of the application of the running background are calculated, the synthetic weights weight values take for the normalization
The weighted value of rate and the normalization number of starts the weighted value and, the weighted value for normalizing occupancy is the normalizing
Change occupancy and the product of first weight coefficient, the weighted value for normalizing the number of starts starts secondary for the normalization
The product of number and second weight coefficient.
Alternatively, the preparatory condition includes:The synthetic weights weight values of the application of the running background are weighed more than preset comprehensive
The condition of weight values.
Alternatively, the normalization mode includes:Logarithmic function normalization mode, index normalization mode, triangle or anti-
Any one mode in trigonometric function normalization mode.
Second aspect of the embodiment of the present invention provides a kind of equipment for clearing up running memory, and the equipment includes:Interface, processing
Device, memory and communication bus;
The communication bus, for realizing the connection communication between the interface, the processor and the memory;
The processor, for performing the program of the cleaning running memory stored in the memory, to realize following walk
Suddenly:
Obtain the backstage duration of the application of running background and take the occupancy of running memory;
Judge whether the backstage duration exceedes default backstage duration and judge whether the occupancy exceedes default take
Rate;
Determine that the backstage duration exceedes the default backstage duration and the occupancy exceedes the default occupancy
When, the application for determining the running background is pending application;
The pending application is closed, and discharges the running memory that the pending application takes.
Alternatively, the processor, for performing the program of the cleaning running memory, to implement following steps:
The number of starts of the application of the running background is obtained, the number of starts is to current after os starting
The number of starts untill moment;
The application for handling the running background takes the startup of the occupancy of running memory and the application of the running background
Number, the result after being handled;
Judge whether the result after the processing meets preparatory condition;
When determining that the result after the processing meets preparatory condition, determine that the application of the running background is waited to locate to be described
It ought to use.
Alternatively, the processor, for performing the program of the cleaning running memory, to implement following steps:
The occupancy of the application occupancy running memory of the running background is handled using the mode of normalization, normalization is obtained and accounts for
With rate, the number of starts of the application of the running background is handled using the mode of normalization, and after the mode that normalizes being utilized to handle
The number of starts take absolute value with 1 difference, obtain normalizing the number of starts;
The first weight coefficient is distributed for the normalization occupancy, the second weight system is distributed for the normalization number of starts
Number, first weight coefficient are 1 and first weight coefficient and second weight with the second weight coefficient sum
Coefficient is both greater than 0 and is less than 1;
The synthetic weights weight values of the application of the running background are calculated, the synthetic weights weight values take for the normalization
The weighted value of rate and the normalization number of starts the weighted value and, the weighted value for normalizing occupancy is the normalizing
Change occupancy and the product of first weight coefficient, the weighted value for normalizing the number of starts starts secondary for the normalization
The product of number and second weight coefficient.
Alternatively, the preparatory condition includes:The synthetic weights weight values of the application of the running background are weighed more than preset comprehensive
The condition of weight values;
The normalization mode includes:Logarithmic function normalization mode, index normalization mode, triangle or antitrigonometric function
Any one mode in normalization mode.
The third aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable recording medium
It is stored with one or more program, one or more of programs can be by one or more computing device, to realize
The step of method of cleaning running memory as described above.
It is provided by the invention cleaning running memory method, equipment and computer can storage medium, pass through obtain backstage transport
The backstage duration of capable application and the occupancy for taking running memory;Judge backstage duration whether exceed default backstage duration and
Judge whether occupancy exceedes default occupancy;Determining that backstage duration exceedes default backstage duration and occupancy exceedes in advance
If during occupancy, the application for determining running background is pending application;Pending application is closed, and discharges pending application and takes
Running memory;Comparison for adding backstage duration and occupancy in the application of running background, when will exceed default backstage
The background application of long and default occupancy is defined as needing application to be processed, and this makes it possible to prevent that closing some users is not desired to close
The background application closed, the precision and degree of intelligence of cleaning running memory are improved, can effectively improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for an optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the communications network system structural representation that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is the flow chart of the embodiment of the method one of present invention cleaning running memory;
Fig. 4 is the flow chart of the embodiment of the method two of present invention cleaning running memory;
Fig. 5 is the schematic diagram one of the method scene embodiment of present invention cleaning running memory;
Fig. 6 is the schematic diagram two of the method scene embodiment of present invention cleaning running memory;
Fig. 7 is the schematic diagram three of the method scene embodiment of present invention cleaning running memory;
Fig. 8 is the structural representation of the device embodiment of present invention cleaning running memory;
Fig. 9 is the structural representation of the apparatus embodiments of present invention cleaning running memory.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes.
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, Fig. 1 is the hardware configuration signal for an optional mobile terminal for realizing each embodiment of the present invention
Figure, the mobile terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output
Unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface
The parts such as unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that show in Fig. 1
The mobile terminal structure gone out does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less portions
Part, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 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 GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Show referring to Fig. 2, Fig. 2 is the communications network system structure that mobile terminal provided in an embodiment of the present invention can operate
It is intended to, the communications network system is the LTE system of universal mobile communications technology, and the LTE system includes communicating the UE of connection successively
(User Equipment, user equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access
Network, evolved UMTS Terrestrial radio access network) 202, EPC (Evolved Packet Core, evolved block core
Net) 203 and operator IP operation 204.
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 is with can providing UE201 IP
Location is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
If the terminal of the cleaning running memory described in the embodiment of the present invention has operating system, the operating system can be with
For UNIX, Linux, Windows, Mac OS X, Android (Android), Windows Phone etc. they at least one of
Operating system.
Application software (Application, APP) is the third party application of intelligent terminal, and user can be by various
The application software of various kinds is handled official business, is entertained, obtains information etc., and its form includes such as ipa, pxl, deb, apk lattice
Formula.
Fig. 3 is the flow chart of the embodiment of the method one of present invention cleaning running memory, as shown in figure 3, the embodiment of the present invention
The method of the cleaning running memory of offer can be applied in the terminal (hereinafter referred to as terminal) of cleaning running memory, this method bag
Include following steps:
Step 301, the backstage duration of application and the occupancy of occupancy running memory for obtaining running background.
The application that terminal obtains the backstage duration and the running background of the application of running background takes accounting for for running memory
With rate;Wherein, it is a length of during the backstage of the application of running background to be continued until current time after the os starting of terminal
Period in the time span applied in running background that detects.
For example, a length of 60000 seconds during the backstage of the application for the running background that terminal is got, the application of running background takes
The occupancy of running memory is 10%.
Step 302, judge whether backstage duration exceedes default backstage duration and judge whether occupancy exceedes default take
Rate.
Terminal get apply running background backstage duration and take running memory occupancy after, judge
Whether backstage duration exceedes default backstage duration and judges whether occupancy exceedes default occupancy, when determining backstage
It is long to exceed not less than default backstage duration, and/or occupancy when presetting occupancy (as long as having one in backstage duration and occupancy
It is individual without departing from it is each it is self-corresponding judgement object when), perform step 303;Determine backstage duration exceed default backstage duration and
When occupancy exceedes default occupancy, step 304 is performed.
Need exist for illustrating, the default backstage duration and default occupancy in the embodiment of the present invention can be according to users
Or the production firm of terminal is voluntarily set, set according to actual conditions, be not any limitation as herein.
Step 303, terminate processing task.
Terminal terminates currently processed task, is performed according to normal processing flow of task.
Step 304, the application for determining running background are pending application.
Terminal thinks to need the application to running background to handle, so can be defined as treating by the application of the running background
Processing application.
Explanation is needed exist for, the pending application that terminal is determined is only not necessarily one, it is also possible to is two
Or it is multiple, as long as when the backstage duration and occupancy of the application of running background meet the Rule of judgment described in step 302,
The application for all running backgrounds for meeting Rule of judgment is defined as pending application.
Step 305, pending application is closed, and discharge the running memory that pending application takes.
Terminal closes the pending application determined in step 304, and discharges the running memory that pending application takes,
Reach the purpose of cleaning terminal operating internal memory.
The method of cleaning running memory provided in an embodiment of the present invention, the backstage duration of the application by obtaining running background
And take the occupancy of running memory;Judge whether backstage duration exceedes default backstage duration and judge whether occupancy exceedes
Default occupancy;When determining that backstage duration exceedes default backstage duration and occupancy is more than default occupancy, it is determined that backstage
The application of operation is pending application;Pending application is closed, and discharges the running memory that pending application takes;For rear
The application of platform operation adds the comparison of backstage duration and occupancy, by more than the backstage of default backstage duration and default occupancy
Using being defined as needing application to be processed, this makes it possible to prevent from closing the background application that some users are not desired to close, improve
The precision and degree of intelligence of running memory are cleared up, can effectively improve Consumer's Experience.
It is further to illustrate on the basis of above-described embodiment in order to more embody the purpose of the present invention.
Embodiment two
Fig. 4 is the flow chart of the embodiment of the method two of present invention cleaning running memory, as shown in figure 4, the embodiment of the present invention
The method of the cleaning running memory of offer is applied on smart mobile phone, and this method may include steps of:
Step 401, set running background application white list.
Smart mobile phone provides the user the white list list of the application of a running background, and user is according to be actually needed will be rear
Which of the white list list of application of platform operation running background is cleared up using needs, the application of which running background
It need not be cleared up, final smart mobile phone generates the white list of the application of a running background, in the application of running background
Application in white list is not influenceed by cleaning;By setting white list, cleaning processing, energy will not be carried out to the application in white list
Enough further precisions for improving cleaning running memory.
Step 402, judge running background application whether be running background application white list in application.
Smart mobile phone judge running background application whether be running background application white list in application, it is determined that
When the application for going out running background is the application in the white list of the application of running background, step 403 is performed;Determining to transport from the background
When capable application is not the application in the white list of the application of running background, step 404 is performed.
Step 403, terminate processing task.
Smart mobile phone terminates currently processed task, is performed according to normal processing flow of task.
Step 404, the backstage duration of application and the occupancy of occupancy running memory for obtaining running background.
The application that smart mobile phone obtains the backstage duration and the running background of the application of running background takes running memory
Occupancy;Wherein, it is a length of during the backstage of the application of running background to be continued until after the os starting of smart mobile phone
What is detected in the period at current time applies the time span in running background.
Step 405, judge whether backstage duration exceedes default backstage duration and judge whether occupancy exceedes default take
Rate.
Smart mobile phone get apply running background backstage duration and take running memory occupancy after,
Judge whether backstage duration exceedes default backstage duration and judge whether occupancy exceedes default occupancy, after determining
(as long as in backstage duration and occupancy when platform duration exceedes default occupancy not less than default backstage duration, and/or occupancy
When having one without departing from each self-corresponding judgement object), perform step 406;When determining that backstage duration exceedes default backstage
When long and occupancy exceedes default occupancy, step 407 is performed.
Need exist for illustrating, the default backstage duration and default occupancy in the embodiment of the present invention can be according to users
Or the production firm of terminal is voluntarily set, set according to actual conditions, be not any limitation as herein.
Step 406, terminate processing task.
Smart mobile phone terminates currently processed task, is performed according to normal processing flow of task.
Step 407, obtain running background application the number of starts.
Smart mobile phone obtain running background application the number of starts, the number of starts be after os starting to work as
The number of starts untill the preceding moment.
The application of step 408, processing running background takes the startup of the occupancy of running memory and the application of running background
Number, the result after being handled.
Smart mobile phone takes the startup of the occupancy of running memory and the application of running background for the application of running background
Number is normalized, and specific processing mode is as follows:
First, smart mobile phone handles the occupancy of the application occupancy running memory of running background using the mode that normalizes, and obtains
To normalization occupancy, the number of starts of the application of running background is handled using the mode of normalization, and will utilize and normalize mode
The number of starts after processing takes the absolute value with 1 difference, obtains normalizing the number of starts.
Secondly, smart mobile phone distributes the first weight coefficient for normalization occupancy, for normalization number of starts distribution second
Weight coefficient, the first weight coefficient and the second weight coefficient sum be 1 and first weight coefficient be both greater than with the second weight coefficient
0 is less than 1;Explanation is needed exist for, specific first weight coefficient and the second weight coefficient can be according to the actual need of user
Ask and voluntarily set, for example, user for running memory occupancy it is heavier regard, then the first weight coefficient can be set than second
Weight coefficient is big, and user regards for the number of starts is heavier, then the second weight coefficient can be set bigger than the first weight coefficient.
Finally, the synthetic weights weight values of the application of running background are calculated in smart mobile phone, wherein, synthetic weights weight values are normalizing
Change the weighted value of occupancy and the normalization number of starts weighted value and, the weighted value for normalizing occupancy is normalization occupancy
Rate and the product of the first weight coefficient, the weighted value for normalizing the number of starts are the normalization number of starts and the second weight coefficient
Product.
In embodiments of the present invention, normalization mode includes but is not limited to:Logarithmic function normalization mode, index normalization
Any one mode in mode, triangle or antitrigonometric function normalization mode etc..
Step 409, judge whether the result after processing meets preparatory condition.
Smart mobile phone can judge the application of the running background after the synthetic weights weight values of the application of running background are obtained
Whether synthetic weights weight values meet preparatory condition, wherein, preparatory condition includes but is not limited to:The comprehensive weight of the application of running background
Condition of the value more than preset comprehensive weighted value;Preset comprehensive weighted value can be configured according to the actual demand of user, herein
It is not any limitation as.
When the result after determining processing is unsatisfactory for preparatory condition, step 410 is performed;Result after processing is determined
When meeting preparatory condition, step 411 is performed.
By the judgement and comparison of the synthetic weights weight values for increasing the application to running background, contrast dimension is added, can
The further precision for improving cleaning running memory, reduce the possibility of maloperation generation.
Step 410, terminate processing task.
Smart mobile phone terminates currently processed task, is performed according to normal processing flow of task.
Step 411, the application for determining running background are pending application.
Smart mobile phone is thought to need the application to running background to handle, so can determine the application of the running background
For pending application.
Explanation is needed exist for, smart mobile phone determines that pending application is only not necessarily one, it is also possible to is two
Individual or multiple, in the case of two or more, its realization principle is identical with the case of one, therefore is not gone to live in the household of one's in-laws on getting married herein
State.
Step 412, pending application is closed, and discharge the running memory that pending application takes.
Smart mobile phone closes the pending application determined in step 411, and discharges the operation that pending application takes
Internal memory, reach the purpose of cleaning smart mobile phone running memory.
The method of cleaning running memory provided in an embodiment of the present invention, the white list of the application by setting running background;
Judge running background application whether be running background application white list in application;Determining the application of running background
Be not the application of running background white list in application when, obtain the application of running background backstage duration and take operation in
The occupancy deposited;Judge whether backstage duration exceedes default backstage duration and judge whether occupancy exceedes default occupancy;
When determining that backstage duration exceedes default backstage duration and occupancy is more than default occupancy, the application of running background is obtained
The number of starts;The application for handling running background takes the occupancy of running memory and the number of starts of the application of running background, obtains
Result after to processing;Judge whether the result after processing meets preparatory condition;Result after processing is determined meets default
During condition, the application for determining running background is pending application;Pending application is closed, and discharges the fortune that pending application takes
Row internal memory;Comparison for adding backstage duration and occupancy in the application of running background, will exceed default backstage duration and
The number of starts of the background application of default occupancy is handled, and the result after handle, result satisfaction after treatment
During preparatory condition, the application of running background is determined to need application to be processed, this makes it possible to prevent that closing some users is not desired to
The background application of closing, the precision and degree of intelligence of cleaning running memory are improved, can effectively improve Consumer's Experience.
In order to more embody the purpose of the present invention, on the basis of above-described embodiment two, further implemented with scene
Example illustrates.
Fig. 5 is the schematic diagram one of the method scene embodiment of present invention cleaning running memory, as shown in figure 5, in intelligent hand
The backstage of machine, there are 4 to apply in running background, they respectively be using A, using B, using C and using D.
User set running background application white list in include using D, do not include using A, using B and should
With C, therefore smart mobile phone will apply D to exclude when carrying out cleaning running memory, only to application A, using B and application C at
Reason.
Fig. 6 is the schematic diagram two of the method scene embodiment of present invention cleaning running memory, as shown in fig. 6, smart mobile phone
Obtain using A, using B and each self-corresponding backstage durations of application C and the occupancy for taking running memory, the content got point
It is not:Using A backstage when a length of 5000 seconds, take running memory occupancy be 12%, using B backstage when a length of 7000
Second, take running memory occupancy be 18%, using C backstage when a length of 8000 seconds, take running memory occupancy be
20%.
Wherein, a length of 4000 seconds when presetting backstage, occupancy is preset as 8%, it is seen then that using A, using B and using after C
Platform duration and occupancy are beyond default backstage duration and default occupancy, therefore, smart mobile phone can to application A, using B and should
Continue subsequent treatment with C.
Fig. 7 is the schematic diagram three of the method scene embodiment of present invention cleaning running memory, as shown in fig. 7, smart mobile phone
Continue to obtain using A, the number of starts using B and application C, the number of starts using A got is 5 times, and what is got should
It it is 15 times with the B number of starts, the number of starts using C got is 30 times.
First, smart mobile phone is normalized to application A, using B and application C occupancy, is each corresponded to
Normalization occupancy;Specifically, by the occupancy of each self-application divided by apply A, using B and the sum of application C occupancy, it is right
In using A:12%/(12%+18%+20%)=0.24, for using B:18%/(12%+18%+20%)=0.36, it is right
In using C:20%/(12%+18%+20%)=0.4;Meanwhile smart mobile phone is to application A, the startup time using B and application C
Number is normalized, and obtains each self-corresponding normalization number of starts;Specifically, by the number of starts of each self-application divided by
Using A, the sum using B and the number of starts for applying C, then the absolute value with 1 difference is taken, for using A:∣1-(5/(5+15+
30) ∣=0.9, for using B:∣ 1- (15/ (5+15+30) ∣=0.7, for using C:∣ 1- (30/ (5+15+30) ∣=0.4.
Secondly, smart mobile phone be using A, using B and application C normalization occupancy distribute the first weight coefficient be 0.6,
It is 0.4 for application A, using the B and application C normalization number of starts the second weight coefficient of distribution.
Then, smart mobile phone is calculated using A, using B and using each self-corresponding neutralization weighted values of C, wherein, it is comprehensive
Weighted value for normalization occupancy weighted value and the normalization number of starts weighted value and, normalize the weighted value of occupancy
For the product of normalization occupancy and the first weight coefficient, the weighted value of the number of starts is normalized as the normalization number of starts and the
The product of two weight coefficients;Specifically, it is for application A synthetic weights weight values:(0.24*0.6)+(0.9*0.4)=0.504,
For being using B synthetic weights weight values:(0.36*0.6)+(0.7*0.4)=0.496, the synthetic weights weight values for application C are:
(0.4*0.6)+(0.4*0.4)=0.4.
Finally, preset comprehensive weighted value is 0.45, and smart mobile phone is by application A of the synthetic weights weight values more than 0.45 and using B
It is defined as pending application, pending application is closed and discharges the running memory of pending application occupancy.
Embodiment three
Fig. 8 is the structural representation of the device embodiment of present invention cleaning running memory, as shown in figure 8, the present invention is implemented
The device 08 for the cleaning running memory that example provides includes:
Acquisition module 81, for the backstage duration of application and the occupancy of occupancy running memory for obtaining running background;
Judge module 82, for judging whether the backstage duration exceedes default backstage duration and judge the occupancy
Whether default occupancy is exceeded;
Determining module 83, for the judge module 82 determine the backstage duration exceed the default backstage duration,
And the occupancy, when exceeding the default occupancy, the application for determining the running background is pending application;
Processing module 84, for closing the pending application, and discharge the running memory that the pending application takes.
Further, the determining module 83, the number of starts of the application specifically for obtaining the running background are described
The number of starts is from the number of starts after os starting untill current time;
The determining module 83, also particularly useful for the application for handling the running background take running memory occupancy and
The number of starts of the application of the running background, the result after being handled;
The determining module 83, also particularly useful for judging whether the result after the processing meets preparatory condition;
The determining module 83, during also particularly useful for determining that the result after the processing meets preparatory condition, determine institute
The application for stating running background is the pending application.
Further, the determining module 83, answering for the running background is handled also particularly useful for using the mode that normalizes
With the occupancy for taking running memory, obtain normalizing occupancy, the application of the running background is handled using the mode of normalization
The number of starts, and the number of starts after being handled using normalization mode is taken into the absolute value with 1 difference, obtains normalization and open
Dynamic number;
The determining module 83, the first weight coefficient is distributed also particularly useful for for the normalization occupancy, is returned to be described
One, which changes the number of starts, distributes the second weight coefficient, and first weight coefficient and the second weight coefficient sum are 1 and described
First weight coefficient is both greater than 0 with second weight coefficient and is less than 1;
The determining module 83, it is described also particularly useful for the synthetic weights weight values for the application that the running background is calculated
Synthetic weights weight values for the normalization occupancy weighted value and the normalization number of starts the weighted value and, the normalizing
The weighted value for changing occupancy is the normalization occupancy and the product of first weight coefficient, the normalization number of starts
Weighted value for the normalization number of starts and second weight coefficient product.
Further, the preparatory condition includes:The synthetic weights weight values of the application of the running background are more than preset comprehensive
The condition of weighted value.
Further, the normalization mode includes:Logarithmic function normalization mode, index normalization mode, triangle or
Any one mode in antitrigonometric function normalization mode.
The device of the present embodiment, can be used for performing it is above-mentioned shown in embodiment of the method technical scheme, its realization principle and
Technique effect is similar, and here is omitted.
Example IV
Fig. 9 is the structural representation of the apparatus embodiments of present invention cleaning running memory, as shown in figure 9, the present invention is implemented
The equipment 09 for the cleaning running memory that example provides includes:Interface 91, processor 92, memory 93 and communication bus 94;
Wherein, the communication bus 94, for realizing between the interface 91, the processor 92 and the memory 93
Connection communication;
The processor 92, for perform stored in the memory 93 cleaning running memory program, with realize with
Lower step:
Obtain the backstage duration of the application of running background and take the occupancy of running memory;
Judge whether the backstage duration exceedes default backstage duration and judge whether the occupancy exceedes default take
Rate;
Determine that the backstage duration exceedes the default backstage duration and the occupancy exceedes the default occupancy
When, the application for determining the running background is pending application;
The pending application is closed, and discharges the running memory that the pending application takes.
Further, the processor 92, for performing the program of the cleaning running memory, to implement following walk
Suddenly:
The number of starts of the application of the running background is obtained, the number of starts is to current after os starting
The number of starts untill moment;
The application for handling the running background takes the startup of the occupancy of running memory and the application of the running background
Number, the result after being handled;
Judge whether the result after the processing meets preparatory condition;
When determining that the result after the processing meets preparatory condition, determine that the application of the running background is waited to locate to be described
It ought to use.
Further, the processor 92, for performing the program of the cleaning running memory, to implement following walk
Suddenly:
The occupancy of the application occupancy running memory of the running background is handled using the mode of normalization, normalization is obtained and accounts for
With rate, the number of starts of the application of the running background is handled using the mode of normalization, and after the mode that normalizes being utilized to handle
The number of starts take absolute value with 1 difference, obtain normalizing the number of starts;
The first weight coefficient is distributed for the normalization occupancy, the second weight system is distributed for the normalization number of starts
Number, first weight coefficient are 1 and first weight coefficient and second weight with the second weight coefficient sum
Coefficient is both greater than 0 and is less than 1;
The synthetic weights weight values of the application of the running background are calculated, the synthetic weights weight values take for the normalization
The weighted value of rate and the normalization number of starts the weighted value and, the weighted value for normalizing occupancy is the normalizing
Change occupancy and the product of first weight coefficient, the weighted value for normalizing the number of starts starts secondary for the normalization
The product of number and second weight coefficient.
Further, the preparatory condition includes:The synthetic weights weight values of the application of the running background are more than preset comprehensive
The condition of weighted value.
Further, the normalization mode includes:Logarithmic function normalization mode, index normalization mode, triangle or
Any one mode in antitrigonometric function normalization mode.
As shown in figure 9, the equipment 09 of cleaning running memory can be mobile phone, computer, digital broadcast terminal, information
Transceiver, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.;It is understood that communication bus
94 in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition, but illustrates in order to clear
See, various buses are all designated as communication bus 94 in fig.9.
Wherein, interface 91 can include display, keyboard, mouse, trace ball, click wheel, button, button, touch-sensitive plate or
Person's touch-screen etc..
It is appreciated that memory 93 can be volatile memory or nonvolatile memory, may also comprise volatibility and
Both nonvolatile memories;Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory),
Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory
(EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage;Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as
Static RAM (SRAM, Static Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory);Description of the embodiment of the present invention is deposited
Reservoir 93 is intended to the memory of including but not limited to these and any other suitable type.
Memory 93 in the embodiment of the present invention is used to store various types of data to support to clear up setting for running memory
Standby 09 operation;The example of these data includes:For any computer journey operated in the equipment 09 of cleaning running memory
Sequence, such as operating system and application program, contact data, telephone book data, message, picture, video;Wherein, operating system
Comprising various system programs, such as ccf layer, core library layer, driving layer etc., for realizing various basic businesses and processing base
In the task of hardware;Application program can include various application programs, such as media player (Media Player), browser
(Browser) etc., for realizing various applied business;Realize that the program of present invention method may be embodied in application program
In.
The method that the embodiments of the present invention disclose can apply in processor 92, or be realized by processor 92;Place
It is probably a kind of IC chip to manage device 92, has the disposal ability of signal;In implementation process, each step of the above method
It can be completed by the integrated logic circuit of the hardware in processor 92 or the instruction of software form;Above-mentioned processor 92 can
To be general processor, digital signal processor (DSP, Digital Signal Processor), or other programmable are patrolled
Collect device, discrete gate or transistor logic, discrete hardware components etc.;The present invention can be realized or performed to processor 92
Disclosed each method, step and logic diagram in embodiment;General processor can be microprocessor or any conventional
Processor etc.;The step of method with reference to disclosed in the embodiment of the present invention, hardware decoding processor execution can be embodied directly in
Complete, or completion is performed with the hardware in decoding processor and software module combination;Software module can be located at storage medium
In, the storage medium is located at memory 93, and processor 92 reads the information in memory 93, and preceding method is completed with reference to its hardware
The step of.
In the exemplary embodiment, the equipment 09 for clearing up running memory can be by one or more application specific integrated circuits
(ASIC, Application Specific Integrated Circuit), DSP, PLD (PLD,
Programmable Logic Device), CPLD (CPLD, Complex Programmable Logic
Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control
Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member
Part is realized, for performing preceding method.
The equipment of the present embodiment, can be used for performing it is above-mentioned shown in embodiment of the method technical scheme, its realization principle and
Technique effect is similar, and here is omitted.
Embodiment five
The present invention also provides a kind of computer-readable recording medium, computer-readable recording medium can be FRAM, ROM,
The memory such as PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, CD or CD-ROM;It can also be bag
The various equipment of one of above-mentioned memory or any combination are included, such as mobile phone, computer, tablet device, personal digital assistant
Deng;The computer-readable recording medium storage has one or more program, and one or more of programs can be by one
Or multiple computing devices, to realize following steps:
Obtain the backstage duration of the application of running background and take the occupancy of running memory;
Judge whether the backstage duration exceedes default backstage duration and judge whether the occupancy exceedes default take
Rate;
Determine that the backstage duration exceedes the default backstage duration and the occupancy exceedes the default occupancy
When, the application for determining the running background is pending application;
The pending application is closed, and discharges the running memory that the pending application takes.
Further, one or more of programs can be by one or more of computing devices, with specific real
Existing following steps:
The number of starts of the application of the running background is obtained, the number of starts is to current after os starting
The number of starts untill moment;
The application for handling the running background takes the startup of the occupancy of running memory and the application of the running background
Number, the result after being handled;
Judge whether the result after the processing meets preparatory condition;
When determining that the result after the processing meets preparatory condition, determine that the application of the running background is waited to locate to be described
It ought to use.
Further, one or more of programs can be by one or more of computing devices, with specific real
Existing following steps:
The occupancy of the application occupancy running memory of the running background is handled using the mode of normalization, normalization is obtained and accounts for
With rate, the number of starts of the application of the running background is handled using the mode of normalization, and after the mode that normalizes being utilized to handle
The number of starts take absolute value with 1 difference, obtain normalizing the number of starts;
The first weight coefficient is distributed for the normalization occupancy, the second weight system is distributed for the normalization number of starts
Number, first weight coefficient are 1 and first weight coefficient and second weight with the second weight coefficient sum
Coefficient is both greater than 0 and is less than 1;
The synthetic weights weight values of the application of the running background are calculated, the synthetic weights weight values take for the normalization
The weighted value of rate and the normalization number of starts the weighted value and, the weighted value for normalizing occupancy is the normalizing
Change occupancy and the product of first weight coefficient, the weighted value for normalizing the number of starts starts secondary for the normalization
The product of number and second weight coefficient.
Further, the preparatory condition includes:The synthetic weights weight values of the application of the running background are more than preset comprehensive
The condition of weighted value.
Further, the normalization mode includes:Logarithmic function normalization mode, index normalization mode, triangle or
Any one mode in antitrigonometric function normalization mode.
The computer-readable recording medium of the present embodiment, it can be used for the technical side for performing above-mentioned shown embodiment of the method
Case, its implementing principle and technical effect is similar, and here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
- A kind of 1. method for clearing up running memory, it is characterised in that methods described includes:Obtain the backstage duration of the application of running background and take the occupancy of running memory;Judge whether the backstage duration exceedes default backstage duration and judge whether the occupancy exceedes default occupancy;When determining that the backstage duration exceedes the default backstage duration and the occupancy and exceedes the default occupancy, The application for determining the running background is pending application;The pending application is closed, and discharges the running memory that the pending application takes.
- 2. according to the method for claim 1, it is characterised in that the application for determining the running background is answered to be pending With, including:The number of starts of the application of the running background is obtained, the number of starts is to current time after os starting Untill the number of starts;The application for handling the running background takes the occupancy of running memory and the number of starts of the application of the running background, Result after being handled;Judge whether the result after the processing meets preparatory condition;When determining that the result after the processing meets preparatory condition, determine the application of the running background for it is described it is pending should With.
- 3. according to the method for claim 2, it is characterised in that the application of the processing running background is taken in operation The occupancy and the number of starts of the application of the running background deposited, the result after being handled, including:The occupancy of the application occupancy running memory of the running background is handled using the mode of normalization, normalization is obtained and takes Rate, handles the number of starts of the application of the running background using the mode of normalization, and after being handled using mode is normalized The number of starts takes the absolute value with 1 difference, obtains normalizing the number of starts;The first weight coefficient is distributed for the normalization occupancy, the second weight coefficient is distributed for the normalization number of starts, First weight coefficient is 1 and first weight coefficient and the second weight system with the second weight coefficient sum Number both greater than 0 is less than 1;The synthetic weights weight values of the application of the running background are calculated, the synthetic weights weight values are the normalization occupancy Weighted value and the normalization number of starts the weighted value and, the weighted value of the normalization occupancy accounts for for described normalize With the product of rate and first weight coefficient, the weighted value of the normalization number of starts for the normalization number of starts with The product of second weight coefficient.
- 4. according to the method for claim 3, it is characterised in that the preparatory condition includes:The application of the running background Synthetic weights weight values be more than preset comprehensive weighted value condition.
- 5. according to the method for claim 3, it is characterised in that the normalization mode includes:Logarithmic function normalization side Any one mode in formula, index normalization mode, triangle or antitrigonometric function normalization mode.
- 6. a kind of equipment for clearing up running memory, it is characterised in that the equipment includes:Interface, processor, memory and communication Bus;The communication bus, for realizing the connection communication between the interface, the processor and the memory;The processor, for performing the program of the cleaning running memory stored in the memory, to realize following steps:Obtain the backstage duration of the application of running background and take the occupancy of running memory;Judge whether the backstage duration exceedes default backstage duration and judge whether the occupancy exceedes default occupancy;When determining that the backstage duration exceedes the default backstage duration and the occupancy and exceedes the default occupancy, The application for determining the running background is pending application;The pending application is closed, and discharges the running memory that the pending application takes.
- 7. equipment according to claim 6, it is characterised in that the processor, for performing the cleaning running memory Program, to implement following steps:The number of starts of the application of the running background is obtained, the number of starts is to current time after os starting Untill the number of starts;The application for handling the running background takes the occupancy of running memory and the number of starts of the application of the running background, Result after being handled;Judge whether the result after the processing meets preparatory condition;When determining that the result after the processing meets preparatory condition, determine the application of the running background for it is described it is pending should With.
- 8. equipment according to claim 7, it is characterised in that the processor, for performing the cleaning running memory Program, to implement following steps:The occupancy of the application occupancy running memory of the running background is handled using the mode of normalization, normalization is obtained and takes Rate, handles the number of starts of the application of the running background using the mode of normalization, and after being handled using mode is normalized The number of starts takes the absolute value with 1 difference, obtains normalizing the number of starts;The first weight coefficient is distributed for the normalization occupancy, the second weight coefficient is distributed for the normalization number of starts, First weight coefficient is 1 and first weight coefficient and the second weight system with the second weight coefficient sum Number both greater than 0 is less than 1;The synthetic weights weight values of the application of the running background are calculated, the synthetic weights weight values are the normalization occupancy Weighted value and the normalization number of starts the weighted value and, the weighted value of the normalization occupancy accounts for for described normalize With the product of rate and first weight coefficient, the weighted value of the normalization number of starts for the normalization number of starts with The product of second weight coefficient.
- 9. equipment according to claim 8, it is characterised in that the preparatory condition includes:The application of the running background Synthetic weights weight values be more than preset comprehensive weighted value condition;The normalization mode includes:Logarithmic function normalization mode, index normalization mode, triangle or antitrigonometric function normalizing Any one mode in change mode.
- A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize such as claim 1 to 5 The step of method of any one cleaning running memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711227554.5A CN107807857B (en) | 2017-11-29 | 2017-11-29 | Method and device for cleaning running memory and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711227554.5A CN107807857B (en) | 2017-11-29 | 2017-11-29 | Method and device for cleaning running memory and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107807857A true CN107807857A (en) | 2018-03-16 |
CN107807857B CN107807857B (en) | 2021-05-21 |
Family
ID=61589475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711227554.5A Active CN107807857B (en) | 2017-11-29 | 2017-11-29 | Method and device for cleaning running memory and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107807857B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108549563A (en) * | 2018-03-29 | 2018-09-18 | 努比亚技术有限公司 | A kind of application deployment method, terminal and computer readable storage medium |
CN108717376A (en) * | 2018-03-23 | 2018-10-30 | 河源市美晨智能研究院 | Management method, electronic equipment and the device with store function of background application |
CN109117384A (en) * | 2018-07-05 | 2019-01-01 | 麒麟合盛网络技术股份有限公司 | A kind of reminding method and device of memory cleaning |
CN109388947A (en) * | 2018-10-30 | 2019-02-26 | 努比亚技术有限公司 | A kind of back-stage management method, equipment and computer readable storage medium |
CN109947503A (en) * | 2019-03-27 | 2019-06-28 | 重庆传音通讯技术有限公司 | Application control method, device, terminal and computer readable storage medium |
CN110716437A (en) * | 2019-10-10 | 2020-01-21 | 中国联合网络通信集团有限公司 | Smart home use method and device |
CN111050385A (en) * | 2018-10-15 | 2020-04-21 | 中兴通讯股份有限公司 | Application cleaning method, device, equipment and readable storage medium |
CN111988778A (en) * | 2019-05-21 | 2020-11-24 | 广东美的制冷设备有限公司 | Multi-protocol authentication method for device, WIFI module, and computer-readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092700A (en) * | 2013-02-01 | 2013-05-08 | 华为终端有限公司 | Internal memory cleaning method and cleaning device and terminal device |
CN103220427A (en) * | 2013-04-16 | 2013-07-24 | 广东欧珀移动通信有限公司 | Mobile phone background program cleaning method and mobile phone |
CN103324500A (en) * | 2013-05-06 | 2013-09-25 | 广州市动景计算机科技有限公司 | Method and device for recycling internal memory |
CN105701025A (en) * | 2015-12-31 | 2016-06-22 | 华为技术有限公司 | Memory recovery method and device |
-
2017
- 2017-11-29 CN CN201711227554.5A patent/CN107807857B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092700A (en) * | 2013-02-01 | 2013-05-08 | 华为终端有限公司 | Internal memory cleaning method and cleaning device and terminal device |
CN103220427A (en) * | 2013-04-16 | 2013-07-24 | 广东欧珀移动通信有限公司 | Mobile phone background program cleaning method and mobile phone |
CN103324500A (en) * | 2013-05-06 | 2013-09-25 | 广州市动景计算机科技有限公司 | Method and device for recycling internal memory |
CN105701025A (en) * | 2015-12-31 | 2016-06-22 | 华为技术有限公司 | Memory recovery method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108717376A (en) * | 2018-03-23 | 2018-10-30 | 河源市美晨智能研究院 | Management method, electronic equipment and the device with store function of background application |
CN108549563A (en) * | 2018-03-29 | 2018-09-18 | 努比亚技术有限公司 | A kind of application deployment method, terminal and computer readable storage medium |
CN109117384A (en) * | 2018-07-05 | 2019-01-01 | 麒麟合盛网络技术股份有限公司 | A kind of reminding method and device of memory cleaning |
CN111050385A (en) * | 2018-10-15 | 2020-04-21 | 中兴通讯股份有限公司 | Application cleaning method, device, equipment and readable storage medium |
CN109388947A (en) * | 2018-10-30 | 2019-02-26 | 努比亚技术有限公司 | A kind of back-stage management method, equipment and computer readable storage medium |
CN109947503A (en) * | 2019-03-27 | 2019-06-28 | 重庆传音通讯技术有限公司 | Application control method, device, terminal and computer readable storage medium |
CN111988778A (en) * | 2019-05-21 | 2020-11-24 | 广东美的制冷设备有限公司 | Multi-protocol authentication method for device, WIFI module, and computer-readable storage medium |
CN111988778B (en) * | 2019-05-21 | 2023-09-26 | 广东美的制冷设备有限公司 | Device, multi-protocol authentication method of WIFI module and computer readable storage medium |
CN110716437A (en) * | 2019-10-10 | 2020-01-21 | 中国联合网络通信集团有限公司 | Smart home use method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107807857B (en) | 2021-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107807857A (en) | Method, equipment and the computer for clearing up running memory can storage mediums | |
CN107133092A (en) | Multi-thread synchronization processing method, terminal and computer-readable recording medium | |
CN107767333A (en) | Method, equipment and the computer that U.S. face is taken pictures can storage mediums | |
CN108227833A (en) | Control method, terminal and the computer readable storage medium of flexible screen terminal | |
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN107729133A (en) | A kind of method, terminal and computer-readable recording medium for running application program | |
CN107517494A (en) | A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium | |
CN107643860A (en) | A kind of method of information alert, mobile terminal and computer-readable recording medium | |
CN107526958A (en) | A kind of operating mode control method, terminal and computer-readable recording medium | |
CN107194732A (en) | One kind application method for pushing, mobile terminal and computer-readable recording medium | |
CN107181700A (en) | Control method, mobile terminal and the storage medium of application program for mobile terminal | |
CN108171743A (en) | Method, equipment and the computer for shooting image can storage mediums | |
CN107580336A (en) | A kind of method for connecting network, terminal and computer-readable recording medium | |
CN107181865A (en) | Processing method, terminal and the computer-readable recording medium of unread short messages | |
CN107295270A (en) | Determination method, device, terminal and the computer-readable recording medium of a kind of image brightness values | |
CN107608613A (en) | A kind of method and terminal for preventing maloperation | |
CN107678698A (en) | Data cached method for cleaning, server, terminal and computer-readable recording medium | |
CN108540639A (en) | Display processing method, equipment and the computer of Mosaic screen can storage mediums | |
CN107390856A (en) | A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption | |
CN107563158A (en) | Show hiden application figure calibration method, equipment and computer-readable recording medium | |
CN107172605A (en) | A kind of Emmergency call method, mobile terminal and computer-readable recording medium | |
CN107613130A (en) | A kind of application management method, mobile terminal and computer-readable recording medium | |
CN107562586A (en) | A kind of internal-memory detection method, equipment and computer-readable storage medium | |
CN107450796A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN107239218A (en) | Control method, mobile terminal and the computer-readable recording medium of mobile 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |