CN109862184A - Terminal and its resource management-control method, computer readable storage medium - Google Patents

Terminal and its resource management-control method, computer readable storage medium Download PDF

Info

Publication number
CN109862184A
CN109862184A CN201910082142.XA CN201910082142A CN109862184A CN 109862184 A CN109862184 A CN 109862184A CN 201910082142 A CN201910082142 A CN 201910082142A CN 109862184 A CN109862184 A CN 109862184A
Authority
CN
China
Prior art keywords
application program
measured
terminal
resource
operations
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
CN201910082142.XA
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 CN201910082142.XA priority Critical patent/CN109862184A/en
Publication of CN109862184A publication Critical patent/CN109862184A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of terminal and its resource management-control methods, computer readable storage medium, this method passes through when receiving resource and releasing order, terminal is obtained currently in effective number of operations of each application program to be measured of running background, wherein effective number of operations is within the scope of setting history duration, from the number for being switched to front stage operation from the background;According to effective number of operations of each application program to be measured, judge whether each application program to be measured meets release conditions according to preset rules, in this way, using application program to be measured as application program to be released, and terminate the background process of application program to be released, discharge terminal resource occupied by application program to be released;If not, can run application program continuation using application program to be measured as application program, control can be run and run in back way;The invention also discloses a kind of terminals, computer readable storage medium to realize terminal background application and manage to the intelligence of resource, improve user experience by implementing above scheme.

Description

