CN110032267A - Information processing method, device, mobile terminal and computer readable storage medium - Google Patents
Information processing method, device, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN110032267A CN110032267A CN201810023233.1A CN201810023233A CN110032267A CN 110032267 A CN110032267 A CN 110032267A CN 201810023233 A CN201810023233 A CN 201810023233A CN 110032267 A CN110032267 A CN 110032267A
- Authority
- CN
- China
- Prior art keywords
- background process
- incidence relation
- foreground application
- foreground
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- 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
-
- 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Abstract
The invention relates to a kind of information processing method, device, mobile terminal and computer readable storage mediums.The above method, comprising: when listening to foreground application starting, record the runing time after the foreground application starts on foreground;If the runing time reaches preset time threshold, the background process for having incidence relation with the foreground application is obtained;The state of the determining background process for having incidence relation with the foreground application;If the state of the background process is frozen state, thaw to the background process.Above- mentioned information processing method, device, mobile terminal and computer readable storage medium can thaw to background process that foreground application has incidence relation, accelerate the system speed of response.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of information processing method, device, mobile terminal and meter
Calculation machine readable storage medium storing program for executing.
Background technique
With the rapid development of Internet, intelligent mobile terminal has become the most common electronic equipment of many users, example
Such as smart phone, plate battery plate.User can install various application program on intelligent mobile terminal and carry out using working as application
Program when being run from the background, can and front stage operation application program seize CPU (Central Processing Unit, in
Central processor), memory, the system resources such as bandwidth, cause to occur the application Caton of front stage operation, system operation slowly and it is mobile eventually
The problems such as end fever.
In traditional mode, intelligent mobile terminal can freeze the background application for seizing foreground application resource,
By running background application freezed after, the background application freezed does not use system resource, thus can reach reduce power consumption,
Promote the effect of the fluency of foreground application operation.
Summary of the invention
The embodiment of the present application provides a kind of information processing method, device, mobile terminal and computer readable storage medium, can
To thaw to background process that foreground application has incidence relation, accelerate the system speed of response.
A kind of information processing method, comprising:
When listening to foreground application starting, the runing time after the foreground application starts on foreground is recorded;
If the runing time reaches preset time threshold, the backstage for having incidence relation with the foreground application is obtained
Process;
The state of the determining background process for having incidence relation with the foreground application;
If the state of the background process is frozen state, thaw to the background process.
A kind of information processing unit, comprising:
Time recording module, for recording the fortune after foreground application starts on foreground when listening to foreground application starting
The row time;
Process obtains module, if reaching preset time threshold for runing time, acquisition has with foreground application to be associated with
The background process of relationship;
State determining module, the state for the determining background process for having incidence relation with foreground application;
Defrosting module thaws to background process if the state for background process is frozen state.
A kind of mobile terminal, including memory and processor are stored with computer program, the calculating in the memory
When machine program is executed by the processor, so that the processor realizes method as described above.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
Method as described above is realized when row.
Above- mentioned information processing method, device, mobile terminal and computer readable storage medium are opened when listening to foreground application
When dynamic, in the runing time on foreground after record foreground application starting, if runing time reaches preset time threshold, acquisition and foreground
It thaws using the background process for having incidence relation, and to the background process for having incidence relation in frozen state,
It can thaw to background process that foreground application has incidence relation, reduce foreground application and needed in operation using tool
The waiting time that the background process of standby incidence relation thaws again, accelerate the system speed of response.
Detailed description of the invention
Fig. 1 is the block diagram of mobile terminal in one embodiment;
Fig. 2 is the system architecture diagram of information processing method in one embodiment;
Fig. 3 is the flow diagram of information processing method in one embodiment;
Fig. 4 is the resource constraint grade of the determining background process for having incidence relation with foreground application in one embodiment
Flow diagram;
Fig. 5 is the other schematic diagram of resource group in one embodiment;
Fig. 6 is the resource constraint grade of the determining background process for having incidence relation with foreground application in another embodiment
Flow diagram;
Fig. 7 is the flow diagram that the process in frozen state is terminated in one embodiment;
Fig. 8 is the block diagram of information processing unit in one embodiment;
Fig. 9 is the block diagram of information processing unit in another embodiment;
Figure 10 is the block diagram of mobile terminal in another embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not
For limiting the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes
It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action
Second client is known as the first client.The first client and the second client both client, but it is not same visitor
Family end.
Fig. 1 is the block diagram of mobile terminal in one embodiment.As shown in Figure 1, the mobile terminal includes passing through system bus
Processor, memory, display screen and the input unit of connection.Wherein, memory may include non-volatile memory medium and processing
Device.The non-volatile memory medium of mobile terminal is stored with operating system and computer program, and the computer program is by processor
To realize a kind of information processing method provided in the embodiment of the present application when execution.The processor calculates and controls energy for providing
Power supports the operation of entire mobile terminal.Built-in storage in mobile terminal is the computer journey in non-volatile memory medium
The operation of sequence provides environment.The display screen of mobile terminal can be liquid crystal display or electric ink display screen etc., input dress
It sets and can be the touch layer covered on display screen, be also possible to the key being arranged on mobile terminal case, trace ball or Trackpad,
It is also possible to external keyboard, Trackpad or mouse etc..The mobile terminal can be mobile phone, tablet computer or individual digital and help
Reason or wearable device etc..It will be understood by those skilled in the art that structure shown in Fig. 1, only with application scheme phase
The block diagram of the part-structure of pass does not constitute the restriction for the mobile terminal being applied thereon to application scheme, specific to move
Dynamic terminal may include perhaps combining certain components or with different components than more or fewer components as shown in the figure
Arrangement.
Fig. 2 is the system architecture diagram of information processing method in one embodiment.As shown in Fig. 2, including in the system architecture
JAVA space layer 210, local ccf layer 220 and kernel (Kernel) space layer 230.It may include freezing in JAVA space layer 210
Management module 212 is tied, what mobile terminal can freeze management module 212 to realize each application to operation by this freezes plan
Slightly, related application that is more to backstage power consumption or seizing a large amount of system resources carries out freeze operation.It is wrapped in local ccf layer 220
Device 224 is managed containing resource prioritization and limitation management device 222 and platform freezing pipe.Mobile terminal can pass through resource prioritization and limitation
The different application of 222 real-time servicing of manager is in different resource use priority and different resource groups, and according to
The demand on upper layer adjusts the resource group of application program to reach optimization performance, saves the effect of power consumption.Mobile terminal can
Freeze manager 224 for the application that can freeze from the background according to the length for entering freeze-off time by platform, is assigned to corresponding pre-
If different levels frozen crust.Optionally, which may include three, be respectively: CPU limitation sleep pattern, CPU freeze
Sleep pattern, process deep freezing mode.Wherein, CPU limit sleep pattern refer to the occupied cpu resource of associated process into
Row limitation, makes associated process occupy less cpu resource, vacant cpu resource is tilted to other not frozen processes, limit
The occupancy to cpu resource has been made, has also accordingly limited process to the occupancy of Internet resources and I/O interface resource;CPU freezes to sleep
Sleep mode, which refers to, forbids associated process using CPU, and retains the occupancy to memory, when being forbidden to use cpu resource, corresponding net
Network resource and I/O interface resource are also prohibited from using;Process deep freezing mode refers in addition to being forbidden to use cpu resource,
Further the occupied memory source of associated process is recycled, the memory of recycling uses for other processes.Optionally, originally
Ground ccf layer 220 may also include interface module, the interface module include exploitation to upper layer binder interface, the frame on upper layer or
The instruction that person sends resource constraint or freeze using the binder interface by offer is to resource prioritization and limitation management
Device 222 and platform freezing pipe manage device 224.
May include in kernel spacing layer 230 UID management module 231, Cgroup module 233, Binder control module 235,
Proceeding internal memory recycling module 237 and freezes time-out and exit module 239.Wherein, UID management module 231 is for realizing based on answering
The resource of User Identity (User Identifier, UID) Lai Guanli third-party application is freezed.It compares
In based on process identity mark (Process Identifier, PID) Lai Jinhang process control, it is more convenient for uniformly managing by UID
Manage the resource of the application of a user.Cgroup module 233 is for providing a set of perfect CPU, CPUSET, memory
(memory), input/output (input/output, I/O) and the relevant resource constraint mechanism of Net.Binder manages module 235
For realizing the control of the priority of backstage binder communication.Proceeding internal memory recycling module 237 is for realizing process deep freezing
Mode can mainly discharge the file area of process when some third-party application is chronically at frozen state in this way, from
And reach the module for saving memory, also accelerate this and applies the speed in starting next time.Freeze time-out and exit module 239 to can be used for
Solve occur freezing the exception that overtime scene generates.By above-mentioned system architecture, it can be achieved that in each embodiment of the application
Information processing method.
As shown in figure 3, in one embodiment, providing a kind of information processing method, comprising the following steps:
Step 310, when listening to foreground application starting, in the runing time on foreground after record foreground application starting.
One or more application program can have been run on mobile terminal simultaneously, it may include front stage operation foreground application and
In the background application of running background.Mobile terminal can monitor the operating status of each application program, wherein operating status
It may include but be not limited to starting, front stage operation, running background and exit.When mobile terminal listens to foreground application starting,
In the runing time on foreground after this starting of recordable foreground application, wherein listening to foreground application starting may refer to monitor
Front stage operation is started and entered to application.
Optionally, mobile terminal can monitor the application program being currently running by active manager, obtain each
The operating status for the application program being currently running.In one embodiment, mobile terminal can pass through adjustable pipe at regular intervals
The RunningAppProcessInfo class of reason device obtains the list of application being currently running, and can record in the list of application has movement
The application identities of the currently running each application of terminal, wherein application identities can be by one of number, letter and symbol etc.
Or a variety of compositions.Mobile terminal can will be in application identities and the last list of application obtained in this list of application for obtaining
Application identities be compared.If the application identities of application exist only in the list of application of this acquisition, it is not present in one
The list of application of secondary acquisition then can determine that the application is the application newly started.Mobile terminal can obtain the application newly started, and sentence
Break the new starting application be in front stage operation or running background, if applying in front stage operation for the new starting, can determine
The application is used for the foreground of starting.
Step 320, if runing time reaches preset time threshold, the backstage for having incidence relation with foreground application is obtained
Process.
Process (Process) is program in computer about the primary operation activity on certain data acquisition system, be system into
The basic unit of row Resource Distribution and Schedule is the basis of operating system configuration.Can usually have been run on mobile terminal it is multiple into
Journey, different processes can be used for executing different tasks respectively.When mobile terminal listens to foreground application starting, can record should
In the time of front stage operation after foreground application starting.If reaching preset time in the time of front stage operation after foreground application starting
Threshold value, mobile terminal can obtain the currently background process for having incidence relation with foreground application in running background.Optionally, it moves
Dynamic terminal can be obtained by active manager currently to exist in each process of running background, and according to the application identities of foreground application
The background process for having incidence relation with foreground application is currently inquired in each process of running background.Mobile terminal can be preparatory
The incidence relation of storage application and process starts when listening to foreground application, and in the operation on foreground after foreground application starting
When time reaches preset time threshold, it can be obtained according to the application identities of foreground application and have incidence relation with the foreground application
Background process.
Optionally, the background process for having incidence relation with foreground application, which can be, has communication mechanism with foreground application
Background process has the background process of call relation with foreground application, or after belonging to same system's publisher with foreground application
Platform process etc., but not limited to this.Communication mechanism refers to being propagated or exchanged letter between different processes and/or application
Breath.Optionally, communication mechanism may include socket, binder, shared drive etc., wherein two programs on network pass through one
The exchange of data is realized in a two-way communication connection, and one end of this connection is known as a socket;Binder is a kind of process
Between communication mechanism, remote procedure call function is provided;Shared drive is exactly to allow two incoherent process access are same to patrol
Memory is collected, shared drive is a kind of very effective mode that data are shared and transmitted between the process being currently running at two,
The memory shared between different processes is usually arranged for same section of physical memory.After call relation refers to that foreground application can be called
Platform process executes corresponding task, for example the log-on message of background process storage is called to carry out register, wherein log-on message
It refers to the information such as the account information, the password that can be used for logging in, or background process is called to position etc., but not limited to this.
Publication label identical with foreground application can be carried with the background process that foreground application belongs to same system's publisher, the publication mark
Label can be used for identifying the publisher of release application program.
Step 330, the state of the determining background process for having incidence relation with foreground application.
Mobile terminal can obtain the state of each background process for having incidence relation with foreground application of generation, optional
Ground, the state of background process may include but be not limited to frozen state and thawed state etc..Frozen state refer to background process without
Method is using resources such as CPU ,/O and networks, and in the state that can not be continued to run, but the background process can still occupy memory
Resource, hard disk resources etc.;Thawed state refers to that the system resources such as CPU, I/O, memory and network can be used in background process, is in
The state of execution task can be run.
In one embodiment, mobile terminal can obtain with foreground application have incidence relation after the frozen state
Platform process.Optionally, mobile terminal can obtain the state tag for each background process for having incidence relation with foreground application, no
Same state can be indicated with different state tags, for example, the corresponding state tag of frozen state is 0, thawed state pair
The state tag answered is 1 etc., but not limited to this.Mobile terminal can according to each backstage for having incidence relation with foreground application into
The state tag of journey obtains the background process for being in frozen state.
Optionally, mobile terminal can also be communicated to each background process transmission for having incidence relation with foreground application respectively
Signal, and detect whether to receive response signal within a predetermined period of time.If not receiving process within a predetermined period of time to return
The response signal returned then can determine that the state for not sending the background process of response signal is frozen state.It is to be appreciated that
Other modes can be used and obtain and have the background process in frozen state of incidence relation with foreground application, be not limited on
State several ways.
Step 340, it if the state of background process is frozen state, thaws to background process.
It, can will be at this after acquisition for mobile terminal and foreground application have the background process in frozen state of incidence relation
It thaws in the background process of frozen state.Mobile terminal can to foreground application have incidence relation in frozen state
Background process send defrosting information, so that background process is entered thawed state by defrosting signal, CPU, I/O, interior can be used
It deposits and the system resources such as network, operation can be normally carried out and execute task.When foreground application need in operation using have close
When the background process of connection relationship, without thawing again to background process, the speed of response can be improved.In addition, only thawing with before
Platform application has the background process of incidence relation, freezes entire application belonging to background process without demodulating, it is possible to reduce system disappears
Consumption.
Optionally, mobile terminal can obtain the background process for having communication mechanism with foreground application, and determination is answered with foreground
With the state for the background process for having communication mechanism.Mobile terminal can have communication equipment with foreground application in frozen state
The background process of system thaws, and the background process after defrosting can be communicated normally with foreground application.It can guarantee that foreground is answered
With the normal communication with background process, the system speed of response is improved.
In the present embodiment, when listening to foreground application starting, after record foreground application starting in the operation on foreground
Between, if runing time reaches preset time threshold, the background process for having incidence relation with foreground application is obtained, and in jelly
The background process for having incidence relation of knot state thaws, can be to the background process for having incidence relation with foreground application
It thaws, when reducing the waiting that foreground application needs to thaw again using the background process for having incidence relation in operation
Between, accelerate the system speed of response.
As shown in figure 4, in one embodiment, it is further comprising the steps of after step thaws to background process:
Step 402, the operation characteristic for the background process for having incidence relation with foreground application is obtained.
It, can after mobile terminal pair thaws with the background process in frozen state that foreground application has incidence relation
The operation characteristic for each background process for having incidence relation with foreground application is obtained, operation characteristic may include but be not limited to backstage
The currently performed task of process, with the communication event of other processes and/or application etc., the resource type and ratio that currently occupy
Deng.
Step 404, the resource constraint grade for having the background process of incidence relation is determined according to operation characteristic.
Mobile terminal can analyze the operation characteristic for each background process for having incidence relation with foreground application, and
The resource constraint grade of corresponding background process is determined according to operation characteristic.Optionally, mobile terminal can be set according to actual needs
Different resource constraint grades, resource constraint grade can be used for indicating that, using the confined degree of resource, resource constraint grade is got over
Height, restricted degree can be bigger.Restricted resource may include but be not limited to cpu resource, memory source, I/O resource, network
Resource etc..Different resource constraint grades can correspond to different resource use priorities, and resource constraint higher grade, corresponding money
Source use priority can be smaller, and resource constraint lower grade, and corresponding resource use priority can be bigger.
In one embodiment, the resource constraint grade of mobile terminal setting may include without limitation rank, common limiter stage
Not, depth limit rank and freeze rank etc..It is unrestricted to may refer to the resource that process uses without limitation rank.Common limitation
Rank, which may refer to process, can be used less resource, for example 50% resource etc. at most only can be used, but not limited to this.Depth
Limitation rank, which may refer to process, can be used few resource, for example 20% resource etc. at most only can be used, but not limited to this.
Freeze rank and refer to that process is not available any resource, stops all behaviors of process.For example, foreground application can correspond to nothing
Rank is limited, the resource that foreground application uses is unrestricted;If with foreground application have the background process of incidence relation not with
Foreground application is communicated, then can correspond to depth limit rank, and few resource etc. can be used, but not limited to this.
Step 406, the background process that will be provided with incidence relation is assigned in resource group corresponding with resource constraint grade,
And configure resource use priority corresponding with resource constraint grade.
After mobile terminal determines the resource constraint grade for each background process for having incidence relation with foreground application, it can incite somebody to action
And each background process that foreground application has incidence relation is assigned to resource group corresponding with the resource constraint grade determined
In, and configure resource use priority corresponding with resource constraint grade.Optionally, mobile terminal can be based on kernel Cgroup
(control group) mechanism divides different resource groups, and file node can be used writes the mode of configuration and each money is arranged
The other resource use priority of source group, to the process being assigned in each resource group using resource time or ratio etc. into
Row management, wherein Cgroup is that the one kind provided in kernel can be limited, be recorded, physical resource used in isolated process (compares
Mechanism such as: CPU, memory, I/O resource).Mobile terminal can load the configuration file of Cgroup, can record in configuration file
There are the resource group, the other resource use priority of each resource group and scheduling of resource corresponding with resource use priority of division
Strategy.Resource dispatching strategy may include but be not limited to the process being assigned in resource group and be provided using the time of resource, occupancy
Source ratio, the resource identification used etc., for example, the corresponding other process of resource group of configurable common limitation rank is in 1 minute
30 seconds cpu resources can be used, and the corresponding other process of resource group of common limitation rank is only capable of providing using the CPU that number is X
Source etc., but not limited to this.When needing to add new resource group, or the other resource use priority of modification resource group and resource
Scheduling strategy can pass through the configuration file of modification Cgroup.
Mobile terminal will be assigned to and resource constraint grade pair with each background process that foreground application has incidence relation
In the resource group answered, and after configuration resource use priority corresponding with resource constraint grade, has with foreground application and be associated with
The background process of relationship can use the resources such as CPU, memory, I/O and network according to the corresponding resource dispatching strategy of resource group.
In one embodiment, mobile terminal can at regular intervals section obtain with foreground application have each backstage of incidence relation into
The operation characteristic of journey, and the resource constraint grade for having the background process of incidence relation is determined according to operation characteristic.It is answered with foreground
It can be changed with the variation of operation characteristic with the resource constraint grade for the background process for having incidence relation.After for example,
After platform process terminates the communication with foreground application, resource constraint grade of the background process etc. can be improved, but not limited to this.
Fig. 5 is the other schematic diagram of resource group in one embodiment.As shown in figure 5, can set in mobile terminal, there are four not
Same resource constraint grade, and there are four resource groups for division, wherein first resource group is corresponding to be provided without limitation rank, second
The corresponding common limitation rank of source group, information resources group correspond to depth limit rank, and the 4th resource group correspondence freezes rank.
Four resource groups can respectively correspond different resource use priorities, and the other resource use priority of first resource group can be higher than
Secondary resource group, the other resource use priority of Secondary resource group can be higher than information resources group, the other money of information resources group
Source use priority can be higher than the 4th resource group.The first resource group CPU that limiting process does not use, interior without limitation rank
It deposits, the resources such as I/O and network.Less CPU, memory, I/O can be used in the common other Secondary resource group limiting process of limiter stage
And the resources such as network.Few CPU, memory, I/O and network can be used in the information resources group limiting process of depth limit rank
Etc. resources.Freeze the resources such as the unusable CPU of the 4th resource group limiting process, memory, I/O and the network of rank.It is mobile whole
End determines resource constraint grade according to the operation characteristic of each background process for having incidence relation with foreground application, and will with it is preceding
Each background process that platform application has incidence relation is added in corresponding resource group, configures money corresponding with resource group
Source use priority is managed to the resource that each background process that foreground application has incidence relation uses.
In the present embodiment, resource can be determined according to the operation characteristic for the background process for having incidence relation with foreground application
Limit grade, to the different grades of resource constraint of background process dynamic implement for having incidence relation with foreground application, to
The background process that foreground application has incidence relation thaws, and while improving the system speed of response, reduction has association and closes
The background process of system seizes the resource of foreground application, and optimization system performance saves power consumption.
As shown in fig. 6, in one embodiment, above- mentioned information processing method is further comprising the steps of:
Step 602, have the operation characteristic of the background process of incidence relation with foreground application by kernel spacing acquisition, and
Operation characteristic is packaged into data packet and sends user's space to.
It may include having kernel spacing and user's space in the Virtual Space of mobile terminal, kernel spacing can be used for storing kernel
Code and data, user's space can be used for storing the code and data of application program.Kernel spacing possesses higher level of privilege
Not, the process run in kernel spacing can possess the permission of all hardware of access mobile terminal, and the permission of user's space is then
Lower, the part resource of system only can be used in the process run in the user space.
Mobile terminal can acquire the event for each background process for having incidence relation with foreground application by kernel spacing
Data, event data may include but be not limited to event type, event time, event content, process identification (PID) belonging to event etc..Thing
Part type may include but be not limited to communication event, creation event, exit event, change identified event, task events etc..Communicate thing
Part may refer to the communication event of process and other application and/or process, it may include binder communication event and socket communication
Event etc..Creation event may refer to the event that process etc. is created.The event of exiting refers to the event that process exits.Change mark
Knowledge event may refer to the mark etc. that process changes itself.Task events may refer to the task dispatching of process execution.
Mobile terminal has the event number of each background process of incidence relation by kernel spacing acquisition with foreground application
According to the operation characteristic for each background process for having incidence relation with foreground application can be extracted from event data, and can be according to
Operation characteristic is packaged into data packet and sends user's space to by the packet format of agreement.Optionally, kernel spacing and user's space can
It is communicated by the way of asynchronous netlink, netlink is that a kind of consumer process that may be implemented is communicated with kernel process
A kind of special interprocess communication.Kernel spacing is by way of asynchronous communication by the fortune for each process for including in invocation list
Row feature is transferred to user's space, more efficient and convenient compared to the mode for playing user's space active inquiry, and operation characteristic can be improved
Efficiency of transmission.
Step 604, data packet is parsed by user's space, obtains the operation characteristic of background process.
Step 606, operation characteristic is analyzed by user's space, determines have the money of the background process of incidence relation
Source limit grade.
After user's space receives the data packet of kernel spacing transmission, data packet can be parsed, obtain answering with foreground
With the operation characteristic for each background process for having incidence relation.Mobile terminal can have by user's space pair and foreground application
The operation characteristic of each background process of incidence relation is analyzed, and determines the resource constraint grade of each process.
In one embodiment, mobile terminal has each backstage of incidence relation by user's space pair with foreground application
The operation characteristic of process is analyzed, can be true if the background process for having incidence relation is not communicated with foreground application
The resource constraint grade of the fixed background process not communicated is depth limit rank.Mobile terminal can will not answered with foreground
It is added in resource group corresponding with depth limit rank with the background process for having incidence relation communicated, and is configured
Resource use priority corresponding with depth limit rank, what is do not communicated with foreground application has the backstage of incidence relation
Resource few in mobile terminal can be used in process.When movement terminal detects the backstage for having incidence relation by user's space
When process is communicated with foreground application, the resource constraint grade of the background process communicated can be reduced.For example, mobile terminal
The resource constraint grade for the background process of incidence relation that can determine that is communicated with foreground application have is common limitation rank,
And by and the background process for having incidence relation that communicates of foreground application be added to resource corresponding with commonly limitation rank
In group, configuration resource use priority corresponding with common limitation rank.When movement terminal detects tool by user's space
When the background process of standby incidence relation terminates the communication with foreground application, the resource constraint for terminating the background process of communication can be improved
Grade.For example, mobile terminal can determine the resource constraint for the background process for having incidence relation for terminating to communicate with foreground application
Grade is depth limit rank etc..
In the present embodiment, the operation for the background process for having incidence relation with foreground application can be acquired by kernel spacing
Feature, and the operation characteristic of acquisition is transmitted to user's space and is analyzed, it is possible to provide more lines for determining resource constraint grade
Rope foundation can make the resource constraint level adjustment for having the background process of incidence relation with foreground application more accurate, improve money
Source control effect and system performance.
In one embodiment, above- mentioned information processing method, further includes: when meeting preset condition, by the backstage of defrosting
Process, which re-starts, to be freezed, wherein preset condition includes that the background process to thaw is presetting no and foreground in first time period
Entering thawed state using the background process for being communicated, being thawed terminates more than default second time period, foreground application on foreground
One of operating status or a variety of.
Backstage after mobile terminal pair thaws with each background process that foreground application has incidence relation, after defrosting
The resources such as CPU, memory, I/O and the network of mobile terminal can be used in process, can operate normally and execute task dispatching.It is pre- when meeting
If when condition, mobile terminal, which can re-start defrosting with background process that foreground application has incidence relation, to be freezed.It is optional
Ground, preset condition may include that the background process to thaw is not communicated with foreground application in default first time period, thawed
Background process to enter thawed state be more than that default second time period, foreground application terminate in one of the operating status on foreground
Or it is a variety of.First time period and second time period can be set according to actual needs, for example first time period is 10 minutes, the
Two periods were 30 minutes etc., but not limited to this.Foreground application terminates to can be foreground application in the past in the operating status on foreground
Platform switches to running background, and it is out of service etc. to be also possible to foreground application.It is to be appreciated that preset condition is also possible to other
Part is not limited in above-mentioned several.Optionally, mobile terminal defrosting and foreground application can be had the backstage of incidence relation into
Journey is added in resource group corresponding with rank is freezed, and configures resource use priority corresponding with the resource group, weight
Newly freeze the background process.
In the present embodiment, when meeting preset condition, defrosting can be had into incidence relation with foreground application again
Background process is freezed, after process being prevented to be waken up for a long time without freezing the case where, reduce system power dissipation.
As shown in fig. 7, in one embodiment, above- mentioned information processing method is further comprising the steps of:
Step 702, termination signal is sent by user's space.
When mobile terminal needs to terminate the process that some is currently running, termination signal can be sent by user's space, it should
Termination signal can be used for terminating the operation of process, keep process out of service and the system resources such as the CPU of release busy, memory.
Step 704, termination signal is intercepted and captured, if the target process of termination signal is in frozen state, thaw target process
And each thread under target process including.
Mobile terminal can intercept and capture the termination signal of user's space transmission, and judge whether the target process of the termination signal is located
In frozen state.If target process is not at frozen state, termination signal directly can be sent to target process by mobile terminal,
Target process can respond the termination signal, terminate the operation of target process.If dbjective state is in frozen state, due to
Process in frozen state can not normally receive the signal of other processes transmission, therefore will not normally be rung to termination signal
It answers.And in traditional mode, two sets of different codes are usually write, are respectively used to terminate the process of frozen state and non-jelly
The process of knot state, exploitation and maintenance to system cause biggish obstacle.After mobile terminal intercepts termination signal, if the end
The target process of stop signal is in frozen state, then first can send defrosting signal to target process, to target process and target into
The each thread for including under journey thaws.Thread is also referred to as Lightweight Process (LightweightProcess, LWP),
Be program execute stream minimum unit, thread is an entity in process, be independently is dispatched and assigned by system substantially singly
Position.All threads for including under defrosting target process and target process, can prevent zombie process, cause the wave of system resource
Take, wherein zombie process refers to although process has logged out, but also remains some move back in system process table for it
The information to do well occupies process list item.
Step 706, setting target process be can not frozen state, and termination signal is sent to target process, terminates letter
Number for terminating target process.
After each thread for including under mobile terminal defrosting target process and target process, settable target process is can not
Frozen state, can not frozen state refer to again freezing target process.Mobile terminal can send out termination signal
Give target process, due to target process be now in can not frozen state, then normally termination signal can be responded, terminate
The operation of target process keeps target process out of service and the system resources such as the CPU of release busy, memory.
In the present embodiment, the process in frozen state can be terminated safely, be not in such as the case where zombie process.This
Outside, user's space terminates the process of frozen state and non-frozen state, unified termination signal can be transmitted, without writing
Two sets of different codes, can reduce system development and maintenance cost.
In one embodiment, a kind of information processing method is provided, comprising the following steps:
Step (1), when listening to foreground application starting, in the runing time on foreground after record foreground application starting.
Step (2) obtains the backstage for having incidence relation with foreground application if runing time reaches preset time threshold
Process.
Optionally, step (2), comprising: obtain the background process for having communication mechanism with foreground application.
Step (3), the state of the determining background process for having incidence relation with foreground application.
Step (4) thaws to background process if the state of background process is frozen state.
Optionally, after step (4), further includes: obtain the fortune for the background process for having incidence relation with foreground application
Row feature;Determine have the resource constraint grade of the background process of incidence relation according to operation characteristic;It will be provided with incidence relation
Background process is assigned in resource group corresponding with resource constraint grade, and configuration resource corresponding with resource constraint grade makes
Use priority.
Optionally, the operation characteristic for the background process for having incidence relation with foreground application is obtained, comprising: pass through kernel sky
Between acquisition with foreground application have incidence relation background process operation characteristic, and by operation characteristic be packaged into data packet transmission
To user's space;Data packet is parsed by user's space, obtains the operation characteristic of background process;Had according to operation characteristic determination
The resource constraint grade of the background process of incidence relation, comprising: operation characteristic is analyzed by user's space, determination has
The resource constraint grade of the background process of incidence relation.
Optionally, operation characteristic is analyzed by user's space, determines have the money of the background process of incidence relation
Source limit grade, comprising: when the background process for having incidence relation is communicated with foreground application, after reduction is communicated
The resource constraint grade of platform process;When the background process for having incidence relation terminates the communication with foreground application, raising terminates
The resource constraint grade of the background process of communication.
Optionally, after step (4), further includes: when meeting preset condition, the background process of defrosting is re-started
Freeze, wherein preset condition include the background process to thaw do not communicated with foreground application in default first time period,
The background process of defrosting enters thawed state to be terminated in the operating status on foreground more than default second time period, foreground application
It is one or more.
Optionally, above- mentioned information processing method, further includes: termination signal is sent by user's space;Termination signal is intercepted and captured,
If the target process of termination signal is in frozen state, each thread for including under thaw target process and target process;If
Set target process be can not frozen state, and termination signal is sent to target process, termination signal is for terminating target process.
In the present embodiment, when listening to foreground application starting, after record foreground application starting in the operation on foreground
Between, if runing time reaches preset time threshold, the background process for having incidence relation with foreground application is obtained, and in jelly
The background process for having incidence relation of knot state thaws, can be to the background process for having incidence relation with foreground application
It thaws, when reducing the waiting that foreground application needs to thaw again using the background process for having incidence relation in operation
Between, accelerate the system speed of response.
It should be understood that each step in above-mentioned flow diagram is successively shown according to the instruction of arrow, still
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, above-mentioned flow diagram
In at least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily multiple sub-steps
Completion is executed in synchronization, but can be executed at different times, the execution in these sub-steps or stage sequence is not yet
Necessarily successively carry out, but can be at least part of the sub-step or stage of other steps or other steps in turn
Or it alternately executes.
As shown in figure 8, in one embodiment, a kind of information processing unit 800 is provided, including time recording module 810,
Process obtains module 820, state determining module 830 and defrosting module 840.
Time recording module 810, for recording after foreground application starts on foreground when listening to foreground application starting
Runing time.
Process obtains module 820, if reaching preset time threshold for runing time, obtains and has pass with foreground application
The background process of connection relationship.
Optionally, process obtains module 820, is also used to obtain the background process for having communication mechanism with foreground application.
State determining module 830, the state for the determining background process for having incidence relation with foreground application.
Defrosting module 840 thaws to background process if the state for background process is frozen state.
In the present embodiment, when listening to foreground application starting, after record foreground application starting in the operation on foreground
Between, if runing time reaches preset time threshold, the background process for having incidence relation with foreground application is obtained, and in jelly
The background process for having incidence relation of knot state thaws, can be to the background process for having incidence relation with foreground application
It thaws, when reducing the waiting that foreground application needs to thaw again using the background process for having incidence relation in operation
Between, accelerate the system speed of response.
As shown in figure 9, in one embodiment, above- mentioned information processing unit 800, in addition to include time recording module 810,
Process obtains module 820, state determining module 830 and defrosting module 840, further includes that feature obtains module 850, grade determines mould
Block 860 and configuration module 870.
Feature obtains module 850, for obtaining the operation characteristic for the background process for having incidence relation with foreground application.
Level determination module 860, for determining the resource constraint for having the background process of incidence relation according to operation characteristic
Grade.
Configuration module 870, the background process for will be provided with incidence relation are assigned to money corresponding with resource constraint grade
In the group of source, and configure resource use priority corresponding with resource constraint grade.
In the present embodiment, resource can be determined according to the operation characteristic for the background process for having incidence relation with foreground application
Limit grade, to the different grades of resource constraint of background process dynamic implement for having incidence relation with foreground application, to
The background process that foreground application has incidence relation thaws, and while improving the system speed of response, reduction has association and closes
The background process of system seizes the resource of foreground application, and optimization system performance saves power consumption.
In one embodiment, feature obtains module 850, including acquisition unit and resolution unit.
Acquisition unit, for having the operation spy of the background process of incidence relation with foreground application by kernel spacing acquisition
Sign, and operation characteristic is packaged into data packet and sends user's space to.
Resolution unit obtains the operation characteristic of background process for parsing data packet by user's space.
Level determination module 860 is also used to analyze operation characteristic by user's space, and determination has incidence relation
Background process resource constraint grade.
Optionally, level determination module 860 are also used to be led to when the background process for having incidence relation with foreground application
When letter, the resource constraint grade of the background process communicated is reduced.
Level determination module 860 is also used to when the background process for having incidence relation terminates the communication with foreground application,
Improve the resource constraint grade for terminating the background process of communication.
In the present embodiment, the operation for the background process for having incidence relation with foreground application can be acquired by kernel spacing
Feature, and the operation characteristic of acquisition is transmitted to user's space and is analyzed, it is possible to provide more lines for determining resource constraint grade
Rope foundation can make the resource constraint level adjustment for having the background process of incidence relation with foreground application more accurate, improve money
Source control effect and system performance.
In one embodiment, above- mentioned information processing unit 800, in addition to including time recording module 810, process acquisition mould
Block 820, state determining module 830, defrosting module 840, feature obtain module 850, level determination module 860 and configuration module
870, it further include freezing module.
Freeze module, for the background process of defrosting being re-started and is freezed when meeting preset condition, wherein default
Condition includes the background process that the background process to thaw is not communicated with foreground application, thawed in default first time period
It is more than that default second time period, foreground application terminate in one of operating status on foreground or a variety of into thawed state.
In the present embodiment, when meeting preset condition, defrosting can be had into incidence relation with foreground application again
Background process is freezed, after process being prevented to be waken up for a long time without freezing the case where, reduce system power dissipation.
In one embodiment, above- mentioned information processing unit 800, in addition to including time recording module 810, process acquisition mould
Block 820, state determining module 830, defrosting module 840, feature obtain module 850, level determination module 860, configuration module 870
And freeze module, it further include signal transmitting module and termination module.
Signal transmitting module, for sending termination signal by user's space.
Defrosting module 840 is also used to intercept and capture termination signal, if the target process of termination signal is in frozen state, solves
Freeze each thread for including under target process and target process.
Terminate module, for be arranged target process be can not frozen state, and termination signal is sent to target process, eventually
Stop signal is for terminating target process.
In the present embodiment, the process in frozen state can be terminated safely, be not in such as the case where zombie process.This
Outside, user's space terminates the process of frozen state and non-frozen state, unified termination signal can be transmitted, without writing
Two sets of different codes, can reduce system development and maintenance cost.
The embodiment of the present application also provides a kind of mobile terminals.As shown in Figure 10, for ease of description, it illustrates only and this
Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The movement is whole
End can be include mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), sale eventually
Any terminal devices such as (Point of Sales, POS), vehicle-mounted computer, wearable device are held, are by mobile phone of mobile terminal
Example:
Figure 10 is the block diagram of the part-structure of mobile phone relevant to mobile terminal provided by the embodiments of the present application.With reference to figure
10, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit
1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor
The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 10 does not constitute opponent
The restriction of machine may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station
After downlink information receives, handled to processor 1080;The data of uplink can also be sent to base station.In general, RF circuit includes
But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier,
LNA), duplexer etc..In addition, RF circuit 1010 can also be communicated with network and other equipment by wireless communication.It is above-mentioned wireless
Any communication standard or agreement, including but not limited to GSM, GPRS, CDMA (Code Division can be used in communication
Multiple Access, CDMA), W-CDMA, long term evolution (Long Term Evolution, LTE), Email, short disappear
Breath service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation
1020 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1020 can be led
It to include program storage area and data storage area, wherein program storage area can be needed for storage program area, at least one function
Application program (such as application program, application program of image player function of sound-playing function etc.) etc.;It data storage area can
Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap
High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other volatile solid-state parts.
Input unit 1030 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1000
It sets and the related key signals of function control inputs.Specifically, input unit 1030 may include touch panel 1032 and other
Input equipment 1034.Touch panel 1032, alternatively referred to as touch screen collect the touch operation (ratio of user on it or nearby
Such as user is using finger, stylus any suitable object or attachment on touch panel 1032 or near touch panel 1032
Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1032 can
Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine
Touch operation bring signal is surveyed, touch controller is transmitted a signal to;Touch controller receives touching from touch detecting apparatus
Information is touched, and is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and added
To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
1032.In addition to touch panel 1032, input unit 1030 can also include other input equipments 1034.Specifically, other are inputted
Equipment 1034 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc.
Kind is a variety of.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each
Kind menu.Display unit 1040 may include display panel 1042.In one embodiment, liquid crystal display can be used
(Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode,
) etc. OLED forms configure display panel 1042.In one embodiment, touch panel 1032 can cover display panel 1042,
After touch panel 1032 detects touch operation on it or nearby, processor 1080 is sent to determine touch event
Type is followed by subsequent processing device 1080 according to the type of touch event and provides corresponding visual output on display panel 1042.Although
In Figure 10, touch panel 1032 and display panel 1042 are the input and input for realizing mobile phone as two independent components
Function, but in some embodiments it is possible to touch panel 1032 and display panel 1042 are integrated and are realized the input of mobile phone
And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1042, and proximity sensor can close display when mobile phone is moved in one's ear
Panel 1042 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer
The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal
Vertical screen switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer,
Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1060, loudspeaker 1062 and microphone 1064 can provide the audio interface between user and mobile phone.Sound
Electric signal after the audio data received conversion can be transferred to loudspeaker 1062, by 1062 turns of loudspeaker by frequency circuit 1060
It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1064, by voicefrequency circuit
Audio data is converted to after 1060 receptions, then by after the processing of audio data output processor 1080, can be sent out through RF circuit 1010
Another mobile phone is given, or audio data is exported to memory 1020 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 10 is shown
WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone 1000, it can according to need and save
Slightly.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone,
By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020
Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment,
Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor
And modem, wherein the main processing operation system of application processor, user interface and application program etc.;Modem
Main processing wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 1080.For example,
The processor 1080 can integrate application processor and baseband processor, baseband processor with and the composable tune such as other peripheral chips
Modulator-demodulator.Mobile phone 1000 further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through
Power-supply management system and processor 1080 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 880 included by the mobile terminal executes the calculating of storage on a memory
Above-mentioned information processing method is realized when machine program.
In one embodiment, which may include memory 1020 and processor 1080, deposit in memory 1020
Computer program is contained, when which is executed by processor 1080, so that processor executes following steps:
When listening to foreground application starting, in the runing time on foreground after record foreground application starting;
If runing time reaches preset time threshold, the background process for having incidence relation with foreground application is obtained;
The state of the determining background process for having incidence relation with foreground application;
If the state of background process is frozen state, thaw to background process.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, the calculating
Machine program realizes above-mentioned information processing method when being executed by processor.
In one embodiment, a kind of computer program product comprising computer program is provided, when it sets in computer
When standby upper operation, so that computer equipment realizes above-mentioned information processing method when executing.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read
In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between
Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
It may include as used herein non-volatile to any reference of memory, storage, database or other media
And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM),
Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as
It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced
SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of information processing method characterized by comprising
When listening to foreground application starting, the runing time after the foreground application starts on foreground is recorded;
If the runing time reaches preset time threshold, obtain the backstage that has incidence relation with the foreground application into
Journey;
The state of the determining background process for having incidence relation with the foreground application;
If the state of the background process is frozen state, thaw to the background process.
2. the method according to claim 1, wherein the acquisition has incidence relation with the foreground process
Background process, comprising:
Obtain the background process for having communication mechanism with the foreground application.
3. the method according to claim 1, wherein it is described thaw to the background process after, institute
State method further include:
Obtain the operation characteristic for the background process for having incidence relation with the foreground application;
Has the resource constraint grade of the background process of incidence relation according to operation characteristic determination;
The background process for having incidence relation is assigned in resource group corresponding with the resource constraint grade, and is matched
Set resource use priority corresponding with the resource constraint grade.
4. according to the method described in claim 3, it is characterized in that, the acquisition has incidence relation with the foreground application
The operation characteristic of background process, comprising:
Has the operation characteristic of the background process of incidence relation with the foreground application by kernel spacing acquisition, and by the fortune
Row feature is packaged into data packet and sends user's space to;
The data packet is parsed by the user's space, obtains the operation characteristic of the background process;
The resource constraint grade of the background process for having incidence relation according to operation characteristic determination, comprising:
The operation characteristic is analyzed by the user's space, has the money of the background process of incidence relation described in determination
Source limit grade.
5. according to the method described in claim 4, it is characterized in that, it is described by the user's space to the operation characteristic into
It is capable to analyze, have the resource constraint grade of the background process of incidence relation described in determination, comprising:
When the background process for having incidence relation is communicated with the foreground application, reduce the backstage that is communicated into
The resource constraint grade of journey;
When the background process for having incidence relation terminates the communication with the foreground application, the backstage for terminating communication is improved
The resource constraint grade of process.
6. method according to any one of claims 1 to 5, which is characterized in that the method also includes:
When meeting preset condition, the background process of defrosting is re-started and is freezed, wherein the preset condition includes thawing
The background process that background process do not communicated with the foreground application in default first time period, is thawed enters defrosting shape
State is more than that default second time period, the foreground application terminate in one of operating status on foreground or a variety of.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
Termination signal is sent by user's space;
The termination signal is intercepted and captured, if the target process of the termination signal is in frozen state, thaw the target process
And each thread under the target process including;
Be arranged the target process be can not frozen state, and the termination signal is sent to the target process, the end
Stop signal is for terminating the target process.
8. a kind of information processing unit characterized by comprising
Time recording module, for when listening to foreground application starting, recording after foreground application starts in the operation on foreground
Between;
Process obtains module, if reaching preset time threshold for runing time, obtains and has incidence relation with foreground application
Background process;
State determining module, the state for the determining background process for having incidence relation with foreground application;
Defrosting module thaws to background process if the state for background process is frozen state.
9. a kind of mobile terminal, including memory and processor, computer program, the computer are stored in the memory
When program is executed by the processor, so that the processor realizes the method as described in claim 1 to 7 is any.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The method as described in claim 1 to 7 is any is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023233.1A CN110032267B (en) | 2018-01-10 | 2018-01-10 | Information processing method and device, mobile terminal and computer readable storage medium |
PCT/CN2018/122048 WO2019137170A1 (en) | 2018-01-10 | 2018-12-19 | Information processing method, mobile terminal, and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023233.1A CN110032267B (en) | 2018-01-10 | 2018-01-10 | Information processing method and device, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110032267A true CN110032267A (en) | 2019-07-19 |
CN110032267B CN110032267B (en) | 2021-05-18 |
Family
ID=67218814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810023233.1A Active CN110032267B (en) | 2018-01-10 | 2018-01-10 | Information processing method and device, mobile terminal and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110032267B (en) |
WO (1) | WO2019137170A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221650A (en) * | 2019-12-31 | 2020-06-02 | 青岛海尔科技有限公司 | System resource recovery method and device based on process type association |
CN112256354A (en) * | 2020-11-25 | 2021-01-22 | Oppo(重庆)智能科技有限公司 | Application starting method and device, storage medium and electronic equipment |
CN112671672A (en) * | 2020-12-16 | 2021-04-16 | 深圳Tcl新技术有限公司 | Application flow control method, device, equipment and readable storage medium |
CN112860439A (en) * | 2021-03-01 | 2021-05-28 | 北京字节跳动网络技术有限公司 | Application starting method and device, terminal and storage medium |
CN114168203A (en) * | 2020-09-10 | 2022-03-11 | 成都鼎桥通信技术有限公司 | Dual-system running state control method and device and electronic equipment |
CN115016631A (en) * | 2021-11-22 | 2022-09-06 | 荣耀终端有限公司 | Process scheduling method and terminal equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11928517B2 (en) * | 2021-07-08 | 2024-03-12 | EMC IP Holding Company LLC | Feature resource self-tuning and rebalancing |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110167424A1 (en) * | 2010-01-07 | 2011-07-07 | International Business Machines Corporation | Integrated differentiated operation throttling |
CN103645954A (en) * | 2013-11-21 | 2014-03-19 | 华为技术有限公司 | CPU scheduling method, device and system based on heterogeneous multi-core system |
US20140096141A1 (en) * | 2012-09-30 | 2014-04-03 | International Business Machines Corporation | Efficient rollback and retry of conflicted speculative threads using distributed tokens |
CN105979095A (en) * | 2016-06-27 | 2016-09-28 | 努比亚技术有限公司 | Mobile terminal and application power consumption control method |
CN106648849A (en) * | 2016-10-18 | 2017-05-10 | 上海传英信息技术有限公司 | Process freezing method and mobile terminal |
CN106843450A (en) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | The storage processing method and device of a kind of terminal applies |
CN107436779A (en) * | 2017-05-22 | 2017-12-05 | 努比亚技术有限公司 | A kind of application management method, equipment and computer-readable recording medium |
CN107479951A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | Process management-control method, device, storage medium and electronic equipment |
CN107526640A (en) * | 2017-08-17 | 2017-12-29 | 广东欧珀移动通信有限公司 | Method for managing resource, device, mobile terminal and computer-readable recording medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101873616B (en) * | 2010-06-21 | 2014-07-16 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal self-check method and system and mobile terminal |
CN102331965A (en) * | 2011-09-15 | 2012-01-25 | 深圳桑菲消费通信有限公司 | Method for resource management of terminal |
CN106506815A (en) * | 2016-10-19 | 2017-03-15 | 北京奇虎科技有限公司 | A kind of application enables method and relevant device |
-
2018
- 2018-01-10 CN CN201810023233.1A patent/CN110032267B/en active Active
- 2018-12-19 WO PCT/CN2018/122048 patent/WO2019137170A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110167424A1 (en) * | 2010-01-07 | 2011-07-07 | International Business Machines Corporation | Integrated differentiated operation throttling |
US20140096141A1 (en) * | 2012-09-30 | 2014-04-03 | International Business Machines Corporation | Efficient rollback and retry of conflicted speculative threads using distributed tokens |
CN103645954A (en) * | 2013-11-21 | 2014-03-19 | 华为技术有限公司 | CPU scheduling method, device and system based on heterogeneous multi-core system |
CN105979095A (en) * | 2016-06-27 | 2016-09-28 | 努比亚技术有限公司 | Mobile terminal and application power consumption control method |
CN106648849A (en) * | 2016-10-18 | 2017-05-10 | 上海传英信息技术有限公司 | Process freezing method and mobile terminal |
CN106843450A (en) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | The storage processing method and device of a kind of terminal applies |
CN107436779A (en) * | 2017-05-22 | 2017-12-05 | 努比亚技术有限公司 | A kind of application management method, equipment and computer-readable recording medium |
CN107479951A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | Process management-control method, device, storage medium and electronic equipment |
CN107526640A (en) * | 2017-08-17 | 2017-12-29 | 广东欧珀移动通信有限公司 | Method for managing resource, device, mobile terminal and computer-readable recording medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221650A (en) * | 2019-12-31 | 2020-06-02 | 青岛海尔科技有限公司 | System resource recovery method and device based on process type association |
CN114168203A (en) * | 2020-09-10 | 2022-03-11 | 成都鼎桥通信技术有限公司 | Dual-system running state control method and device and electronic equipment |
CN114168203B (en) * | 2020-09-10 | 2024-02-13 | 成都鼎桥通信技术有限公司 | Dual-system running state control method and device and electronic equipment |
CN112256354A (en) * | 2020-11-25 | 2021-01-22 | Oppo(重庆)智能科技有限公司 | Application starting method and device, storage medium and electronic equipment |
CN112671672A (en) * | 2020-12-16 | 2021-04-16 | 深圳Tcl新技术有限公司 | Application flow control method, device, equipment and readable storage medium |
CN112671672B (en) * | 2020-12-16 | 2023-12-08 | 深圳Tcl新技术有限公司 | Application flow control method, device, equipment and readable storage medium |
CN112860439A (en) * | 2021-03-01 | 2021-05-28 | 北京字节跳动网络技术有限公司 | Application starting method and device, terminal and storage medium |
CN115016631A (en) * | 2021-11-22 | 2022-09-06 | 荣耀终端有限公司 | Process scheduling method and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110032267B (en) | 2021-05-18 |
WO2019137170A1 (en) | 2019-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032267A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN109992398A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109992400A (en) | Resource allocation methods, device, mobile terminal and computer readable storage medium | |
CN107544842B (en) | Applied program processing method and device, computer equipment, storage medium | |
CN109213539A (en) | A kind of method for recovering internal storage and device | |
CN109992438A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109144232A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110032429A (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN109992370A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN110045809A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN109992399A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN110018900A (en) | Internal memory processing method and device, electronic equipment, computer readable storage medium | |
CN110032321A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN109992397A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110032439A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109992380A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN110018905A (en) | Information processing method, device, computer equipment and computer readable storage medium | |
CN107491349B (en) | Applied program processing method and device, computer equipment, storage medium | |
CN109992309A (en) | Applied program processing method and device, electronic equipment, computer readable storage medium | |
CN110032397A (en) | Application processing method and device, electronic equipment, computer readable storage medium | |
CN109992323A (en) | Process handling method and device, electronic equipment, computer readable storage medium | |
CN110018886A (en) | Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing | |
CN110018903A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium | |
CN109375995B (en) | Application freezing method and device, storage medium and electronic equipment | |
CN110018888A (en) | Method for managing resource, device, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |