CN109783223A - A kind of memory method for cleaning, terminal and computer readable storage medium - Google Patents

A kind of memory method for cleaning, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109783223A
CN109783223A CN201811420379.6A CN201811420379A CN109783223A CN 109783223 A CN109783223 A CN 109783223A CN 201811420379 A CN201811420379 A CN 201811420379A CN 109783223 A CN109783223 A CN 109783223A
Authority
CN
China
Prior art keywords
application
background
target
target application
memory
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
CN201811420379.6A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811420379.6A priority Critical patent/CN109783223A/en
Publication of CN109783223A publication Critical patent/CN109783223A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of memory method for cleaning, terminal and computer readable storage mediums, memory method for cleaning passes through when detection terminal is currently at high resource occupation state, obtain the application that running background is in terminal, and then the target application in background application is determined based on default shutdown strategy, the target application is controlled to be closed, solve in the prior art that memory cleaning operation is cumbersome, and cleaning efficiency is low, cleaning effect is poor, causes the problem that user experience is low.The invention also discloses a kind of terminal and computer readable storage mediums to improve memory cleaning efficiency and memory cleaning effect, so that the experience satisfaction of user is more preferable by implementing above scheme.

Description

A kind of memory method for cleaning, terminal and computer readable storage medium
Technical field
The present invention relates to memory Removal Technology fields, more specifically to a kind of memory method for cleaning, terminal and calculating Machine readable storage medium storing program for executing.
Background technique
With the depth development of internet, more and more industries are added in internet tide, produce countless be based on The application of internet provides the recreation based on text, picture, video, game, big data service etc..People thus Requirement to terminal capabilities is also being continuously improved, although the configuration and software optimization of terminal have evolved to good rank now Section, but with developing as application blowout has many applications always in running background, this certainly will be can occupied terminal memory with And the valuable sources such as CPU, even the terminal so as to cause better performances is also easy to appear in the use process of current scene Serious Caton or the slack phenomenon of picture, this will bring very poor experience to user.Currently, existing terminal memory cleaning is logical It is current just in the application of running background frequently with the detection of cleaned system tool, the certain backstages of closing are then manually selected by user and are answered With, thus releasing memory space, but this cleaning operation is relatively complicated, can not achieve the automatic cleaning of memory, and clear up Low efficiency, cleaning effect are poor, greatly reduce the experience satisfaction of user.
Summary of the invention
The technical problem to be solved in the present invention is that memory cleaning operation is cumbersome in the prior art, and cleaning efficiency is low, clear It is poor to manage effect, causes the problem that user experience is low.For the technical problem, a kind of memory method for cleaning, terminal and meter are provided Calculation machine readable storage medium storing program for executing.
In order to solve the above technical problems, the present invention provides a kind of memory method for cleaning, the memory method for cleaning includes:
Detect whether terminal is currently in high resource occupation state;
If so, obtaining the application for being in running background in the terminal;
The target application in the background application is determined based on default shutdown strategy, is controlled the target application and is closed It closes.
Optionally, the default shutdown strategy includes:
According to the background application got, the preferential of each background application is matched in application priority list Grade;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application as target application, control The target application is closed.
Optionally, the default shutdown strategy includes:
Judge that each background application whether in blacklist list, is stored with run-time memory in the blacklist list Rate of rise is more than the application of preset threshold;
If so, controlling the target application using the background application in blacklist list as target application and being closed It closes.
Optionally, the default shutdown strategy includes:
Obtain the duration on each background application incision backstage;
The application that incision backstage duration is more than preset duration threshold value is filtered out from each background application to answer as target With controlling the target application and closed.
Optionally, the default shutdown strategy includes:
According to the background application got, the preferential of each background application is matched in application priority list Grade;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application is used as first object application, The first object application is controlled to be closed;
Judge each background application except the first object application in addition to application whether in blacklist list, it is described The application that run-time memory rate of rise is more than preset threshold is stored in blacklist list;
If so, controlling second target using the background application in blacklist list as the second target application and answering With being closed.
Optionally, the default shutdown strategy includes:
Judge that each background application whether in blacklist list, is stored with run-time memory in the blacklist list Rate of rise is more than the application of preset threshold;
If so, controlling the third target using the background application in blacklist list as third target application and answering With being closed;
Obtain the duration on each background application incision backstage;
Incision backstage duration is filtered out in the application in addition to the third target application from each background application is more than The application of preset duration threshold value is used as the 4th target application, controls the 4th target application and is closed.
Optionally, the default shutdown strategy includes:
According to the background application got, the preferential of each background application is matched in application priority list Grade;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application is used as the 5th target application, The 5th target application is controlled to be closed;
Obtain the duration on each background application incision backstage;
Incision backstage duration is filtered out in the application in addition to the 5th target application from each background application is more than The application of preset duration threshold value is used as the 6th target application, controls the 6th target application and is closed.
Optionally, the default shutdown strategy includes:
According to the background application got, the preferential of each background application is matched in application priority list Grade;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application is used as the 7th target application, The 7th target application is controlled to be closed;
Judge each background application in addition to the 7th target application application whether in blacklist list, it is described The application that run-time memory rate of rise is more than preset threshold is stored in blacklist list;
If so, controlling the 8th target using the background application in blacklist list as the 8th target application and answering With being closed;
Obtain the duration on each background application incision backstage;
It filters out and cuts in the application in addition to the 7th target application and the 8th target application from each background application Enter application of the backstage duration more than preset duration threshold value as the 9th target application, controls the 9th target application and closed It closes.
Further, the present invention also provides a kind of terminal, the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and the memory;
The processor is for executing one or more program stored in the memory, to realize as any of the above-described The step of memory method for cleaning described in item.
Further, the present invention also provides a kind of computer readable storage medium, the computer storage media is stored with One or more program, one or more of programs can be executed by one or more processor, to realize as above-mentioned The step of described memory method for cleaning.
Beneficial effect
Memory method for cleaning, terminal and computer readable storage medium proposed by the present invention, the memory method for cleaning pass through Whether detection terminal currently obtains in terminal in high resource occupation state if terminal is currently at high resource occupation state Application in running background, and then the target application in background application is determined based on default shutdown strategy, it controls the target and answers With being closed, solve in the prior art that memory cleaning operation is cumbersome, and cleaning efficiency is low, cleaning effect is poor, causes user The low problem of Experience Degree.Namely in the present invention, it is based on by memory method for cleaning when terminal is in high resource occupation state Default shutdown strategy determines the target application in background application, and then according to the target application determined, is closed, pole The efficiency and effect that memory cleaning is improved in big degree, avoid the cumbersome of memory cleaning operation, bring more just for user Benefit greatly improves the experience satisfaction of user.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the basic procedure schematic diagram for the memory method for cleaning that first embodiment of the invention provides;
Fig. 4 determines the target in background application based on default shutdown strategy for the first that first embodiment of the invention provides Using the basic procedure schematic diagram that control target application is closed;
Fig. 5 is second of target determined in background application based on default shutdown strategy that first embodiment of the invention provides Using the basic procedure schematic diagram that control target application is closed;
Fig. 6 be first embodiment of the invention provide the third the target in background application is determined based on default shutdown strategy Using the basic procedure schematic diagram that control target application is closed;
Fig. 7 is the 4th kind of target determined in background application based on default shutdown strategy that first embodiment of the invention provides Using the basic procedure schematic diagram that control target application is closed;
Fig. 8 is the 5th kind of target determined in background application based on default shutdown strategy that first embodiment of the invention provides Using the basic procedure schematic diagram that control target application is closed;
Fig. 9 is the 6th kind of target determined in background application based on default shutdown strategy that first embodiment of the invention provides Using the basic procedure schematic diagram that control target application is closed;
Figure 10 is the 7th kind of mesh determined in background application based on default shutdown strategy that first embodiment of the invention provides Mark application, the basic procedure schematic diagram that control target application is closed;
Figure 11 is a kind of basic procedure schematic diagram for specific memory method for cleaning that second embodiment of the invention provides;
Figure 12 is the structural schematic diagram for the terminal that third embodiment of the invention provides.
Specific embodiment
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 subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list Uplink information can be sent to base station by member 101, after the downlink information that in addition can also be sent base station receives, be sent to movement The processor 110 of terminal is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent according to radio frequency unit 101 Uplink information generate, be also possible to after the information update for detecting mobile terminal actively to push to radio frequency unit 101, For example, base station can be to the radio frequency unit 101 of mobile terminal after detecting that geographical location locating for mobile terminal changes The message informing of geographical location variation is sent, radio frequency unit 101 can send out the message informing after receiving the message informing The processor 110 for giving mobile terminal is handled, and the processor 110 of mobile terminal can control the message informing and be shown in movement eventually On the display panel 1061 at end;In general, radio frequency unit 101 include but is not limited to antenna, at least one amplifier, transceiver, Coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication with network and other set Standby communication, specifically may include: by wireless communication with the server communication in network system, for example, mobile terminal can be with File resource is downloaded from server by wireless communication, for example application program can be downloaded from server, in mobile terminal After the downloading of a certain application program is completed, if the corresponding file resource of the application program updates in server, the server It can be by wireless communication to the message informing of mobile terminal push resource updates, to remind user to carry out more the application program Newly.Any communication standard or agreement, including but not limited to GSM (Global System of can be used in above-mentioned wireless communication Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, it is general Be grouped wireless service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division- Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex 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, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the 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 received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further 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 sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of 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 sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of 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) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch 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 It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it 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, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.For example, when by radio frequency unit 101 receive the message informing of a certain application program when, processor 110 can control by The message informing is shown in a certain predeterminable area of display panel 1061, a certain area of the predeterminable area and touch panel 1071 Domain is corresponding, can be in corresponding region on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing of display is controlled.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, 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 storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it 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 entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless 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) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, after UE201 is connect with eNodeB2021, can receive To the notification message notice sent by eNodeB2021, eNodeB2021 may be coupled to EPC203, and eNodeB2021 can be mentioned For the access of UE201 to EPC203.
EPC203 may 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, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may 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 should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the present invention is proposed.
First embodiment
It is cumbersome in order to solve memory cleaning operation in the prior art, and cleaning efficiency is low, cleaning effect is poor, causes user's body The low problem of degree of testing.The present embodiment provides a kind of memory method for cleaning, the memory method for cleaning by detection terminal currently whether In high resource occupation state, if terminal is currently at high resource occupation state, answering in running background in terminal is obtained With, and then the target application in background application is determined based on default shutdown strategy, it controls the target application and is closed.Specifically may be used With shown in Figure 3, Fig. 3 is the basic flow chart of memory method for cleaning provided in this embodiment:
S301: whether detection terminal is currently in high resource occupation state;
If so, S302 is executed, if it is not, continuing to execute S301.
In the present embodiment, what whether detection terminal currently can be current by detection terminal in high resource occupation state CPU usage determines that terminal is currently at high resource occupation state if CPU usage is greater than preset occupancy thresholding.Example Such as, it if occupying thresholding is 60%, detects that the current CPU usage of terminal is 80%, then can determine that terminal is currently at high money Source occupied state.It is understood that the upper application run is more at some time point for terminal, CPU usage is higher.Certainly , detect whether terminal is currently in the memory usage that high resource occupation state can also be current by detection terminal, if Memory usage is greater than preset occupancy thresholding, then determines that terminal is currently at high resource occupation state.For example, setting occupancy thresholding It is 50%, detects that the current memory usage of terminal is 65%, then can determine that terminal is currently at high resource occupation state.It can With understanding, the upper application run is more at some time point for terminal, and memory usage is higher.
It is worth noting that, in practical applications, preset occupancy thresholding by developer according to the actual application into Row flexible setting summarizes to obtain setting value by many experiments value.It is further noted that above-mentioned introduced detection Whether terminal is only currently two kinds of feasible way of example in high resource occupation condition mode, and not representing the present invention can only adopt It is handled in fashion described above, as long as in fact, mode all Ying Ben that terminal is currently at high resource occupation state can be detected In the protection scope of invention.
S302: the application that running background is in terminal is obtained.
In the present embodiment, it when detecting that terminal is currently at high resource occupation state, obtains and is currently in terminal The application of running background, it is understood that, answering in running background in terminal can be obtained using existing any way With.It is understood that the application in the terminal obtained in running background can be default in running background in terminal Using, for example, the only game class application in running background in acquisition terminal, or only obtain and be in running background in terminal Video playback class application, or only obtain the reading class application that running background is in terminal.It is worth noting that, actually answering In, flexible setting can be carried out according to experiment or experience by developer by presetting application, can also carry out flexible setting by user, It of courses, all applications of running background is in the application or terminal in the terminal of acquisition in running background.
S303: determine that the target application in background application, control target application are closed based on default shutdown strategy.
In the present embodiment, presetting shutdown strategy includes at least following seven kinds of modes:
Mode one, shown in Figure 4:
S401: according to the background application got, the priority of each background application is matched in application priority list.
It will be clear that can be previously stored in terminal using priority list, this is logical using priority list The frequency that counting user uses each application is crossed, by frequency of use according to the priority of sequence setting application from high to low, even if It is higher also higher using the priority corresponding to it with frequency.It is understood that when getting background application, according to The corresponding priority of each background application is matched using priority list.For a better understanding, here with a specific example It is illustrated, for example, setting the background application got as A, B, C, D, E, F, G, while setting and being determined according to application priority list The priority of background application A out is 100%, and the priority of background application B is 90%, and the priority of background application C is 90%, The priority of background application D is 60%, and the priority of background application E is 45%, and the priority of background application F is 40%, backstage Priority using G is 20%.
S402: application of the priority lower than pre-set priority threshold value is filtered out from background application as target application, control Target application processed is closed.
Example in undertaking further filters out priority lower than pre-set priority from background application A, B, C, D, E, F, G The application of threshold value is used as target application, if pre-set priority threshold value is 50%, it will be apparent that, filter out background application E, F, G conduct Target application, and then control target application E, F, G and close.It is worth noting that, in practical applications, pre-set priority threshold value by Developer carries out flexible setting according to experiment or experience.
Mode two, shown in Figure 5:
S501: judge that each background application is stored with run-time memory increasing whether in blacklist list, in blacklist list Long rate is more than the application of preset threshold;
If so, S502 is executed, if it is not, continuing to execute S501.
It will be clear that can also be previously stored with blacklist list in terminal, which is to pass through statistics User is using respectively in application, each application application of the memory rate of rise more than preset threshold at runtime.Typically, normally Application at runtime memory rate of rise be fixed on a certain threshold value, if this application at runtime memory rate of rise be more than the threshold Value, then it represents that the application belongs to defective application, and in other words, which can occupy more memory, belongs to rogue's application It in scope, therefore, is added into blacklist list, priority processing is carried out to it, so that memory cleaning is more efficient.Value It obtains it is noted that in practical applications, preset threshold carries out flexible setting according to experiment or experience by developer.
For a better understanding, be illustrated here with a specific example, for example, set the background application that gets as A, B, C, D, E, F, G, while background application B, D, G are set in blacklist list.
S502: it using the background application in blacklist list as target application, controls target application and is closed.
Example in undertaking further using background application B, D, G as target application, and then controls target application B, D, G and closes It closes.
Mode three, shown in Figure 6:
S601: the duration on each background application incision backstage is obtained.
It will be clear that terminal can also just record the switching time of the application, in turn at application switching to backstage The duration on each application incision backstage is counted, and obtains the duration on each application incision backstage that statistics obtains.Typically, using cutting The duration for entering backstage is longer, and user, with regard to smaller, therefore, can be closed the incision longer application of backstage duration using its probability It closes, releases the memory occupied by it, improve the efficiency of memory cleaning.
For a better understanding, be illustrated here with a specific example, for example, set the background application that gets as A, B, C, D, E, F, G, while setting when 90 minutes a length of, the background application B incision backstage on the background application A incision backstage that statistics obtains When it is 80 minutes a length of, background application C cut backstage when it is 85 minutes a length of, background application D cut backstage when it is 50 points a length of Clock, background application E cut when 30 minutes a length of, when 20 minutes a length of, the background application G on background application F incision backstage on backstage Cut backstage when it is 5 minutes a length of, acquire respectively at this time background application A, B, C, D, E, F, G respectively cut backstage when It is long.
S602: the application that incision backstage duration is more than preset duration threshold value is filtered out from each background application and is answered as target With control target application is closed.
Example in undertaking, further, it is more than pre- that incision backstage duration is filtered out from each background application A, B, C, D, E, F, G If duration threshold value application be used as target application, if preset duration threshold value be 60 minutes, it will be apparent that, filter out background application A, B, C controls target application A, B, C and closes as target application.It is worth noting that, in practical applications, preset duration threshold Value carries out flexible setting according to experiment or experience by developer.
Introduced it is three kinds it should be noted that above-mentioned and independent is determined in background application based on default shutdown strategy Target application, the mode that control target application is closed, in order to enable memory cleaning is more efficient, memory cleaning effect is more It is good, can by above-mentioned three kinds it is independent target application in background application is determined based on default shutdown strategy, control target application The mode closed is combined, referring specifically to following the description.
Mode four, shown in Figure 7:
S701: according to the background application got, the priority of each background application is matched in application priority list.
S702: application of the priority lower than pre-set priority threshold value is filtered out from background application and is answered as first object With control first object application is closed.
It is understood that S701, S702 and S401, S402 are substantially identical, it, please be referring to above-mentioned in order not to repeated description Explanation.
S703: judge each background application except first object application in addition to application whether in blacklist list, blacklist List memory contains the application that run-time memory rate of rise is more than preset threshold;
If so, S704 is executed, if it is not, continuing to execute S703.
S704: will in the background application in blacklist list as the second target application, control the second target application into Row is closed.
It is understood that S703, S704 and S501, S502 are substantially identical, it, please be referring to above-mentioned in order not to repeated description Explanation.
For a better understanding, being illustrated here with a specific example.For example, set the background application that gets as A, B, C, D, E, F, G, if being 100% according to the priority of the background application A determined using priority list, background application B's Priority is 90%, and the priority of background application C is 90%, and the priority of background application D is 60%, and background application E's is preferential Grade is 45%, and the priority of background application F is 40%, and the priority of background application G is 20%, if pre-set priority threshold value is 50%, it will be apparent that, background application E, F, G are filtered out as first object application, and then are controlled first object application E, F, G and closed It closes;Further, each background application A, B, C, D, E, F, G in addition to first object application E, F, G application be A, B, C, D, this When judgement using A, B, C, D whether in blacklist list, if using C in blacklist list, will using C as the second target Using, and then control the second target application C and close.
Mode five, shown in Figure 8:
S801: judge that each background application is stored with run-time memory increasing whether in blacklist list, in blacklist list Long rate is more than the application of preset threshold;
If so, S802 is executed, if it is not, continuing to execute S801.
S802: will be used as third target application in the background application in blacklist list, control third target application into Row is closed.
It is understood that S801, S802 and S501, S502 are substantially identical, it, please be referring to above-mentioned in order not to repeated description Explanation.
S803: the duration on each background application incision backstage is obtained.
S804: being more than default from using in filter out incision backstage duration of each background application in addition to third target application The application of duration threshold value is used as the 4th target application, and the 4th target application of control is closed.
It is understood that S803, S804 and S601, S602 are substantially identical, it, please be referring to above-mentioned in order not to repeated description Explanation.
For a better understanding, being illustrated here with a specific example.For example, set the background application that gets as A, B, C, D, E, F, G, if background application B, D, G are in blacklist list, it will be apparent that, using background application B, D, G as third target Using, and then control third target application B, D, G and close;Further, each background application A, B, C, D, E, F, G remove third target Using except B, D, G application be A, C, E, F, if acquire using A incision backstage when it is 20 minutes a length of, cut using C Backstage when it is 50 minutes a length of, using E incision backstage when it is 80 minutes a length of, background application F cut backstage when it is 120 points a length of Clock, while setting preset duration threshold value as 60 minutes, it will be apparent that, it filters out using E, F as the 4th target application, and then control the Four target applications E, F are closed.
Mode six, shown in Figure 9:
S901: according to the background application got, the priority of each background application is matched in application priority list.
S902: application of the priority lower than pre-set priority threshold value is filtered out from background application and is answered as the 5th target With the 5th target application of control is closed.
It is understood that S901, S902 and S401, S402 are substantially identical, it, please be referring to above-mentioned in order not to repeated description Explanation.
S903: the duration on each background application incision backstage is obtained.
S904: being more than default from using in filter out incision backstage duration of each background application in addition to the 5th target application The application of duration threshold value is used as the 6th target application, and the 6th target application of control is closed.
It is understood that S903, S904 and S601, S602 are substantially identical, it, please be referring to above-mentioned in order not to repeated description Explanation.
In order to preferably manage mode six, it is illustrated here with a specific example.For example, setting the background application got For A, B, C, D, E, F, G, if being 100% according to the priority of the background application A determined using priority list, background application The priority of B is 90%, and the priority of background application C is 90%, and the priority of background application D is 60%, and background application E's is excellent First grade is 45%, and the priority of background application F is 40%, and the priority of background application G is 20%, if pre-set priority threshold value is 50%, it will be apparent that, background application E, F, G are filtered out as the 5th target application, and then are controlled the 5th target application E, F, G and closed It closes;Further, each background application A, B, C, D, E, F, G in addition to the 5th target application E, F, G application be A, B, C, D, if Acquire using A incision backstage when it is 20 minutes a length of, using B incision backstage when it is 50 minutes a length of, using C cut backstage When it is 80 minutes a length of, using D incision backstage when it is 120 minutes a length of, while setting preset duration threshold value as 60 minutes, hence it is evident that , it filters out using C, D as the 6th target application, and then control the 6th target application C, D and close.
Mode seven, shown in Figure 10:
S1001: according to the background application got, the preferential of each background application is matched in application priority list Grade.
S1002: application of the priority lower than pre-set priority threshold value is filtered out from background application and is answered as the 7th target With the 7th target application of control is closed.
It is understood that S1001, S1002 and S401, S402 are substantially identical, it, please be referring to upper in order not to repeated description It states bright.
S1003: judge each background application in addition to the 7th target application application whether in blacklist list, blacklist List memory contains the application that run-time memory rate of rise is more than preset threshold;
If so, S1004 is executed, if it is not, continuing to execute S1003.
S1004: will in the background application in blacklist list as the 8th target application, control the 8th target application into Row is closed.
It is understood that S1003, S1004 and S501, S502 are substantially identical, it, please be referring to upper in order not to repeated description It states bright.
S1005: the duration on each background application incision backstage is obtained.
S1006: incision is filtered out in addition to the 7th target application and the 8th target application from each background application Backstage duration is more than that the application of preset duration threshold value is used as the 9th target application, and the 9th target application of control is closed.
It is understood that S1005, S1006 and S601, S602 are substantially identical, it, please be referring to upper in order not to repeated description It states bright.
For a better understanding, being illustrated here with a specific example.For example, set the background application that gets as A, B, C, D, E, F, G, if being 100% according to the priority of the background application A determined using priority list, background application B's Priority is 90%, and the priority of background application C is 90%, and the priority of background application D is 60%, and background application E's is preferential Grade is 45%, and the priority of background application F is 40%, and the priority of background application G is 20%, if pre-set priority threshold value is 50%, it will be apparent that, background application E, F, G are filtered out as the 7th target application, and then are controlled the 7th target application E, F, G and closed It closes;Further, each background application A, B, C, D, E, F, G in addition to the 7th target application E, F, G application be A, B, C, D, this When judgement using A, B, C, D whether in blacklist list, if using C in blacklist list, will using C as the 8th target Using, and then control the 8th target application C and closed;Further, each background application A, B, C, D, E, F, G remove the 7th target Using except E, F, G and the 8th target application C application be A, B, D, if acquire using A incision backstage when it is 20 points a length of Clock, using B incision backstage when it is 50 minutes a length of, using D incision backstage when it is 120 minutes a length of, while setting preset duration threshold Value is 60 minutes, it will be apparent that, it filters out using D as the 9th target application, and then control the 9th target application D and close.
It is worth noting that, it is described here only seven kinds common determined in background application based on default shutdown strategy Target application, the mode that control target application is closed, the invention is not limited to this cited seven kinds of modes, in reality In, it can be adjusted flexibly according to concrete scene.
Whether memory method for cleaning provided in this embodiment is currently in high resource occupation state by detection terminal, if Terminal is currently at high resource occupation state, then obtains the application that running background is in terminal, and then close plan based on default Slightly determine the target application in background application, control the target application and closed solve memory cleaning behaviour in the prior art Make cumbersome, and cleaning efficiency is low, cleaning effect is poor, causes the problem that user experience is low.Namely in the present embodiment, by interior Method for cleaning is deposited when terminal is in high resource occupation state, determines that the target in background application is answered based on default shutdown strategy With, and then according to the target application determined, it is closed, largely improves the efficiency and effect of memory cleaning Fruit avoids the cumbersome of memory cleaning operation, brings more conveniences for user, greatly improves the experience satisfaction of user.
Meanwhile in the present embodiment, using priority list and blacklist list according to user it is first using feelings Condition is configured, and is more in line with the use habit of user, further improves the experience satisfaction of user.
Second embodiment
The present embodiment is made by taking a kind of specific memory method for cleaning as an example to the present invention on the basis of first embodiment It further illustrates, specifically may refer to Figure 11.
It is understood that the requirement to memory cleaning is higher, therefore, in the present embodiment when terminal is game machine It is illustrated by game machine of terminal.
It is located in the gamespace in game machine there are multiple game applications, each game application is used by counting user Frequency generates and applies priority list, it is to be understood that the higher priority corresponding to it of the frequency of use of game application is just It is higher, meanwhile, also by counting user using respectively in application, being more than answering for preset threshold by memory rate of rise at runtime With addition is into blacklist list.
S1101: whether detection terminal is currently in high resource occupation state;
If so, S1102 is executed, if it is not, continuing to execute S1101.
If detecting that the current CPU usage of game machine is greater than preset occupancy thresholding, then determine that game machine is currently at High resource occupation state, executes S1102 at this time.
S1102: the application that running background is in terminal is obtained.
Example in undertaking, further, if the game application in game machine in running background is a, b, c, d, e, f, g.
S1103: according to the background application got, the preferential of each background application is matched in application priority list Grade.
Example in undertaking further according to background application a, b, c, d, e, f, the g got, is applying priority list In matched, if the priority for matching background application a is 100%, the priority of background application b is 90%, background application c Priority be 90%, the priority of background application d is 60%, and the priority of background application e is 45%, and background application f's is excellent First grade is 40%, and the priority of background application g is 20%.
S1104: application of the priority lower than pre-set priority threshold value is filtered out from background application and is answered as first object With control first object application is closed.
Example in undertaking, further, if pre-set priority threshold value be 50%, it will be apparent that, from background application a, b, c, d, e, F, it is filtered out in g using e, f, g as first object application, and then controls first object application e, f, g and closed.
S1105: judge application of each background application in addition to first object application whether in blacklist list;
If so, S1106 is executed, if it is not, continuing to execute S1105.
Example in undertaking, further, answering in addition to first object application e, f, g in background application a, b, c, d, e, f, g With for a, b, c, d, judgement at this time using a, b, c, d whether in blacklist list, if being executed using c in blacklist list S1106。
S1106: will in the background application in blacklist list as the second target application, control the second target application into Row is closed.
Example in undertaking further will be using c as the second target application, and then controls the second target application c and closed It closes.
S1107: the duration on each background application incision backstage is obtained.
Example in undertaking, further, if acquire using a incision backstage when it is 20 minutes a length of, using b cut backstage When it is 40 minutes a length of, using c incision backstage when it is 30 minutes a length of, using d incision backstage when it is 80 minutes a length of, using e Cut backstage when it is 150 minutes a length of, using f incision backstage when it is 90 minutes a length of, using g incision backstage when a length of 120 Minute.
S1108: incision is filtered out in addition to first object is applied with the second target application from each background application Backstage duration is more than that the application of preset duration threshold value is used as third target application, and control third target application is closed.
Example in undertaking, further, each background application a, b, c, d, e, f, g remove first object application e, f, g and the 8th mesh Mark is a, b, d using the application except c, if preset duration threshold value is 60 minutes, it will be apparent that, it filters out and answers from application a, b, d It uses d as third target application, and then controls third target application d and closed.
Whether memory method for cleaning provided in this embodiment is currently in high resource occupation state by detection game machine, If game machine is currently at high resource occupation state, the game application that running background is in game machine is obtained, and then be based on Default shutdown strategy determines the target game application in the game application of backstage, controls the target game application and is closed, and solves Memory cleaning operation is cumbersome in the prior art, and cleaning efficiency is low, cleaning effect is poor, cause the problem that user experience is low. Namely in the present embodiment, through memory method for cleaning when game machine is in high resource occupation state, plan is closed based on default It slightly determines the target game application in the game application of backstage, and then according to the target game application determined, is closed, The efficiency and effect for largely improving memory cleaning, avoid the cumbersome of memory cleaning operation, bring more for user It is convenient, greatly improve the experience satisfaction of user.
3rd embodiment
It is shown in Figure 12 the present embodiment provides a kind of terminal, terminal provided in this embodiment include processor 1201, Memory 1202 and communication bus 1203.
Wherein, the communication bus 1203 in the present embodiment is for realizing the connection between processor 1201 and memory 1202 Communication, processor 1201 is then for executing one or more program stored in memory 1202, to perform the steps of
Detect whether terminal is currently in high resource occupation state;
If so, obtaining the application for being in running background in terminal;
Determine that the target application in background application, control target application are closed based on default shutdown strategy
In the present embodiment, presetting shutdown strategy includes at least following seven kinds of modes:
Mode one: processor 1201 matches each backstage in application priority list according to the background application got The priority of application;Application of the priority lower than pre-set priority threshold value is filtered out from background application as target application, control Target application processed is closed.
Mode two: processor 1201 judges that each background application whether in blacklist list, is stored in blacklist list Run-time memory rate of rise is more than the application of preset threshold;If so, it is excellent lower than presetting to filter out priority from background application The application of first grade threshold value is used as target application, and control target application is closed.
Mode three: processor 1201 obtains the duration on each background application incision backstage;It filters out and cuts from each background application Enter application of the backstage duration more than preset duration threshold value as target application, control target application is closed.
Mode four: processor 1201 matches each backstage in application priority list according to the background application got The priority of application;Application of the priority lower than pre-set priority threshold value is filtered out from background application to answer as first object With control first object application is closed;Further, judging application of each background application in addition to first object application is It is no that the application that run-time memory rate of rise is more than preset threshold is stored in blacklist list, in blacklist list;If so, Using the background application in blacklist list as the second target application, controls the second target application and closed.
Mode five: processor 1201 judges that each background application whether in blacklist list, is stored in blacklist list Run-time memory rate of rise is more than the application of preset threshold;If so, will be in the background application in blacklist list as the Three target applications, control third target application are closed;Further, the duration on each background application incision backstage is obtained;From Each background application filters out the application that incision backstage duration is more than preset duration threshold value in the application in addition to third target application As the 4th target application, controls the 4th target application and closed.
Mode six: processor 1201 matches each backstage in application priority list according to the background application got The priority of application;Application of the priority lower than pre-set priority threshold value is filtered out from background application to answer as the 5th target With the 5th target application of control is closed;Further, the duration on each background application incision backstage is obtained;It is answered from each backstage Using and filtering out incision backstage duration in the application in addition to the 5th target application is more than the application of preset duration threshold value as the 6th Target application, the 6th target application of control are closed.
Mode seven: processor 1201 matches each backstage in application priority list according to the background application got The priority of application;Application of the priority lower than pre-set priority threshold value is filtered out from background application to answer as the 7th target With the 7th target application of control is closed;Further, judging application of each background application in addition to the 7th target application is It is no that the application that run-time memory rate of rise is more than preset threshold is stored in blacklist list, in blacklist list;If so, Using the background application in blacklist list as the 8th target application, controls the 8th target application and closed;Further , obtain the duration on each background application incision backstage;From each background application in addition to the 7th target application and the 8th target application Application in filter out application that incision backstage duration is more than preset duration threshold value as the 9th target application, control the 9th target Using being closed.
It is worth noting that, not fully expounding the institute in embodiment one, two in the present embodiment in order not to burden explanation There is example, it is understood that, all examples in embodiment one, two are suitable for the present embodiment.
The present embodiment also provides a kind of computer readable storage medium, computer-readable recording medium storage have one or Multiple programs, one or more program can be executed by one or more processor, to realize such as above-mentioned memory cleaning side The step of method.
Whether terminal provided in this embodiment and computer readable storage medium are by detecting terminal currently in high resource Occupied state obtains the application that running background is in terminal, and then be based on if terminal is currently at high resource occupation state Default shutdown strategy determines the target application in background application, controls the target application and is closed, is solved in the prior art Memory cleaning operation is cumbersome, and cleaning efficiency is low, cleaning effect is poor, causes the problem that user experience is low.So with existing skill Art is compared, and terminal provided in this embodiment avoids the cumbersome of memory cleaning operation, brings more conveniences for user, simultaneously also The efficiency and effect for substantially increasing memory cleaning, largely improve the experience satisfaction of user.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of memory method for cleaning, which is characterized in that the memory method for cleaning includes:
Detect whether terminal is currently in high resource occupation state;
If so, obtaining the application for being in running background in the terminal;
The target application in the background application is determined based on default shutdown strategy, is controlled the target application and is closed.
2. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
According to the background application got, the priority of each background application is matched in application priority list;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application as target application, described in control Target application is closed.
3. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
Each background application is judged whether in blacklist list, and run-time memory growth is stored in the blacklist list Rate is more than the application of preset threshold;
If so, controlling the target application using the background application in blacklist list as target application and being closed.
4. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
Obtain the duration on each background application incision backstage;
It is more than the application of preset duration threshold value as target application, control that incision backstage duration is filtered out from each background application The target application is made to be closed.
5. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
According to the background application got, the priority of each background application is matched in application priority list;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application as first object application, control The first object application is closed;
Judge each background application except the first object application in addition to application whether in blacklist list, the black name Single list memory contains the application that run-time memory rate of rise is more than preset threshold;
If so, will in the background application in blacklist list as the second target application, control second target application into Row is closed.
6. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
Each background application is judged whether in blacklist list, and run-time memory growth is stored in the blacklist list Rate is more than the application of preset threshold;
If so, will in the background application in blacklist list as third target application, control the third target application into Row is closed;
Obtain the duration on each background application incision backstage;
It is more than default that incision backstage duration is filtered out in the application in addition to the third target application from each background application The application of duration threshold value is used as the 4th target application, controls the 4th target application and is closed.
7. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
According to the background application got, the priority of each background application is matched in application priority list;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application as the 5th target application, control 5th target application is closed;
Obtain the duration on each background application incision backstage;
It is more than default that incision backstage duration is filtered out in the application in addition to the 5th target application from each background application The application of duration threshold value is used as the 6th target application, controls the 6th target application and is closed.
8. memory method for cleaning as described in claim 1, which is characterized in that the default shutdown strategy includes:
According to the background application got, the priority of each background application is matched in application priority list;
Application of the priority lower than pre-set priority threshold value is filtered out from the background application as the 7th target application, control 7th target application is closed;
Judge each background application in addition to the 7th target application application whether in blacklist list, the black name Single list memory contains the application that run-time memory rate of rise is more than preset threshold;
If so, will in the background application in blacklist list as the 8th target application, control the 8th target application into Row is closed;
Obtain the duration on each background application incision backstage;
From each background application in addition to the 7th target application and the 8th target application application in filter out incision after Platform duration is more than that the application of preset duration threshold value is used as the 9th target application, controls the 9th target application and is closed.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between the processor and the memory;
The processor is for executing one or more program stored in the memory, to realize such as claim 1-8 The step of described in any item memory method for cleaning.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-8 such as appoints The step of memory method for cleaning described in one.
CN201811420379.6A 2018-11-26 2018-11-26 A kind of memory method for cleaning, terminal and computer readable storage medium Pending CN109783223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811420379.6A CN109783223A (en) 2018-11-26 2018-11-26 A kind of memory method for cleaning, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811420379.6A CN109783223A (en) 2018-11-26 2018-11-26 A kind of memory method for cleaning, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109783223A true CN109783223A (en) 2019-05-21