Terminal and its resource management-control method, computer readable storage medium
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of terminal and its resource management-control method, computer Readable storage medium storing program for executing.
Background technique
Current mobile phone can open simultaneously many applications, there is usually one application in can in front stage operation, Other applications opened can only be in running background.User is opening new in application, seldom can actively terminate other and transport on backstage Capable application, therefore unconsciously, may open many applications, cause mobile phone need simultaneously to these applications into Row processing, opens increasing for number of applications, inevitably results in the processing load for increasing mobile phone, makes the resources occupation rates such as CPU, memory It increases, increases electric quantity consumption and fever, influence user experience.
Therefore it provides the application program of a kind of pair of mobile phone running background carries out intelligent control, to user's routine use frequency Not high background application is cleared up automatically, avoids the scheme of mobile phone overload operation, it appears very necessary.
Be currently mostly the frequency of use based on application, such as average daily use duration, to mobile phone background application into Row actively discharges, but this scheme is not very accurate, is not to be bonded very much with user's actual use demand.
Such as using time long application be not user require all the time using, it is more likely that be user's unlatching After the application, forget to terminate the application, the application is made to be in the result of running background for a long time.For example, user opens payment After treasured payment, since user forgets to terminate its process, it is caused to be constantly in background operation state, when mobile phone statistics application makes When with duration, the use duration of the application is just very long.Causing final resource to manage scheme, there are some problems.
Summary of the invention
The technical problem to be solved in the present invention is that: being currently based on cannot be fine using the resource control scheme presence of duration User's use demands are bonded, are affected user experience.For the technical problem, a kind of terminal and its resource control side are provided Method, computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of terminal resource management-control method, the terminal resource control side Method includes:
When receiving resource and releasing order, terminal is obtained currently in effective behaviour of each application program to be measured of running background Make number, effective number of operations is within the scope of setting history duration, from the number for being switched to front stage operation from the background;
According to effective number of operations of each application program to be measured, judge according to preset rules each described to be measured using journey Whether sequence meets release conditions, if so, using the application program to be measured as application program to be released, and terminate described to be released The background process of application program discharges terminal resource occupied by the application program to be released;If not, by described to be measured using journey Sequence can run application program continuation and run in back way as that can run application program described in control.
Optionally, before judging whether each application program to be measured meets release conditions according to preset rules described, Further include:
The availability for detecting each application program to be measured, by effective use of each application program to be measured Rate is compared with default utilization rate threshold value, when the availability is more than or equal to the default utilization rate threshold value, is executed Effective number of operations according to each application program to be measured judges that each application program to be measured is according to preset rules No the step of meeting release conditions;When the availability is lower than the default utilization rate threshold value, by the application to be measured Program is as the application program to be released;The availability is the time that the application program to be measured is in front stage operation With the ratio of the time in running background.
Optionally, described to judge whether each application program to be measured meets release conditions and include: according to preset rules
Effective number of operations of each application program to be measured is successively ranked up according to numerical values recited;
The lesser N number of application program to be measured of effective number of operations is selected, is determined described in N number of application program satisfaction to be measured Release conditions;By remaining each application program to be measured in addition to N number of application program to be measured, determine that it is unsatisfactory for the released strip Part;The N is greater than 0 and is less than the number of the application program to be measured.
Optionally, before the effective lesser N number of application program to be measured of number of operations of selection, further includes:
Obtain the terminal Current resource occupancy, and default first occupancy threshold, the Current resource occupancy Minimum is selected according to the sequence of effective number of operations numerical value from small to large higher than default first occupancy threshold After several application programs to be measured is discharged, the terminal resource occupancy may make to reduce the default occupancy hereinafter, will The minimum number is as the N.
Optionally, described to judge whether each application program to be measured meets release conditions and include: according to preset rules
Effective number of operations of each application program to be measured is compared with preset times threshold value;
When effective number of operations of the application program to be measured is more than or equal to the preset times threshold value, determine it is described to It surveys application program and is unsatisfactory for the release conditions;
When effective number of operations of the application program to be measured is less than the preset times threshold value, described to be measured answer is determined Meet the release conditions with program.
Optionally, the resource, which releases order, includes:
The terminal Current resource occupancy is detected, and judges that the Current resource utilization rate is higher than default second occupancy When threshold value, judgement receives the resource and releases order.
Optionally, the resource, which releases order, includes:
The terminal Current resource occupancy is detected, and judges that the Current resource utilization rate is higher than default second occupancy When threshold value, judgement receives the resource and releases order, and default second occupancy threshold is more than or equal to described first and occupies Rate threshold value.
Optionally, the resource, which releases order, includes:
The terminal is detected in the number M of the application program to be measured of running background, when judging that it is pre- that the M is more than or equal to If when number threshold value, judgement receives the resource and releases order.
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 processor and memory;
The processor is for executing one or more program stored in memory, to realize described in any one as above Terminal resource management-control method the step of.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of described in any item terminal resource management-control methods as above.
Beneficial effect
The present invention provides a kind of terminal and its resource management-control method, computer readable storage medium, for existing resource pipe Prosecutor case haves the defects that be bonded user very well and actually uses demand, by obtaining when receiving resource and releasing order Terminal is currently in effective number of operations of each application program to be measured of running background, wherein effective number of operations is in setting history Within the scope of duration, from the number for being switched to front stage operation from the background;According to effective number of operations of each application program to be measured, according to pre- If rule judges whether each application program to be measured meets release conditions, if so, applying journey using application program to be measured as to be released Sequence, and terminate the background process of application program to be released, discharge terminal resource occupied by application program to be released;If not, will be to Application program, which is surveyed, as that can run application program, control can run application program continuation and run in back way;Effectively operation time Number is more, may indicate that user is more frequent to the use of the application, on the contrary, if user gets over effective number of operations of the application It is few, then show that the application is for a long time in running background, it is entirely a kind of wave to terminal resource that user, which is rarely employed, Take, therefore controlling terminal releases such background application automatically;It solves the defect of Current resource control scheme, realizes terminal Background application manages the intelligence of resource, is conducive to promote user experience.
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 terminal resource management-control method basic flow chart that first embodiment of the invention provides;
Fig. 4 is the structural schematic diagram for the terminal that second 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, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless 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, 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.
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 pass through backhaul (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, eNodeB2021 The access of UE201 to EPC203 can be provided.
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 method for the present invention is proposed.
First embodiment
Fig. 3 is referred to, Fig. 3 is a kind of terminal resource management-control method basic flow chart provided in this embodiment, this method packet It includes:
S301, when receiving resource and releasing order, obtain terminal currently in each application program to be measured of running background Effective number of operations, wherein effective number of operations is within the scope of setting history duration, from time for being switched to front stage operation from the background Number.
In the present embodiment, terminal can detecte itself Current resource occupancy, and judge that Current resource utilization rate is higher than When default second occupancy threshold, judgement receives resource and releases order.Wherein, the mode for detecting resources occupation rate can use Existing any way.Terminal resource includes cpu resource, memory source etc..Default second occupancy threshold can be according to practical feelings Condition flexible setting, such as when EMS memory occupation reaches 90%, judgement receives resource and releases order, to trigger background application Automatic release cleaning.
In other embodiments of the invention, terminal can also detect the number M in the application program to be measured of running background, When judging that M is more than or equal to predetermined number threshold value, judgement receives resource and releases order.Wherein, predetermined number threshold value can root 10,15,20 etc. are set as according to actual conditions flexible setting, such as predetermined number threshold value.For example, working as the number of background application M is 18, and predetermined number threshold value is 15, then may determine that the number of background application has reached predetermined number threshold value, this When determine receive resource release, with trigger background application automatic release clear up.
When determining that receiving resource releases order, it is effective within the scope of setting history duration to obtain background application Number of operations.Setting history duration range can be with flexible setting, such as is set as the previous day, first three days, the last week etc..Effectively behaviour It refers to as number from the number for being switched to front stage operation from the background.It is in running background for a long time, user can not be illustrated to this The usage degree of application is frequent, is the occupancy to terminal resource instead, and consumption terminal is lighted.And according to the feelings of effective number of operations Condition, then can more accurately reflect user to the use frequency of each application, such as certain application effective number of operations compared with It less or is that opening times are less or be for a long time in running background, user forgets to close, therefore can be relatively more accurate Reflect that user to the service condition of the application and infrequently, can close it, suitably to the occupancy of terminal resource; It is opposite, if effectively number of operations is more, user continually will using from be switched to from the background foreground carry out using, unquestionably, User is really in need more frequent to the use of the application using the application namely user, and this background application is then not suitable for Release, need to keep running background, facilitate user be switched at any time foreground carry out using.
S302, according to effective number of operations of each application program to be measured, judge each application program to be measured according to preset rules Whether release conditions are met;If so, step S303 is gone to, if not, going to step S304.
Judge whether each application program to be measured meets release conditions and include: according to preset rules
Effective number of operations of each application program to be measured is successively ranked up according to numerical values recited;Selection effectively operation time The lesser N number of application program to be measured of number, determines that N number of application program to be measured meets release conditions;It will be N number of to be measured using journey except this Remaining each application program to be measured outside sequence, determines that it is unsatisfactory for the release conditions;Wherein N is greater than 0 and is less than current application to be measured The number of program.
For example, there is currently 5 application programs to be measured, respectively using 1, using 2, using 3, using 4, using 5, wherein It is 10 times using 1 effective number of operations within the previous day, effective number of operations of the application 2 within the previous day is 2 times, using 3 Effective number of operations within the previous day is 0 time, and effective number of operations of the application 4 within the previous day is 20 times, and application 5 is previous Effective number of operations in it is 6 times;Each application program to be measured is ranked up according to effective number of operations, such as according to from big To small sequence, it is applied 4 → using 1 → using 5 → using 2 → using 3;Select lesser 3 of effective number of operations to Survey application program, as the application program to be released for meeting release conditions, be applied 5, using 2 and using 3, will as to Discharge application program;And it applies 4 and will continue as application program can be run in running background using 1.
Before selecting effective lesser N number of application program to be measured of number of operations, terminal Current resource can also be obtained and accounted for With rate, and default first occupancy threshold, when Current resource occupancy is higher than default first occupancy threshold, according to effective The sequence of number of operations numerical value from small to large may make terminal to provide after selecting the application program to be measured of minimum number to be discharged Source occupancy is reduced to default first occupancy hereinafter, using the minimum number as N.
Continue by taking above-mentioned 5 application programs to be measured as an example, according to terminal resource occupancy situation, automatically determines required release Application number N.Assuming that detecting that terminal Current resource occupancy is 80%, preset default first occupancy threshold is 70%, then terminal Current resource occupancy is higher than default first occupancy threshold, at this time to each application program to be measured according to having The sequence of number of operations from small to large is imitated, it is as follows: → using 2 → → to apply 1 using 3 → using 5 and apply 4;Select minimum number Application program to be measured discharged so that the resources occupation rate of terminal be reduced to this 70% or less.
For example, may make terminal resource occupancy to be reduced to 70% after being computed and being discharged application program 3 to be measured It, can be with for other application programs 1,2,4,5 to be measured hereinafter, so only need to be discharged the application program 3 to be measured Keep running background;N=1 at this time.
If being computed after only dischargeing application program 3 to be measured, terminal resource occupancy is 75%, can not be reduced to 70% hereinafter, so also need to consider to regard application program 2 to be measured as application to be released, if by application program 3 to be measured and to be measured After application program 2 discharges simultaneously, terminal resource occupancy can be made to be reduced to 70% hereinafter, so only needing to discharge this to be measured Application program 3 and application program to be measured 2 can keep running background for other application programs 1,4,5 to be measured;N at this time =2.
It should be noted that usual second occupancy threshold is greater than the first occupancy threshold.Terminal detects currently When resources occupation rate reaches the second occupancy threshold, triggering terminal starts to execute release process, so that terminal resource occupancy drops As low as the first occupancy threshold hereinafter, in the case where reduction impacts user's use as far as possible, it is negative to reduce terminal processes Lotus reduces electric quantity consumption, promotes treatment effeciency.
In other embodiments of the invention, judge whether each application program to be measured meets released strip according to preset rules Part, can also be in the following way:
Effective number of operations of each application program to be measured is compared with preset times threshold value;In application program to be measured When effective number of operations is more than or equal to preset times threshold value, determine that application program to be measured is unsatisfactory for release conditions;In application to be measured When effective number of operations of program is less than preset times threshold value, determine that the application program to be measured meets release conditions.
Continue by taking above-mentioned 5 application programs to be measured as an example, it is assumed that preset times threshold value is 8 times, then application program to be measured 1 Effective number of operations 10, effective number of operations 2 of application program 2 to be measured, effective number of operations 0 of application program 3 to be measured, to Survey effective number of operations 20 of application program 4, effective number of operations 6 of application program 5 to be measured, by having for each application program to be measured Effect number of operations is compared with preset times threshold value 8, is obtained application program 1 to be measured and is unsatisfactory for release conditions, to be measured to apply journey Sequence 2 meets release conditions, and application program 3 to be measured meets release conditions, and application program 4 to be measured is unsatisfactory for release conditions, to be measured to answer Meet release conditions with program 5, finally obtains application program 2,3,5 to be measured and meet release conditions, application program 1,4 to be measured is discontented Sufficient release conditions.
In other embodiments of the invention, judging whether each application program to be measured meets released strip according to preset rules Before part, application program availability to be measured can be combined with, wherein availability is that application program to be measured is in foreground The ratio of the time of operation and the time in running background.When availability is higher than default utilization rate threshold value, show this Using front stage operation is generally in, user's frequency of use is relatively high;On the contrary, if availability the and default utilization rate threshold value When, then show that the application is generally in background operation state, user is not to be commonly used.For meet utilization rate requirement to Application program (i.e. availability is higher than default utilization rate threshold value) is surveyed, further judges whether to meet by subsequent preset rules Release conditions are handled, and for being unsatisfactory for utilization rate requirement, then directly carry out release processing.It is accurate to be conducive to resource control Property, preferably it is bonded user's use demands.
It specifically includes: the availability of each application program to be measured of detection, by the availability of each application program to be measured It is compared with default utilization rate threshold value, when availability is more than or equal to default utilization rate threshold value, executes according to each to be measured The step of whether each application program to be measured meets release conditions judged according to preset rules for effective number of operations of application program; When availability is lower than default utilization rate threshold value, directly using the application program to be measured as application program to be released.
S303, using application program to be measured as application program to be released, and terminate the background process of application program to be released, Discharge terminal resource occupied by application program to be released.
S304, it can run application program using application program to be measured as application program, control can be run and continue with backstage side Formula operation.
Terminal resource management-control method provided in this embodiment is worked as by when receiving resource and releasing order, obtaining terminal Effective number of operations of preceding each application program to be measured in running background, wherein effective number of operations is in setting history duration model In enclosing, from the number for being switched to front stage operation from the background;According to effective number of operations of each application program to be measured, according to preset rules Judge whether each application program to be measured meets release conditions, if so, using application program to be measured as application program to be released, and tie The background process of beam application program to be released, discharges terminal resource occupied by application program to be released;If not, applying journey for be measured Sequence can run application program continuation and run in back way as that can run application program, control;Effective number of operations is more, can To show that user is more frequent to the use of the application, on the contrary, showing this if user is fewer to effective number of operations of the application Using running background is only in for a long time, it is entirely a kind of waste to terminal resource that user, which is rarely employed, therefore is controlled Terminal releases such background application automatically;It solves the defect of Current resource control scheme, realizes terminal background application pair The intelligence control of resource, is conducive to promote user experience.
Second embodiment
The embodiment of the present invention provides a kind of terminal, refers to Fig. 4 on the basis of first embodiment, which includes place Manage device 41, memory 42 and communication bus 43;Wherein communication bus 43 is for realizing the company between processor 41 and memory 42 Connect letter;Processor 41 is for executing one or more program stored in memory 42, to realize as in first embodiment The step of described terminal resource management-control method.The description of first embodiment is specifically referred to, details are not described herein.
3rd embodiment
The embodiment of the present invention provides a kind of computer readable storage medium on the basis of first embodiment, the computer Readable storage medium storing program for executing is stored with one or more program, which can be held by one or more processor Row, the step of to realize terminal resource management-control method as described in the first embodiment.Specifically refer to retouching for first embodiment It states, details are not described herein.
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 terminal resource management-control method, which is characterized in that the terminal resource management-control method includes:
When receiving resource and releasing order, it is currently secondary in effective operation of each application program to be measured of running background to obtain terminal Number, effective number of operations are within the scope of setting history duration, from the number for being switched to front stage operation from the background;
According to effective number of operations of each application program to be measured, judge that each application program to be measured is according to preset rules It is no to meet release conditions, if so, using the application program to be measured as application program to be released, and terminate the application to be released The background process of program discharges terminal resource occupied by the application program to be released;If not, the application program to be measured is made For application program can be run, application program continuation can be run described in control and is run in back way.
2. terminal resource management-control method as described in claim 1, which is characterized in that judge each institute according to preset rules described It states before whether application program to be measured meet release conditions, further includes:
The availability for detecting each application program to be measured, by the availability of each application program to be measured with Default utilization rate threshold value is compared, when the availability is more than or equal to the default utilization rate threshold value, described in execution According to effective number of operations of each application program to be measured, judge whether each application program to be measured is full according to preset rules The step of sufficient release conditions;When the availability is lower than the default utilization rate threshold value, by the application program to be measured As the application program to be released;The availability is time and the place that the application program to be measured is in front stage operation In the ratio of the time of running background.
3. terminal resource management-control method as described in claim 1, which is characterized in that it is described judge according to preset rules it is each described Whether application program to be measured meets release conditions
Effective number of operations of each application program to be measured is successively ranked up according to numerical values recited;
The lesser N number of application program to be measured of effective number of operations is selected, determines that N number of application program to be measured meets the release Condition;By remaining each application program to be measured in addition to N number of application program to be measured, determine that it is unsatisfactory for the release conditions; The N is greater than 0 and is less than the number of the application program to be measured.
4. terminal resource management-control method as claimed in claim 3, which is characterized in that smaller in the effective number of operations of selection N number of application program to be measured before, further includes:
The terminal Current resource occupancy is obtained, and default first occupancy threshold, the Current resource occupancy are higher than Default first occupancy threshold selects minimum number according to the sequence of effective number of operations numerical value from small to large After application program to be measured is discharged, the terminal resource occupancy may make to reduce default first occupancy hereinafter, will The minimum number is as the N.
5. terminal resource management-control method as described in claim 1, which is characterized in that it is described judge according to preset rules it is each described Whether application program to be measured meets release conditions
Effective number of operations of each application program to be measured is compared with preset times threshold value;
When effective number of operations of the application program to be measured is more than or equal to the preset times threshold value, described to be measured answer is determined The release conditions are unsatisfactory for program;
When effective number of operations of the application program to be measured is less than the preset times threshold value, determine described to be measured using journey Sequence meets the release conditions.
6. such as claim 1-3,5 described in any item terminal resource management-control methods, which is characterized in that the resource releases order Include:
The terminal Current resource occupancy is detected, and judges that the Current resource utilization rate is higher than default second occupancy threshold When, judgement receives the resource and releases order.
7. terminal resource management-control method as claimed in claim 4, which is characterized in that the resource, which releases order, includes:
The terminal Current resource occupancy is detected, and judges that the Current resource utilization rate is higher than default second occupancy threshold When, judgement receives the resource and releases order, and default second occupancy threshold is more than or equal to the first occupancy threshold Value.
8. terminal resource management-control method as described in any one in claim 1-5, which is characterized in that the resource releases order packet It includes:
The terminal is detected in the number M of the application program to be measured of running background, when judging that the M is more than or equal to default When number threshold value, judgement receives the resource and releases order.
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 processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of terminal resource management-control method described in one.
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 such as claim 1 to 8 Any one of described in terminal resource management-control method the step of.
CN201910082142.XA 2019-01-28 2019-01-28 Terminal and its resource management-control method, computer readable storage medium Pending CN109862184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910082142.XA CN109862184A (en) 2019-01-28 2019-01-28 Terminal and its resource management-control method, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910082142.XA CN109862184A (en) 2019-01-28 2019-01-28 Terminal and its resource management-control method, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109862184A true CN109862184A (en) 2019-06-07

Family

ID=66896559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910082142.XA Pending CN109862184A (en) 2019-01-28 2019-01-28 Terminal and its resource management-control method, computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109862184A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300223A (en) * 2019-06-25 2019-10-01 维沃移动通信有限公司 A kind of terminal device operating method and terminal device
CN112954699A (en) * 2019-12-11 2021-06-11 大唐移动通信设备有限公司 Spectrum sharing method and device for wireless communication, electronic equipment and storage medium
WO2022127632A1 (en) * 2020-12-14 2022-06-23 华为技术有限公司 Resource management and control method, and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024825A (en) * 2011-09-26 2013-04-03 中国移动通信集团公司 Method and device of distributing network source among multiple applications of terminal
CN104239094A (en) * 2014-08-29 2014-12-24 小米科技有限责任公司 Method and device for controlling background application programs and terminal equipment
CN104915208A (en) * 2015-06-15 2015-09-16 网易传媒科技(北京)有限公司 Application program head image display controlling method and application program head image display controlling device
EP2924946A1 (en) * 2014-03-28 2015-09-30 Telefonica Digital España, S.L.U. A computer implemented method and system for alerting an incoming communication in a communication application and computer programs thereof
CN107844333A (en) * 2017-09-06 2018-03-27 努比亚技术有限公司 One kind applies method for cleaning, mobile terminal and computer-readable recording medium
CN107896273A (en) * 2017-09-28 2018-04-10 努比亚技术有限公司 A kind of terminal processes management method, terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024825A (en) * 2011-09-26 2013-04-03 中国移动通信集团公司 Method and device of distributing network source among multiple applications of terminal
EP2924946A1 (en) * 2014-03-28 2015-09-30 Telefonica Digital España, S.L.U. A computer implemented method and system for alerting an incoming communication in a communication application and computer programs thereof
CN104239094A (en) * 2014-08-29 2014-12-24 小米科技有限责任公司 Method and device for controlling background application programs and terminal equipment
CN104915208A (en) * 2015-06-15 2015-09-16 网易传媒科技(北京)有限公司 Application program head image display controlling method and application program head image display controlling device
CN107844333A (en) * 2017-09-06 2018-03-27 努比亚技术有限公司 One kind applies method for cleaning, mobile terminal and computer-readable recording medium
CN107896273A (en) * 2017-09-28 2018-04-10 努比亚技术有限公司 A kind of terminal processes management method, terminal and computer-readable recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300223A (en) * 2019-06-25 2019-10-01 维沃移动通信有限公司 A kind of terminal device operating method and terminal device
CN112954699A (en) * 2019-12-11 2021-06-11 大唐移动通信设备有限公司 Spectrum sharing method and device for wireless communication, electronic equipment and storage medium
CN112954699B (en) * 2019-12-11 2023-05-30 大唐移动通信设备有限公司 Frequency spectrum sharing method and device for wireless communication, electronic equipment and storage medium
WO2022127632A1 (en) * 2020-12-14 2022-06-23 华为技术有限公司 Resource management and control method, and device

Similar Documents

Publication Publication Date Title
CN109039862A (en) Message prompt method, terminal and computer readable storage medium
CN107395858A (en) A kind of reminding method of notification message, terminal and computer-readable recording medium
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN108521658A (en) Reduce interference method, mobile terminal and computer readable storage medium
CN107656774A (en) Adaptive regulation method, device, terminal device and the storage medium of systematic parameter
CN109453523A (en) A kind of game picture display processing method, terminal and computer readable storage medium
CN109884543A (en) A kind of method and apparatus that remaining battery uses duration prediction
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
CN110069333A (en) Backstage management-control method, mobile terminal and the computer readable storage medium of application
CN109862184A (en) Terminal and its resource management-control method, computer readable storage medium
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN107239332A (en) A kind of process handling method, mobile terminal and computer-readable recording medium
CN109545120A (en) Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium
CN110069167A (en) Touch point sweep-out method, mobile terminal and computer readable storage medium
CN110086939A (en) Terminal message processing method, device, mobile terminal and readable storage medium storing program for executing
CN109889651A (en) A kind of notification message processing method, terminal and computer readable storage medium
CN110087267A (en) Method for switching network, device, electronic equipment and readable storage medium storing program for executing
CN108958932A (en) A kind of control method of background application, terminal and computer readable storage medium
CN109240881A (en) Processing method, equipment and computer readable storage medium are moved back in a kind of sudden strain of a muscle of application program
CN109379777A (en) A kind of network search method, terminal and computer readable storage medium
CN108696909A (en) Based reminding method, terminal and the computer readable storage medium of network connection
CN108259658A (en) Flexible screen terminal and its electricity based reminding method, 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: 20190607