CN108021220A - A kind of terminal applies control method, terminal and computer-readable recording medium - Google Patents
A kind of terminal applies control method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN108021220A CN108021220A CN201711009917.8A CN201711009917A CN108021220A CN 108021220 A CN108021220 A CN 108021220A CN 201711009917 A CN201711009917 A CN 201711009917A CN 108021220 A CN108021220 A CN 108021220A
- Authority
- CN
- China
- Prior art keywords
- terminal
- intended application
- application
- processes
- freezed
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of terminal applies control method, terminal and computer-readable recording medium, terminal applies control method therein records file by obtaining the process in terminal under each process of intended application first, the progress recognizing information of all processes of intended application is obtained from the process record file of acquisition again, it is last that all processes of intended application are freezed according to the progress recognizing information got.Solve after intended application is frozen in the prior art, some processes under the intended application continue to run with from the management and control of management of process mechanism, cause to apply belonging to the process being waken up from the background so as to the problem of consuming terminal electric energy.The invention also discloses a kind of terminal and computer-readable storage medium, by implementing such scheme, realize thoroughly freezing for intended application, further increase terminal using duration and the Experience Degree of user.
Description
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of terminal applies control method, terminal and calculating
Machine readable storage medium storing program for executing.
Background technology
With the depth development of internet, more and more industries are added in internet tide, generate countless be based on
The application of internet, there is provided the recreation based on word, picture, video, game, big data service etc..People for this
Requirement to terminal capabilities is also being continuously improved, although the configuration and software optimization of present terminal have evolved to good rank
Section, but with developing as application blowout, the type and quantity for the application program installed on intelligent terminal are also more and more.When
Have the process much applied always in running background at the same time, this will certainly occupied terminal memory and the valuable source such as CPU, and
The substantial amounts of electric energy of terminal is consumed, very poor experience is brought to user.
The appearance freezed with application, it is a kind of preferable background application way to manage.It identify to user and
It is hung up It is not necessary to the application of operation, forbids its operation, solved again when user really needs this application by speech
Freeze, resume operation, solve memory due to being not necessarily to the application process occupied terminal of operation and the valuable source such as CPU and
Consume a series of problems of the substantial amounts of electric energy of terminal and flow.But in practical applications, third-party application is in order to make oneself not
By the management and control of system, the way of use is, a kind of from management of process mechanism using being created after startup
(ActvityManagerService) process of management, such as native processes.When freezing this in application, creating in this way
Process do not freeze with freezing for application, in other words, do not freeze process still can occupied terminal memory and
The valuable sources such as CPU, further result in and are applied belonging to the process being waken up from the background so as to consume terminal electric energy, i.e., do not reach
To the effect for thoroughly freezing the application.
The content of the invention
The technical problem to be solved in the present invention is:A kind of terminal applies control program is provided, to solve the prior art
After middle intended application is frozen, some processes under the intended application continue to run with from the management and control of management of process mechanism, lead
Cause to apply belonging to the process being waken up from the background so as to the problem of consuming terminal electric energy.For the technical problem, there is provided a kind of
Terminal applies control method, terminal and computer-readable recording medium.
In order to solve the above technical problems, the present invention provides a kind of terminal applies control method, the terminal applies controlling party
Method includes:
The process record file in terminal under each process of intended application is obtained, the process record file bag under a process
Progress recognizing information containing all processes by the process initiation;
The progress recognizing information of all processes of the intended application is obtained from the process record file of acquisition;
All processes of the intended application are freezed according to the progress recognizing information of acquisition.
Optionally, the intended application is that each application of operating status is currently in the terminal;
Before being freezed according to the progress recognizing information of acquisition to all processes of the intended application, further include:
Judge whether the intended application currently meets freezing condition, if so, then according to the progress recognizing information pair of acquisition
All processes of the intended application are freezed.
Optionally, judge whether the intended application currently meets that freezing condition includes:
Judge whether the terminal currently meets to freeze trigger condition, treated if so, judging whether the intended application belongs to
Freeze to apply, if so, judging that the intended application currently meets freezing condition.
Optionally, judge whether the intended application currently meets that freezing condition includes:
Judge whether the intended application belongs to one that the terminal current application is freezed in list and apply, if so, sentencing
The intended application of breaking currently meets freezing condition, and the application is freezed list and answered comprising all of freeze operation are currently performed
With;
Optionally, the trigger condition of freezing includes:
Terminal is in breath screen state, or terminal is in dormancy doze patterns.
Optionally, the intended application is freezed to apply in list for the terminal current application, and list is freezed in the application
Include all applications for being currently performed freeze operation.
Optionally, the progress recognizing information according to acquisition carries out freezing to wrap to all processes of the intended application
Include:
All processes of the intended application are found according to the progress recognizing information of acquisition;
All processes found are performed and are freezed;
Or,
The identification information that the intended application has currently been performed the process freezed is obtained, and should with the target of acquisition
It is compared with the identification information of all processes, obtains the identification letter that the intended application is not performed the process freezed currently
Breath;
Not being performed for the intended application is found according to the identification information for not being performed the process freezed of acquisition to freeze
All processes;
All carry out execution to what is found and freeze.
Optionally, obtaining the process record file in terminal under each process of intended application includes:
Obtain the application number UID of the intended application;
Obtain each process number PID under the application number UID;
Obtain the process that each process number PID is corresponded under process and record file.
Further, present invention also offers a kind of terminal, the terminal to include processor, memory and communication bus;
The communication bus is used for realization the connection communication between the processor and memory;
The processor is used to perform one or more program stored in the memory, to realize that above-mentioned terminal should
The step of with control method.
Further, present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium
One or more program is stored with, one or more of programs can be performed by one or more processor, to realize
Such as the step of above-mentioned any terminal application control method.
Beneficial effect
The present invention provides a kind of terminal applies control method, terminal and computer-readable recording medium, by obtaining eventually
Process record file in end under each process of intended application, should so as to get target from the process of acquisition record file
The progress recognizing information of all processes, so can be according to the progress recognizing information got to intended application all processes
Freezed, including intended application is from the process of management of process mechanism management, forbid its continue to run with occupied terminal memory and
The valuable sources such as CPU, avoid because the process of the operation cause belonging to apply and be waken up from the background so as to consuming terminal electric energy
Phenomenon.Thoroughly freezing for intended application is realized, and has saved the valuable sources such as terminal memory and CUP, while reduces end
The unnecessary consumption of electric energy is held, further, add terminal uses duration, and then improves user experience.
Brief description of the drawings
Below in conjunction with accompanying drawings and embodiments, the invention will be further described, in attached drawing:
Fig. 1 is the hardware architecture diagram for realizing each optional terminal of embodiment one of 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 flow chart for the terminal applies control method that first embodiment of the invention provides;
Fig. 4 is the flow diagram that the acquisition process that first embodiment of the invention provides records file;
Fig. 5 is a kind of flow diagram for all processes for freezing intended application that first embodiment of the invention provides;
Fig. 6 is the flow diagram for all processes that the another kind that first embodiment of the invention provides freezes intended application;
Fig. 7 is a kind of flow chart of the terminal applies control method for refinement that second embodiment of the invention provides;
Fig. 8 is the structure diagram for the terminal that third embodiment of the invention provides;
Fig. 9 is the flow chart of the terminal applies control method for another refinement that fourth embodiment of the invention provides.
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 follow-up description, the suffix using such as " module ", " component " or " unit " for representing element is only
Be conducive to the explanation of the present 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 can include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the component 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 form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components,
Either combine some components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, by the data sending of uplink 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, penetrate
Frequency unit 101 can also be communicated by wireless communication with network and other equipment.Above-mentioned wireless communication can use any communication
Standard or agreement, include 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, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
Formula, speech recognition mode, broadcast reception mode when under isotype, by radio frequency unit 101 or WiFi module 102 it is receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exports,.Moreover, audio output unit 103
The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced 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 one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used for the information for showing by information input by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect user on it or neighbouring touch operation
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment device is driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operation lever etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, when contact 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, contact panel 1071 and display panel
1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, can
The function that outputs and inputs of mobile terminal is realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power 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 storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
A part, by running or performing the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle 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) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite includes UE (User Equipment, the use for communicating connection successively for the LTE system of universal mobile communications technology, the LTE system
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
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 connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used in relation to service features, data rate etc.
The dedicated information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provides available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
In order to solve after intended application is frozen in existing scheme, some processes under the intended application are from management of process
The management and control of mechanism and continue to run with, cause to apply belonging to the process being waken up from the background so as to the problem of consuming terminal electric energy.This
Embodiment provides a kind of terminal applies control method, and this method is by obtaining the process in terminal under each process of intended application
File is recorded, so as to record the progress recognizing information for all processes that intended application is got in file from the process of acquisition,
And then all processes of intended application can be freezed according to the progress recognizing information got, including intended application from into
The process of thread management mechanism management.Thoroughly freezing for intended application is realized, and then adds the use duration of terminal, further
Improve user experience.
The specific of the terminal applies control method that the present embodiment is provided is specifically described below and performs step.Referring to Fig. 3, figure
3 be the basic flow chart of terminal applies control method provided in this embodiment, which includes:
S301:Obtain the process record file in terminal under each process of intended application, the process record under a process
File includes the progress recognizing information of all processes by the process initiation.
In the present embodiment, intended application can be that each application of operating status is currently in terminal.For example, set terminal
In be currently at operating status application have A, B, C, D, E, then these are intended application using A, B, C, D, E.It is appreciated that
, intended application can also be that terminal current application freeze application in list.Operation shape is currently in terminal for example, setting
The application of state has A, B, C, D, E, F, R, Q, T, while the application that terminal current application is freezed in list has A, B, F, then at this time
Intended application is A, B, F.
It is worth noting that, when intended application freeze for terminal current application it is in list in application, using freezing list
Contain the current all applications for being performed freeze operation.For example, set be currently in terminal operating status application have A, B,
C, D, E, F, R, Q, T, while intended application is E, F, R, Q, T, then application at this time freeze list and contain currently to be performed jelly
All applications of knot operation are E, F, R, Q, T.In practical applications, using freeze list can be by user according to practical application needs
Flexibly set or system summarizes to obtain by detecting the service condition of each application.
It should be noted that the acquisition modes for obtaining the process record file in terminal under each process of intended application can be with
Corresponding acquisition modes are selected according to the standard of each terminal system, at least can arbitrarily realize that process records file using existing
Extraction mode.In order to make it easy to understand, the present embodiment is illustrated with a kind of exemplary acquisition modes, shown in Figure 4, bag
Include:
S401:Obtain the application number UID of intended application.
It is understood that in Android system, because it is single user system, in order to realize data sharing, it is every
A application is all assigned with different application number UID.For example, be currently in setting intended application as terminal operating status application A,
Using B, using C, while the corresponding application number UID of intended application A, B, C is respectively 2,4,5, then the target got at this time should
It is respectively 2,4,5 with the application number UID of A, B, C.It is worth noting that, the application number UID of intended application is substantially exactly target
Apply the identity in said system.In fact, as long as intended application can be identified in the protection model of the present invention
In enclosing, it is not only limited in common application number UID.
S402:Obtain each process number PID under application number UID.
Further, then the process number PID of each process under application number UID is obtained.It is understood that an application by
Multiple process compositions, wherein each process has its corresponding process number PID.For example, set, setting section and above-mentioned example
It is identical, meanwhile, if process is a1, a2, a3, a4 under the intended application A that application number UID is 2, and process a1, a2, a3, a4 are corresponded to
Process number PID be respectively 11,12,13,14;Process is b1, b2, b3, b4 under the intended application B that application number UID is 4, and into
The corresponding process number PID of journey b1, b2, b3, b4 is respectively 21,22,23,24;Process is under the intended application C that application number UID is 5
C1, c2, c3, c4, and the corresponding process number PID of process c1, c2, c3, c4 is respectively 31,32,33,34, then getting at this time should
Distinguish 11,12,13,14 with number for the corresponding process number of each process a1, a2, a3, a4 under 2;Get each under application number is 4
The corresponding process number difference 21,22,23,24 of process b1, b2, b3, b4;Get application number for each process c1, c2 under 5, c3,
The corresponding process number difference 31,32,33,34 of c4.It is worth noting that, process number PID is substantially exactly the process in affiliated mesh
Identity under mark application.As long as in fact, can be identified to process within the scope of the present invention, not only limit
In common process number PID.
S403:Obtain the process that each process number PID is corresponded under process and record file.
Further, obtain the process that each process number PID is corresponded under process and record file.It will be clear that one into
The progress recognizing information of all processes by the process initiation is contained in process record file under journey.For example, setting, set
Part is identical with above-mentioned example, meanwhile, if process number PID is 11,12,13,14 corresponding processes record file and are respectively
a11.procs、a12.procs、a13.procs、a14.procs;Process number PID is 21,22,23,24 corresponding process records
File is respectively b21.procs, b22.procs, b23.procs, b24.procs;Process number PID corresponds to for 31,32,33,34
Process record file be respectively c31.procs, c32.procs, c33.procs, c34.procs, then get process at this time
Number PID is 11,12,13,14 corresponding processes record files be respectively a11.procs, a12.procs, a13.procs,
a14.procs;Get process number PID for 21,22,23,24 corresponding processes record files be respectively b21.procs,
b22.procs、b23.procs、b24.procs;Get process number PID and record file for 31,32,33,34 corresponding processes
Respectively c31.procs, c32.procs, c33.procs, c34.procs.
It is understood that in Android system, relatively common process record file is cgroups.procs.It is worth
It is noted that have in IOS systems and other systems, it is necessary to see by the progress recognizing information of all processes of the process initiation
The position of body storage.In fact, in other any systems, as long as have recorded in process record file by the process initiation
All processes progress recognizing information it is within the scope of the present invention, be not only limited in common process record file.
Recorded for example, process can be stored in by the progress recognizing information of the process A all processes started inside file C, can also
It is stored in inside process record file D, i.e., process record file can be needed flexibly to be become by developer according to practical application
Change.
S302:The progress recognizing information of all processes of intended application is obtained from the process record file of acquisition.
File is recorded for the process that above-mentioned steps are got, then therefrom obtains the process knowledge of all processes of intended application
Other information.It is understood that progress recognizing information in the present embodiment can include process number, process name, process status, into
Journey priority, process have taken CPU time etc..For example, the progress recognizing information of one of process in process record file
Have recorded process number be 2, process status be wait state, process priority 5.It will be clear that recited herein
It is several frequently seen progress recognizing information, not representing progress recognizing information must include or only include above-mentioned several information, can
Flexibly to be set according to concrete application scene.
S303:All processes of intended application are freezed according to the progress recognizing information of acquisition.
In the present embodiment, intended application is that each application of operating status is currently in terminal, according to the process of acquisition
Before identification information freezes all processes of intended application, further include and judge whether intended application currently meets to freeze bar
Part, if so, then being freezed according to the progress recognizing information of acquisition to all processes of intended application.
It is worth noting that, judge intended application currently whether to meet freezing condition that at least there are following two modes:
First way, judges whether terminal currently meets to freeze trigger condition, if so, judging whether intended application belongs to again
In waiting to freeze to apply, if so, then judging that intended application currently meets freezing condition.
It should be noted that it is mentioned herein freeze trigger condition include terminal be in put out screen state, or terminal
In dormancy doze patterns.It should be appreciated that terminal is in and puts out screen status representative and terminal and be under black state, i.e., certain
Degree characterizes user does not have using terminal at this time.Existing many smart mobile phones or computer etc. all can be to the uses of itself application
Situation monitors, and will extinguish screen when monitoring that user may not use to save power consumption.For example, laptop exists
Under some are set, screen will be put out with energy saving by not moving mouse or point beating keyboard in certain time.
Illustrated for a better understanding, being in dormancy doze patterns to terminal herein.Judge terminal currently whether
Need to meet following three conditions in dormancy doze patterns:First, terminal needs to be under non-charging mode, i.e., terminal cannot
Enter doze patterns in the case of charging, including but it is unlimited charge normal, USB line connects the charging such as computer.Second, terminal will also
In putting out under screen state, explained putting out screen state above-mentioned, be not repeated to illustrate herein.3rd, terminal can't be located
In the case of movement.For example, for mobile phone, put out screen state and can only characterize user to a certain extent and do not use hand
Machine, in some scenarios, user in the state of it can also allow mobile phone to be in screen locking and put out screen during using mobile phone manually, but
Actually but hold mobile phone and carry out the movement such as running, or user uses Mobile Telephone Gps, mobile phone may also be at this time to be put out
Under screen state, but and the voice broadcast without prejudice to mobile phone and navigation function, then mobile phone is cannot to enter dormancy at this time
Doze patterns, because user is still using its some functions.In the case that these three conditions all meet, in a timing
Between after, system is not it is determined that terminal has been used by a user currently, then will enter dormancy doze patterns.For example, set
Terminal is mobile phone, and user uses mobile phone to play music, and the alarm time of alarm clock is provided with the alarm clock function of mobile phone, then
Mobile phone is placed on desk, then user's music listened and releived that is recumbent on a sofa falls asleep.Then in this case, user is simultaneously
Need not such as " QQ " " wechat " " microblogging " other application, at this time mobile phone just meet into dormancy doze patterns.
It is worth noting that, the above-mentioned decision process to " judging whether terminal is currently in dormancy doze patterns " is only one
The relatively simple specific mode of kind, three conditions of its foundation are also intended merely to conveniently understand that user does not have the feelings of using terminal
Condition, not representing the present invention can only judge whether terminal is currently in dormancy doze moulds by above-mentioned three cited conditions
This decision procedure of formula.As long as in fact can judge that terminal is currently at the decision procedures of dormancy doze patterns all should be in this hair
In bright protection domain.
Currently meet for above-mentioned judgement terminal and treated after freezing trigger condition, it is necessary to judge whether intended application belongs to again
Freeze to apply.It should be appreciated that after terminal currently meets and freezes trigger condition, system is considered as user at this time may be
Through no using terminal, the application in terminal system will be freezed, the power consumption of terminal is saved with this, herein it
Before, system can be carried out using the selection for freezing target first.For example, setting, setting section is identical with above-mentioned example, while application A,
B, D in running background and receives and dispatches information, if being respectively " QQ " " wechat " " microblogging " using A, B, D, but user is simultaneously at this time
It is not required " QQ " " wechat " " microblogging ", then system will prevent from applying on backstage to using " QQ " " wechat " " microblogging " freezing
The power consumption of operation increase mobile phone, " QQ " " wechat " " microblogging " at this time are to wait to freeze to apply, i.e., " micro- using " QQ " " wechat "
It is rich " meet freezing condition.
The second way, judges whether intended application belongs to one that terminal current application is freezed in list and apply, if so,
Judge that intended application currently meets freezing condition.
The explanation for freezing list to application is not repeated herein and repeats referring to described above.It is understood that when judgement
Go out intended application belong to terminal current application freeze it is in list in application, then judge intended application currently meet freezing condition.
For example, setting the application that operating status is currently in terminal has A, B, C, D, E, F, R, Q, T, while terminal current application is freezed to arrange
Application in table has A, B, F, then intended application A, B, F meets freezing condition at this time.
In the present embodiment, all processes of intended application are carried out freezing to exist extremely according to the progress recognizing information of acquisition
Few following two modes:
First way, for details, reference can be made to Fig. 5:
S501:All processes of intended application are found according to the progress recognizing information of acquisition.
It is worth noting that, when intended application be wait to freeze in application, can by each process under waiting to freeze to apply into
Journey identification information finds all processes of intended application, and all processes at this time are not frozen.For example, set wait to freeze to apply as
A, waits to freeze to apply under A at this time have process a1, a2, a3, process a11, a12, a13 is contained in the identification information of process a1, into
Process a21, a22, a23 are contained in the identification information of journey a2, contained in the identification information of process a3 process a31, a32,
A33, it is appreciated that at this time wait to freeze apply A under all process a11, a12, a13, a21, a22, a23, a31,
A32, a33 are not frozen.
When intended application freeze for terminal current application it is in list in application, by each process under waiting to freeze to apply
Progress recognizing information finds all processes of intended application, and all processes at this time may be some frozen, some not to be frozen.
For example, setting intended application currently to freeze to apply B in list, there are process b1, b2, the knowledge of process b1 under intended application B at this time
Process b11, b12, b13 are contained in other information, process b21, b22, b23 are contained in the identification information of process b2, has been held
The process freezed of having gone is b11, b12, b13, and the process for being not carried out freezing is b21, b22, b23, but is still to obtain to apply B at this time
Under all process b11, b12, b13, b21, b22, b23.
S502:All processes found are performed and are freezed.
Further, all processes of the intended application to finding are freezed, and no matter whether the process was frozen.Example
Such as, should as process b11, b12, b13 in the identification information using the process b1 of B in above-mentioned example have been carried out freezing
Be not carried out freezing with process b21, b22, b23 in the identification information of the process b2 of B, at this time by acquisition using the institute under B
There are process b11, b12, b13, b21, b22, b23 all to be freezed.
The second way, for details, reference can be made to Fig. 6:
S601:Obtain intended application and be currently performed the identification information of the process freezed, and with the intended application of acquisition
The identification information of all processes is compared, and obtains the identification information that intended application is not performed the process freezed currently.
For a better understanding, illustrated at this with an example.For example, intended application is set currently to freeze in list
Apply A, have process a1, a2, a3, a4 under intended application A at this time, the process for having been carried out freezing is a2, a3, then by target
The identification information that process a2, a3 freezed is performed using A is compared with the identification information of process a1, a2, a3, a4, at this time
Obtain the identification information that intended application A is not performed process a1, a4 freezed currently.
S602:Not being performed for intended application is found according to the identification information for not being performed the process freezed of acquisition to freeze
All processes.
Further, the identification information for not being performed the process freezed is obtained.For example, obtain intended application in above-mentioned example
A is not performed the identification information for process a1, a4 freezed currently, if contained in the identification information of process a1 process a11, a12,
A13, contains process a41, a42, a43 in the identification information of process a4, then the intended application A found, which is not performed currently, to be freezed
All processes be a11, a12, a13, a41, a42, a43.
S603:All processes found are performed and are freezed.
Further, all processes freezed are not performed to the intended application found to freeze.For example, that finds is upper
It is a11, a12, a13, a41, a42, a43 to state intended application A in example and be not performed all processes freezed currently, then to process
A11, a12, a13, a41, a42, a43 are all freezed.
A kind of terminal applies control method provided in this embodiment, obtains in terminal under each process of intended application first
Process records file, so as to record the progress recognizing letter for all processes that intended application is got in file from the process of acquisition
Breath, and then all processes of intended application can be freezed according to the progress recognizing information got, including intended application is not
By the process of management of process mechanism management, forbid it to continue to run with the valuable sources such as occupied terminal memory and CPU, avoid because being somebody's turn to do
The process of operation is applied being waken up from the background so as to consume the phenomenon of terminal electric energy belonging to causing.Realize the thorough of intended application
Freeze, and saved the valuable sources such as terminal memory and CUP, while reduce the unnecessary consumption of terminal electric energy, further
, add terminal uses duration, and then improves user experience.
Second embodiment
The present embodiment is on the basis of first embodiment, to this hair by taking a kind of specific terminal applies control method as an example
Bright work further illustrates, and specifically may refer to Fig. 7.
If the application of operating status is currently in terminal A, B, C, D, the corresponding application number of intended application A, B, C, D
UID is respectively M1, M2, M3, M4, the corresponding process number PID of process a1, a2, a3, a4 of application number UID M1 is m_a1, m_a2,
m_a3、m_a4;The corresponding process number PID of process b1, b2, b3, b4 under application number UID is M2 is m_b1, m_b2, m_b3, m_
b4;The corresponding process number PID of process c1, c2, c3, c4 of application number UID M3 is m_c1, m_c2, m_c3, m_c4;Application number
The corresponding process number PID of process d1, d2, d3, d4 of UID M4 is m_d1, m_d2, m_d3, m_d4.
S701:Obtain the application number UID of intended application.
For example, first obtain intended application application number UID, then get intended application A, B, C, D application number UID M1,
M2、M3、M4。
S702:Obtain each process number PID under application number UID.
Example in undertaking, further, process number PID m_a1 of process a1, a2, a3, a4 that acquisition application number UID is M1,
m_a2、m_a3、m_a4;Obtain process number PID m_b1 of process b1, b2, b3, b4 that application number UID is M2, m_b2, m_b3,
m_b4;Obtain process number PID m_c1, m_c2, m_c3, m_c4 of process c1, c2, c3, c4 that application number UID is M3;Obtaining should
With process number PID m_d1, m_d2, m_d3, m_d4 of number UID process d1, d2, d3, d4 for being M4.
S703:Obtain the process that each process number PID is corresponded under process and record file.
Example in undertaking, further, obtains process number PID m_a1, m_a2, m_a3, m_a4, m_b1, m_b2, m_b3, m_
Process record file under b4, m_c1, m_c2, m_c3, m_c4, m_d1, m_d2, m_d3, m_d4, wherein m_a1, m_a2, m_
The progress recognizing information that includes of process record file of a3, m_a4 are respectively m_a11, m_a12, m_a21, m_a22, m_a31, m_
A32, m_a41, m_a42;The progress recognizing information that includes of process record file of wherein m_b1, m_b2, m_b3, m_b4 is respectively
M_b11, m_b21, m_b31, m_b41;The progress recognizing letter that the process record file of wherein m_c1, m_c2, m_c3, m_c4 include
Cease respectively m_c11, m_c12, m_c13, m_c21, m_c22, m_c23, m_c31, m_c32, m_c33, m_c41, m_c42, m_
c43;The progress recognizing information that includes of process record file of wherein m_d1, m_d2, m_d3, m_d4 are respectively m_d11, m_d21,
M_d31, m_d41.
S704:Judge whether terminal meets to freeze trigger condition.
If so, going to step S705, otherwise, step S709 is gone to.
Example in undertaking, further, if terminal is in dormancy doze patterns, terminal, which is met, at this time freezes trigger condition,
Go to step S705.
S705:Judge whether intended application belongs to wait to freeze to apply.
If so, going to step S706, otherwise, step S709 is gone to.
Example in undertaking, further, if user is without using A, B, C is applied at this time, then intended application A, B, C at this time belongs to
In waiting to freeze to apply, step S706 is gone to.
S706:Judge that terminal currently meets freezing condition.
S707:All processes of intended application are found according to the progress recognizing information of acquisition.
Example in undertaking, further, finds progress recognizing information m_a11, m_a12, m_a21, m_ of intended application A, B, C
a22、m_a31、m_a32、m_a41、m_a42、m_b11、m_b21、m_b31、m_b41、m_c11、m_c12、m_c13、m_c21、
m_c22、m_c23、m_c31、m_c32、m_c33、m_c41、m_c42、m_c43。
S708:All processes found are performed and are freezed.
Example in undertaking, further, to the above-mentioned all process m_a11, m_a12 found, m_a21, m_a22, m_a31,
m_a32、m_a41、m_a42、m_b11、m_b21、m_b31、m_b41、m_c11、m_c12、m_c13、m_c21、m_c22、m_
C23, m_c31, m_c32, m_c33, m_c41, m_c42, m_c43 are freezed.
S709:Terminate.
Terminal applies control method provided in this embodiment, by obtaining the process in terminal under each process of intended application
File is recorded, then the progress recognizing information for all processes that intended application is got in file is recorded from the process of acquisition, and then
All processes of intended application can be freezed according to the progress recognizing information got, including intended application is from process pipe
Manage mechanism management process, forbid it to continue to run with the valuable sources such as occupied terminal memory and CPU, avoid because the operation into
Journey is applied being waken up from the background so as to consume the phenomenon of terminal electric energy belonging to causing.It is truly realized the thorough jelly of intended application
Knot, and the valuable sources such as terminal memory and CUP have been saved, while reduce the unnecessary consumption of terminal electric energy, further,
Add terminal uses duration, and then improves user experience.
3rd embodiment
The present embodiment additionally provides a kind of terminal, shown in Figure 8, including processor 801, memory 802 and communication
Bus 803;
Communication bus 803 is used for realization the connection communication between processor 801 and memory 802;
Memory 802 is used to perform one or more programs, processor 801 be used to performing stored in memory one or
The multiple programs of person, to realize following steps:
The process record file in terminal under each process of intended application is obtained, the process record file bag under a process
Progress recognizing information containing all processes by the process initiation;
The progress recognizing information of all processes of intended application is obtained from the process record file of acquisition;
All processes of intended application are freezed according to the progress recognizing information of acquisition.
It should be noted that intended application can be that each application of operating status is currently in terminal, or eventually
End current application freezes the application in list.It is worth noting that, when intended application is freezed in list for terminal current application
In application, contain the current all applications for being performed freeze operation using list is freezed.In practical applications, using freezing to arrange
Table can be needed to carry out flexibly to set by user according to practical application or system is carried out always by detecting the service condition of each application
Knot obtains.
In the present embodiment, processor 801 " obtaining the process record file in terminal under each process of intended application " bag
Include following steps:
Obtain the application number UID of intended application;
Obtain each process number PID under application number UID;
Obtain the process that each process number PID is corresponded under process and record file;
It should be noted that the acquisition modes of the process record file in terminal under each process of intended application can basis
The standard of each terminal system selects corresponding acquisition modes, at least can arbitrarily realize carrying for process record file using existing
The mode taken, however it is not limited to above-mentioned exemplified acquisition modes.
It is understood that in Android system, because it is single user system, in order to realize data sharing, it is every
A application is all assigned with different application number UID.It is worth noting that, the application number UID of intended application is substantially exactly target
Apply the identity in said system.In fact, as long as intended application can be identified in the protection model of the present invention
In enclosing, it is not only limited in common application number UID.
It will be clear that an application is made up of multiple processes, wherein each process has its corresponding process
Number PID.It is worth noting that, process number PID is substantially exactly identity of the process under said target application.It is true
On, as long as can be identified to process within the scope of the present invention, it is not only limited in common process number PID.
It should be noted that the process under a process records all processes contained in file by the process initiation
Progress recognizing information.In Android system, relatively common process record file is cgroups.procs.It is noticeable
It is, it is necessary to see that the progress recognizing information of all processes by the process initiation is specifically stored in IOS systems and other systems
Position.In fact, in other any systems, as long as have recorded in process record file by all of the process initiation
The progress recognizing information of process is within the scope of the present invention, is not only limited in common process record file.
In the present embodiment, processor 801 is from " process of acquisition records all processes of acquisition intended application in file
Progress recognizing information ".
File is recorded for the process that above-mentioned steps are got, then therefrom obtains the process knowledge of all processes of intended application
Other information.It is understood that progress recognizing information contains process number, process name, process status, process priority, process
CPU time etc. is taken.It will be clear that simply several frequently seen progress recognizing information recited herein, does not represent
Progress recognizing information only includes above-mentioned several information.
In the present embodiment, processor 801 " carries out all processes of intended application according to the progress recognizing information of acquisition
Freeze ".
It should be noted that intended application is that each application of operating status is currently in terminal, according to the process of acquisition
Before identification information freezes all processes of intended application, further include and judge whether intended application currently meets to freeze bar
Part, if so, then being freezed according to the progress recognizing information of acquisition to all processes of intended application.
It is worth noting that, processor 801 " judging whether intended application currently meets freezing condition " " at least there are following
Two ways:
First way, judges whether terminal currently meets to freeze trigger condition, if so, judging whether intended application belongs to again
In waiting to freeze to apply, if so, then judging that intended application currently meets freezing condition.
It should be noted that it is mentioned herein freeze trigger condition include terminal be in put out screen state, or terminal
In dormancy doze patterns.It should be appreciated that terminal is in and puts out screen status representative and terminal and be under black state, i.e., certain
Degree characterizes user does not have using terminal at this time.Existing many smart mobile phones or computer etc. all can be to the uses of itself application
Situation monitors, and will extinguish screen when monitoring that user may not use to save power consumption.
Illustrated for a better understanding, being in dormancy doze patterns to terminal herein.Judge terminal currently whether
Need to meet following three conditions in dormancy doze patterns:First, terminal needs to be under non-charging mode, i.e., terminal cannot
Enter doze patterns in the case of charging, including but it is unlimited charge normal, USB line connects the charging such as computer.Second, terminal will also
In putting out under screen state, explained putting out screen state above-mentioned, be not repeated to illustrate herein.3rd, terminal can't be located
In the case of movement.For example, for mobile phone, put out screen state and can only characterize user to a certain extent and do not use hand
Machine, in some scenarios, user in the state of it can also allow mobile phone to be in screen locking and put out screen during using mobile phone manually, but
Actually but hold mobile phone and carry out the movement such as running, or user uses Mobile Telephone Gps, mobile phone may also be at this time to be put out
Under screen state, but and the voice broadcast without prejudice to mobile phone and navigation function, then mobile phone is cannot to enter dormancy at this time
Doze patterns, because user is still using its some functions.In the case that these three conditions all meet, in a timing
Between after, system is not it is determined that terminal has been used by a user currently, then will enter dormancy doze patterns.
It is worth noting that, the above-mentioned decision process to " judging whether terminal is currently in dormancy doze patterns " is only one
The relatively simple specific mode of kind, three conditions of its foundation are also intended merely to conveniently understand that user does not have the feelings of using terminal
Condition, not representing the present invention can only judge whether terminal is currently in dormancy doze moulds by above-mentioned three cited conditions
This decision procedure of formula.As long as in fact can judge that terminal is currently at the decision procedures of dormancy doze patterns all should be in this hair
In bright protection domain.
Currently meet for above-mentioned judgement terminal and treated after freezing trigger condition, it is necessary to judge whether intended application belongs to again
Freeze to apply.It should be appreciated that after terminal currently meets and freezes trigger condition, system is considered as user at this time may be
Through no using terminal, the application in terminal system will be freezed, the power consumption of terminal is saved with this, herein it
Before, system can be carried out using the selection for freezing target first.
The second way, judges whether intended application belongs to one that terminal current application is freezed in list and apply, if so,
Judge that intended application currently meets freezing condition.
The explanation for freezing list to application is not repeated herein and repeats referring to described above.It is understood that when judgement
Go out intended application belong to terminal current application freeze it is in list in application, then judge intended application currently meet freezing condition.
In certain embodiments, processor 801 " according to the progress recognizing information of acquisition find intended application it is all into
Journey, performs all processes found and freezes ".
It is worth noting that, when intended application be wait to freeze in application, can by each process under waiting to freeze to apply into
Journey identification information finds all processes of intended application, and all processes at this time are not frozen.When intended application is worked as terminal
Preceding application is freezed in list in application, by waiting that the progress recognizing information of each process under freezing to apply finds intended application
All processes, all processes at this time may be some frozen, some not to be frozen.Further, the intended application to finding
All processes freezed, no matter whether the process was frozen.
In further embodiments, processor 801 " obtains the identification letter that intended application has currently been performed the process freezed
Breath, and is compared with the identification information of all processes of the intended application of acquisition, obtains intended application and be not performed currently to freeze
Process identification information;Not being performed for intended application is found according to the identification information for not being performed the process freezed of acquisition
All processes freezed;All processes found are performed and are freezed ".
For a better understanding, illustrated at this with an example.For example, intended application is set currently to freeze in list
Apply A, have process a1, a2, a3, a4 under intended application A at this time, the process for having been carried out freezing is a2, a3, then by target
The identification information that process a2, a3 freezed is performed using A is compared with the identification information of process a1, a2, a3, a4, at this time
Obtain the identification information that intended application A is not performed process a1, a4 freezed currently.
Further, the identification information for not being performed the process freezed is obtained.For example, obtain intended application in above-mentioned example
A is not performed the identification information for process a1, a4 freezed currently, if contained in the identification information of process a1 process a11, a12,
A13, contains process a41, a42, a43 in the identification information of process a4, then the intended application A found, which is not performed currently, to be freezed
All processes be a11, a12, a13, a41, a42, a43.
Further, all processes freezed are not performed to the intended application found to freeze.For example, that finds is upper
It is a11, a12, a13, a41, a42, a43 to state intended application A in example and be not performed all processes freezed currently, then to process
A11, a12, a13, a41, a42, a43 are all freezed.
It is worth noting that, illustrate in order not to burden, the institute in incomplete illustrated embodiments one, two in the present embodiment
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 recording medium, and computer-readable recording medium can be mobile phone, puts down
Plate etc., computer-readable recording medium storage has process record file, using list is freezed, to realize that above-mentioned terminal applies control
The step of method.
Terminal provided in this embodiment and computer-readable recording medium, by each process for obtaining intended application in terminal
Under process record file, so as to from the process of acquisition record file in get intended application all processes process know
Other information, and then all processes of intended application can be freezed according to the progress recognizing information got, including target should
With the process from management of process mechanism management, forbid it to continue to run with the valuable sources such as occupied terminal memory and CPU, avoid
Because the process of the operation cause belonging to apply being waken up from the background so as to consuming the phenomenon of terminal electric energy.Being truly realized target should
Thoroughly freeze, and saved the valuable sources such as terminal memory and CUP, while reduce that terminal electric energy is unnecessary to disappear
Consumption, further, add terminal uses duration, and then improves user experience.
Fourth embodiment
The present embodiment is on the basis of 3rd embodiment, there is provided a kind of processor 801 realizes the mistake of terminal applies control
Exemplified by journey, the specific implementation process is as follows, reference can be made to Fig. 9.
If intended application is freezed to apply F, E, H in list for current application.
S901:Processor 801 obtains the application number UID of intended application.
Such as:If the corresponding application number UID of intended application F, E, H is respectively M1, M2, M3, then processor 801 obtains first
To intended application F, E, H application number UID M1, M2, M3.
S902:Processor 801 obtains each process number PID under application number UID.
Example in undertaking, further, processor 801 obtain the process number PID of process a1, a2, a3 that application number UID is M1
m_a1、m_a2、m_a3;Obtain process number PID m_b1, the m_b2 for process b1, b2 that application number UID is M2;Obtain application number
UID is process number PID m_c1, m_c2, m_c3, m_c4 of process c1, c2, c3, c4 of M3;Obtain application number UID be M4 into
Process number PID m_d1, m_d2, m_d3 of journey d1, d2, d3.
S903:Processor 801 obtains the process that each process number PID is corresponded under process and records file.
Example in undertaking, further, processor 801 obtain process number PID m_a1, m_a2, m_a3, m_b1, m_b2, m_
The process record of process record file, wherein m_a1, m_a2, m_a3 under c1, m_c2, m_c3, m_c4, m_d1, m_d2, m_d3
The progress recognizing information that file includes is respectively m_a11, m_a12, m_a21, m_a22, m_a31, m_a32;Wherein m_b1, m_b2
The progress recognizing information that includes of process record file be respectively m_b11, m_b21;Wherein m_c1, m_c2, m_c3, m_c4 into
The progress recognizing information that Cheng Jilu files include is respectively m_c11, m_c12, m_c13, m_c21, m_c22, m_c23, m_c31,
M_c32, m_c33, m_c41, m_c42, m_c43;The progress recognizing that the process record file of wherein m_d1, m_d2, m_d3 include
Information is respectively m_d11, m_d21, m_d31.
S904:Processor 801 judges whether intended application belongs to one that terminal current application is freezed in list and apply.
If so, going to step S905, otherwise, step S909 is gone to.
Example in undertaking, further, processor 801 judge that intended application F, E, H belong to terminal current application and freeze
Application in list, goes to step S905.
S905:Processor 801 judges that terminal currently meets freezing condition.
S906:Processor 801 obtains the identification information that intended application is performed the process freezed, and should with the target of acquisition
It is compared with the identification information of all processes, obtains the identification information that intended application is not performed the process freezed currently.
Example in undertaking, further, if the identification information that intended application has performed the process freezed is m_a11, m_
A12, m_a21, m_a22, m_a31, m_a32, m_b11, processor 801 obtained after with the above-mentioned intended application institute got
Have identification information m_a11, m_a12 of process, m_a21, m_a22, m_a31, m_a32, m_b11, m_b21, m_c11, m_c12,
m_c13、m_c21、m_c22、m_c23、m_c31、m_c32、m_c33、m_c41、m_c42、m_c43、m_d11、m_d21、m_d31
It is compared, obtains not being performed currently identification information m_b21, m_c11, m_c12, m_c13, m_c21, m_ of the process freezed
c22、m_c23、m_c31、m_c32、m_c33、m_c41、m_c42、m_c43、m_d11、m_d21、m_d31。
S907:Processor 801 finds intended application not according to the identification information for not being performed the process freezed of acquisition
It is performed all processes freezed.
Example in undertaking, further, all processes freezed that are not performed that processor 801 finds intended application are m_
b21、m_c11、m_c12、m_c13、m_c21、m_c22、m_c23、m_c31、m_c32、m_c33、m_c41、m_c42、m_c43、
m_d11、m_d21、m_d31。
S908:Processor 801, which performs all processes found, to be freezed.
Example in undertaking, further, processor 801 is to all process m_b21, m_c11, m_c12, m_c13, m_c21, m_
C22, m_c23, m_c31, m_c32, m_c33, m_c41, m_c42, m_c43, m_d11, m_d21, m_d31 are freezed.
S909:Terminate.
Terminal provided in this embodiment and computer-readable recording medium, by each process for obtaining intended application in terminal
Under process record file, so as to from the process of acquisition record file in get intended application all processes process know
Other information, and then all processes of intended application can be freezed according to the progress recognizing information got, including target should
With the process from management of process mechanism management, forbid it to continue to run with the valuable sources such as occupied terminal memory and CPU, avoid
Because the process of the operation cause belonging to apply being waken up from the background so as to consuming the phenomenon of terminal electric energy.Being truly realized target should
Thoroughly freeze, and saved the valuable sources such as terminal memory and CUP, while reduce that terminal electric energy is unnecessary to disappear
Consumption, further, add terminal uses duration, and then improves user experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of terminal applies control method, it is characterised in that the terminal applies control method includes:
The process record file in terminal under each process of intended application is obtained, the process record file, which includes, passes through the process
The progress recognizing information of all processes started;
The progress recognizing information of all processes of the intended application is obtained from the process record file of acquisition;
All processes of the intended application are freezed according to the progress recognizing information of acquisition.
2. terminal applies control method as claimed in claim 1, it is characterised in that the intended application be the terminal in when
Preceding each application in operating status;
Before being freezed according to the progress recognizing information of acquisition to all processes of the intended application, further include:
Judge whether the intended application currently meets freezing condition, if so, then according to the progress recognizing information of acquisition to described
All processes of intended application are freezed.
3. terminal applies control method as claimed in claim 2, it is characterised in that judge whether the intended application is currently full
Sufficient freezing condition includes:
Judge whether the terminal currently meets to freeze trigger condition, wait to freeze if so, judging whether the intended application belongs to
Using if so, judging that the intended application currently meets freezing condition.
4. terminal applies control method as claimed in claim 2, it is characterised in that judge whether the intended application is currently full
Sufficient freezing condition includes:
Judge whether the intended application belongs to one that the terminal current application is freezed in list and apply, if so, judging institute
State intended application and currently meet freezing condition, the application freezes list and includes all applications for being currently performed freeze operation.
5. terminal applies control method as claimed in claim 3, it is characterised in that the trigger condition of freezing includes:
Terminal is in breath screen state, or terminal is in dormancy doze patterns.
6. terminal applies control method as claimed in claim 1, it is characterised in that the intended application is current for the terminal
Using freezing to apply in list, the application freezes list and includes all applications for being currently performed freeze operation.
7. the terminal applies control method as described in claim 4 or 6, it is characterised in that the progress recognizing according to acquisition
Information carries out freezing to include to all processes of the intended application:
All processes of the intended application are found according to the progress recognizing information of acquisition;
All processes found are performed and are freezed;
Or,
Obtain the identification information that the intended application has currently been performed the process freezed, and with the intended application institute of acquisition
The identification information for having process is compared, and obtains the identification information that the intended application is not performed the process freezed currently;
The institute that freezes is not performed according to what the identification information for not being performed the process freezed of acquisition found the intended application
There is process;
All carry out execution to what is found and freeze.
8. such as claim 1-6 any one of them terminal applies control methods, it is characterised in that obtain intended application in terminal
Each process under process record file include:
Obtain the application number UID of the intended application;
Obtain each process number PID under the application number UID;
Obtain the process that each process number PID is corresponded under process and record file.
9. a kind of terminal, it is characterised in that the terminal includes processor, memory and communication bus;
The communication bus is used for realization the connection communication between processor and memory;
The processor is used to perform one or more program stored in the memory, to realize such as claim 1-8
Any one of terminal applies control method the step of.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be performed by one or more processor, to realize as in claim 1-8
The step of any one of them terminal applies control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711009917.8A CN108021220A (en) | 2017-10-25 | 2017-10-25 | A kind of terminal applies control method, terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711009917.8A CN108021220A (en) | 2017-10-25 | 2017-10-25 | A kind of terminal applies control method, terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108021220A true CN108021220A (en) | 2018-05-11 |
Family
ID=62080185
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711009917.8A Pending CN108021220A (en) | 2017-10-25 | 2017-10-25 | A kind of terminal applies control method, terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108021220A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144232A (en) * | 2018-08-01 | 2019-01-04 | Oppo广东移动通信有限公司 | Process handling method and device, electronic equipment, computer readable storage medium |
CN110069322A (en) * | 2019-03-21 | 2019-07-30 | 努比亚技术有限公司 | Processing method, terminal device and the storage medium of background application |
CN110989819A (en) * | 2019-12-03 | 2020-04-10 | Oppo广东移动通信有限公司 | Doze mode control method, device, mobile terminal and storage medium |
CN112997132A (en) * | 2018-11-08 | 2021-06-18 | 深圳市欢太科技有限公司 | Application freezing method and device and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021891A (en) * | 2007-01-26 | 2007-08-22 | 华为技术有限公司 | Process management method and device |
CN102779072A (en) * | 2012-06-18 | 2012-11-14 | 中国科学院上海微系统与信息技术研究所 | Embedded system and dormancy and wake-up method of application process thereof |
CN104199669A (en) * | 2014-09-12 | 2014-12-10 | 北京奇虎科技有限公司 | Method and device for managing application program processes |
US20160054778A1 (en) * | 2014-08-21 | 2016-02-25 | Samsung Electronics Co., Ltd. | Method and electronic device for reducing current consumption by the electronic device |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
CN105677460A (en) * | 2015-12-28 | 2016-06-15 | 小米科技有限责任公司 | Application processing method and apparatus |
CN106125882A (en) * | 2016-06-15 | 2016-11-16 | 深圳市万普拉斯科技有限公司 | Application program management method and electronic equipment |
CN106249843A (en) * | 2016-07-25 | 2016-12-21 | 深圳天珑无线科技有限公司 | A kind of course control method, device and mobile device |
CN106250223A (en) * | 2016-07-28 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | A kind of background process management method and terminal unit |
-
2017
- 2017-10-25 CN CN201711009917.8A patent/CN108021220A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021891A (en) * | 2007-01-26 | 2007-08-22 | 华为技术有限公司 | Process management method and device |
CN102779072A (en) * | 2012-06-18 | 2012-11-14 | 中国科学院上海微系统与信息技术研究所 | Embedded system and dormancy and wake-up method of application process thereof |
US20160054778A1 (en) * | 2014-08-21 | 2016-02-25 | Samsung Electronics Co., Ltd. | Method and electronic device for reducing current consumption by the electronic device |
CN104199669A (en) * | 2014-09-12 | 2014-12-10 | 北京奇虎科技有限公司 | Method and device for managing application program processes |
CN105677460A (en) * | 2015-12-28 | 2016-06-15 | 小米科技有限责任公司 | Application processing method and apparatus |
CN105468426A (en) * | 2016-01-05 | 2016-04-06 | 珠海市魅族科技有限公司 | Application freezing method and terminal |
CN106125882A (en) * | 2016-06-15 | 2016-11-16 | 深圳市万普拉斯科技有限公司 | Application program management method and electronic equipment |
CN106249843A (en) * | 2016-07-25 | 2016-12-21 | 深圳天珑无线科技有限公司 | A kind of course control method, device and mobile device |
CN106250223A (en) * | 2016-07-28 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | A kind of background process management method and terminal unit |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109144232A (en) * | 2018-08-01 | 2019-01-04 | Oppo广东移动通信有限公司 | Process handling method and device, electronic equipment, computer readable storage medium |
CN109144232B (en) * | 2018-08-01 | 2020-12-01 | Oppo广东移动通信有限公司 | Process processing method and device, electronic equipment and computer readable storage medium |
CN112997132A (en) * | 2018-11-08 | 2021-06-18 | 深圳市欢太科技有限公司 | Application freezing method and device and electronic equipment |
CN110069322A (en) * | 2019-03-21 | 2019-07-30 | 努比亚技术有限公司 | Processing method, terminal device and the storage medium of background application |
CN110069322B (en) * | 2019-03-21 | 2023-12-05 | 努比亚技术有限公司 | Background application processing method, terminal equipment and storage medium |
CN110989819A (en) * | 2019-12-03 | 2020-04-10 | Oppo广东移动通信有限公司 | Doze mode control method, device, mobile terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107241492B (en) | A kind of dynamic information display method, equipment and computer readable storage medium | |
CN107436779A (en) | A kind of application management method, equipment and computer-readable recording medium | |
CN108390988A (en) | Fast operating method, mobile terminal and computer readable storage medium | |
CN107132974A (en) | Terminal freezes screen processing method, terminal and computer-readable recording medium | |
CN108108081A (en) | Method for information display, mobile terminal and readable storage medium storing program for executing based on double-sided screen | |
CN108881635A (en) | Screen luminance adjustment method, mobile terminal and computer readable storage medium | |
CN108021220A (en) | A kind of terminal applies control method, terminal and computer-readable recording medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN110300435A (en) | A kind of communication pattern switching method, terminal and computer readable storage medium | |
CN107589887A (en) | One kind applies startup method and terminal | |
CN110180181A (en) | Screenshot method, device and the computer readable storage medium of Wonderful time video | |
CN108762631A (en) | A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN110069167A (en) | Touch point sweep-out method, mobile terminal and computer readable storage medium | |
CN108040170A (en) | A kind of unlocked by fingerprint method, terminal device and computer-readable storage medium | |
CN107390856A (en) | A kind of method, mobile terminal and storage medium for reducing mobile terminal power consumption | |
CN107273433A (en) | A kind of file scanning method, equipment and computer-readable recording medium | |
CN107229410A (en) | Interactive operation method, mobile terminal and computer-readable recording medium | |
CN108776600A (en) | Application program pretrigger method, mobile terminal and computer readable storage medium | |
CN108363479A (en) | A kind of terminal display screen control method, terminal and computer readable storage medium | |
CN108322595A (en) | A kind of control method, terminal and computer readable storage medium | |
CN107707755A (en) | Button application method, terminal and computer-readable recording medium | |
CN107566608A (en) | A kind of system air navigation aid, equipment and computer-readable recording medium | |
CN109445945A (en) | Memory allocation method, mobile terminal, server and the storage medium of application program | |
CN107466081A (en) | A kind of wireless switching method and terminal | |
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: 20180511 |