Family

ID=66496628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811420379.6A Pending CN109783223A (en) 2018-11-26 2018-11-26 A kind of memory method for cleaning, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109783223A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167116A (en) * 2019-05-22 2019-08-23 努比亚技术有限公司 Control method, equipment and the computer readable storage medium of wearable device
CN110275760A (en) * 2019-06-27 2019-09-24 深圳市网心科技有限公司 Process based on fictitious host computer processor hangs up method and its relevant device
CN110879751A (en) * 2019-10-08 2020-03-13 上海博泰悦臻网络技术服务有限公司 Application control method, terminal equipment and computer storage medium
CN112000470A (en) * 2020-08-07 2020-11-27 杭州安恒信息技术股份有限公司 Memory data processing method, system and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252389A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Application operation method, system and application
CN106909457A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 EMS memory management process and device
CN108037818A (en) * 2017-10-31 2018-05-15 努比亚技术有限公司 A kind of background application management method, terminal and computer-readable recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252389A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Application operation method, system and application
CN106909457A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 EMS memory management process and device
CN108037818A (en) * 2017-10-31 2018-05-15 努比亚技术有限公司 A kind of background application management method, terminal and computer-readable recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110167116A (en) * 2019-05-22 2019-08-23 努比亚技术有限公司 Control method, equipment and the computer readable storage medium of wearable device
CN110275760A (en) * 2019-06-27 2019-09-24 深圳市网心科技有限公司 Process based on fictitious host computer processor hangs up method and its relevant device
CN110879751A (en) * 2019-10-08 2020-03-13 上海博泰悦臻网络技术服务有限公司 Application control method, terminal equipment and computer storage medium
CN112000470A (en) * 2020-08-07 2020-11-27 杭州安恒信息技术股份有限公司 Memory data processing method, system and device
CN112000470B (en) * 2020-08-07 2024-04-09 杭州安恒信息技术股份有限公司 Memory data processing method, system and device

Similar Documents

Publication Publication Date Title
CN108924364A (en) Message prompt method, mobile terminal and computer readable storage medium
CN109521925A (en) Icon arrangement method, mobile terminal and computer readable storage medium
CN109783223A (en) A kind of memory method for cleaning, terminal and computer readable storage medium
CN109407957A (en) Screen touch control method, terminal and computer readable storage medium
CN109819096A (en) Push display control method, terminal and the computer storage medium of notification message
CN109005574A (en) Cell selecting method, mobile terminal and computer readable storage medium
CN108965602A (en) Application program display methods, mobile terminal and computer readable storage medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109729267A (en) Filter selection method, mobile terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN109151558A (en) A kind of method for processing video frequency, terminal and computer readable storage medium
CN109640020A (en) A kind of video record control method, terminal and computer readable storage medium
CN109379777A (en) A kind of network search method, terminal and computer readable storage medium
CN109587341A (en) A kind of voice communication control method, terminal and computer readable storage medium
CN109710050A (en) A kind of display control method, wearable device and computer readable storage medium
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN109165042A (en) Restoration methods, terminal and computer readable storage medium are interrupted in a kind of application
CN107645588A (en) A kind of message informing processing method, terminal and computer-readable recording medium
CN109919858A (en) A kind of image-region verification method, terminal and computer readable storage medium
CN110351423A (en) A kind of unread message process control method, terminal and computer readable storage medium
CN110191477A (en) A kind of web search control method, terminal and computer readable storage medium
CN109639898A (en) A kind of multi-display method, equipment and computer readable storage medium
CN109410814A (en) The method, apparatus and computer readable storage medium of screen area display control
CN110427219A (en) A kind of application withdrawal control method, terminal and computer readable storage medium

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: 20190521