CN106569898A - Resource distribution method and mobile terminal - Google Patents
Resource distribution method and mobile terminal Download PDFInfo
- Publication number
- CN106569898A CN106569898A CN201611032079.1A CN201611032079A CN106569898A CN 106569898 A CN106569898 A CN 106569898A CN 201611032079 A CN201611032079 A CN 201611032079A CN 106569898 A CN106569898 A CN 106569898A
- Authority
- CN
- China
- Prior art keywords
- cpu
- foreground
- background
- ability
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/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
- G06F9/5044—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 considering hardware capabilities
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5018—Thread allocation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5021—Priority
Abstract
The embodiment of the invention discloses a resource distribution method distributing CPU resource in a corresponding way according to a use state of a target stroke in a flexible way, and conducting dynamic adjustments to meet user demands. The embodiment is applied to a mobile terminal. At least one stroke operates on the mobile terminal. The method of the embodiment comprises steps of acquiring current attributes of the target stroke, determining a stroke type classification where the target stroke belongs to according to the current attributes of the target stroke, and distributing corresponding CPU resource to the target stroke according to a preset corresponding relationship between the stroke type classification and the CPU resource classification. The embodiment of the invention further provides a mobile terminal.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method and mobile terminal of resource allocation.
Background technology
In a system, Jing often runs multiple processes, compares with CPU numbers, is typically to be far longer than CPU into number of passes
Number, then there is as the problem of course allocation cpu resource.In general, there is two kinds of methods of salary distribution, one is by between process
Coordinate, such as one friendly process of comparison actively concedes CPU at certain moment, and so other processes just have an opportunity to use
CPU。
But this similar moral constraint is often unworkable, because always having the presence of " malice " process, another
The problem for being relatively difficult to overcome is that standard cannot be unified, so and introduced preemptive type distribution, this method of salary distribution is similar to law
Constraint.Each process can distribute certain cpu resource, and OS also can timing (process tick interrupt)+fixed point (call and return by such as system
Before returning to userspace) check process cpu resource service condition.Once certain process cpu resource is exhausted, then can choose
The next process operation of choosing.
But the load balancing that above-mentioned this cpu resource scheduling belongs to acquiescence is adjusted, can not be according to actual process
State change dynamically adjusted, it is impossible to meet the demand of user well.
The content of the invention
The method and mobile terminal of a kind of resource allocation are embodiments provided, for can be flexibly according to mesh
The use state of mark process and correspondence distributes cpu resource, can dynamically be adjusted, meet the demand of user.
Embodiment of the present invention first aspect provides a kind of method of resource allocation, is applied to mobile terminal, the mobile terminal
Upper operation has at least one process, can include:Obtain the current attribute of target process;According to the current category of the target process
Property, determine the process type classification belonging to the target process;According to the process type classification and central processor CPU resource classification
Default corresponding relation, be that the target process distributes corresponding cpu resource.
With reference to the embodiment of the present invention in a first aspect, in the first implementation of embodiment of the present invention first aspect,
The central processor CPU resource classification can include:Seize the different Capability Categories of CPU and the resource classification of CPU different cores.
With reference to the first implementation of the first aspect of the embodiment of the present invention, the of embodiment of the present invention first aspect
In two kinds of implementations,
The process type classification can include foreground user interface UI associated process, foreground service associated process, backstage clothes
At least one in business associated process and backstage limited resources associated process;
The different Capability Categories for seizing CPU can include:First foreground process is seized the ability of CPU, the second foreground and is entered
Journey seizes the ability of CPU, the first background process and seizes the ability and the second background process of CPU and seizes in the ability of CPU at least
It is a kind of;
The resource classification of the CPU different cores can include:The big cores of first foreground process CPU, the second foreground process CPU are big
At least one in core, the first background process CPU small nuts and the second background process CPU small nuts.
With reference to second implementation of the first aspect of the embodiment of the present invention, the of embodiment of the present invention first aspect
In three kinds of implementations, the default corresponding relation of the process type and central processor CPU resource classification can include:
The foreground user interface UI associated process, the first foreground process CPU abilities and the big cores of first foreground process CPU
It is corresponding;
Foreground service associated process, the second foreground process CPU abilities and the big nuclear phases pair of second foreground process CPU
Should;
The background service associated process, the first background process CPU abilities and the first background process CPU small nuts are relative
Should;
The backstage limited resources associated process, the second background process CPU abilities and the little nuclear phases of second background process CPU
Correspondence.
With reference to second implementation of the first aspect of the embodiment of the present invention, the 3rd of embodiment of the present invention first aspect the
Implementation is planted, in the 4th kind of implementation of embodiment of the present invention first aspect,
Associated process, the background service associated process are serviced on the foreground user interface UI associated process, the foreground and be somebody's turn to do
In the limited resources associated process of backstage, service priority is arranged from high to low;
The ability of CPU, second foreground process are seized in first foreground process seize the ability of CPU, first backstage
Process seizes the ability of CPU and second background process is seized in the ability of CPU, and the ability for seizing CPU is arranged from high to low;
The big cores of first foreground process CPU, the big cores of second foreground process CPU, the first background process CPU small nuts and
In the second background process CPU small nuts, performance is arranged from high to low.
Embodiment of the present invention second aspect provides a kind of mobile terminal, and operation on the mobile terminal has at least one process,
Can include:
Acquisition module, for obtaining the current attribute of target process;
Determining module, for according to the current attribute of the target process, determining the process type point belonging to the target process
Class;
Distribute module, for the default corresponding relation classified with central processor CPU resource classification according to the process type,
Distribute corresponding cpu resource for the target process.
With reference to the second aspect of the embodiment of the present invention, in the first implementation of embodiment of the present invention second aspect,
The central processor CPU resource classification includes:Seize the different Capability Categories of CPU and the resource classification of CPU different cores.
With reference to the first implementation of the second aspect of the embodiment of the present invention, the of embodiment of the present invention second aspect
In two kinds of implementations,
The process type classification can include foreground user interface UI associated process, foreground service associated process, backstage clothes
At least one in business associated process and backstage limited resources associated process;
The different Capability Categories for seizing CPU can include:First foreground process is seized the ability of CPU, the second foreground and is entered
Journey seizes the ability of CPU, the first background process and seizes the ability and the second background process of CPU and seizes in the ability of CPU at least
It is a kind of;
The resource classification of the CPU different cores can include:The big cores of first foreground process CPU, the second foreground process CPU are big
At least one in core, the first background process CPU small nuts and the second background process CPU small nuts.
With reference to second implementation of the second aspect of the embodiment of the present invention, the of embodiment of the present invention second aspect
In three kinds of implementations, the default corresponding relation of the process type and central processor CPU resource classification can include:
The foreground user interface UI associated process, the first foreground process CPU abilities and the big cores of first foreground process CPU
It is corresponding;
Foreground service associated process, the second foreground process CPU abilities and the big nuclear phases pair of second foreground process CPU
Should;
The background service associated process, the first background process CPU abilities and the first background process CPU small nuts are relative
Should;
The backstage limited resources associated process, the second background process CPU abilities and the little nuclear phases of second background process CPU
Correspondence.
With reference to second implementation of the second aspect of the embodiment of the present invention, the 3rd of embodiment of the present invention second aspect the
Implementation is planted, in the 4th kind of implementation of embodiment of the present invention second aspect,
Associated process, the background service associated process are serviced on the foreground user interface UI associated process, the foreground and be somebody's turn to do
In the limited resources associated process of backstage, service priority is arranged from high to low;
The ability of CPU, second foreground process are seized in first foreground process seize the ability of CPU, first backstage
Process seizes the ability of CPU and second background process is seized in the ability of CPU, and the ability for seizing CPU is arranged from high to low;
The big cores of first foreground process CPU, the big cores of second foreground process CPU, the first background process CPU small nuts and
In the second background process CPU small nuts, performance is arranged from high to low.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In embodiments of the present invention, the current attribute of target process is obtained;According to the current attribute of the target process, it is determined that
Process type classification belonging to the target process;It is default with central processor CPU resource classification according to the process type classification
Corresponding relation, is that the target process distributes corresponding cpu resource.Flexibly can be corresponded to according to the use state of target process
Distribution cpu resource, can dynamically be adjusted, and meet the demand of user.
Description of the drawings
In order to be illustrated more clearly that embodiment of the present invention technical scheme, below will be to institute in embodiment and description of the prior art
The accompanying drawing that needs are used is briefly described, it should be apparent that, drawings in the following description are only some enforcements of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can be being obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is one embodiment schematic diagram of the method for resource allocation in the embodiment of the present invention;
Fig. 2 is a schematic diagram of background process in the embodiment of the present invention;
Fig. 3 is a schematic diagram of foreground process in the embodiment of the present invention;
Fig. 4 is one embodiment schematic diagram of mobile terminal in the embodiment of the present invention.
Specific embodiment
The method and mobile terminal of a kind of resource allocation are embodiments provided, for can be flexibly according to mesh
The use state of mark process and correspondence distributes cpu resource, can dynamically be adjusted, meet the demand of user.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than the embodiment of whole.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of present invention protection
Enclose.
Below technical solution of the present invention is described further by way of example, as shown in figure 1, for present invention money
One embodiment schematic diagram of the method for source distribution, including:
101st, the current attribute of target process is obtained;
In embodiments of the present invention, it is mainly used on mobile terminal, operation on the mobile terminal has at least one process.
Mobile terminal can obtain the current attribute of target process;Goal process can refer to one or more background process,
One or more foreground process can be referred to, specifically do not limited.Mobile terminal will obtain the current of one or more background process
Attribute, or obtain the current attribute of one or more foreground process.Here current attribute can be the current of target process
Use state, or other are used to refer to the information of the current attribute of target process.
Wherein, mobile terminal can include mobile phone, panel computer, PDA (Personal Digital Assistant, it is individual
Personal digital assistant), POS (Point of Sales, sell mobile terminal), the arbitrarily terminal unit such as vehicle-mounted computer.Here move
Terminal is illustrated by taking mobile phone as an example.As shown in Fig. 2 a signal of some background process to be currently running on mobile phone
Figure;As shown in figure 3, a schematic diagram of the foreground process to be currently running on mobile phone.
102nd, according to the current attribute of target process, the process type classification belonging to target process is determined;
In embodiments of the present invention, after the current attribute of acquisition for mobile terminal target process, further according to target process
Current attribute, determines the process type classification belonging to target process.I.e. mobile terminal can be according to the currently used of target process
State, determines the process type classification belonging to target process.
It should be noted that process type classification here is pre-configured, foreground UI (User can be included
Interface, user interface) associated process, foreground service associated process, background service associated process and backstage limited resources phase
Put at least one in journey into;It should be understood that process type can also include but is not limited to above-mentioned this several classification for referring to.
Exemplary, if target process is wechat, then, the currently used state of acquisition wechat, and currently used state
It is that user is currently in use wechat, then, mobile phone determines that the process classification that wechat belongs to is category according to the currently used state of wechat
In foreground UI (User Interface, user interface) associated process;
If target process is QQ, then, the currently used state of QQ is obtained, the currently used state of QQ is that user just receives
QQ information, but, currently there are no and exit, and QQ is important, according to the currently used state of QQ, determine that what QQ belonged to enters
Journey classification is foreground service associated process;
If target process is Baidu map, then, the currently used state of Baidu map is obtained, and Baidu map is current
Use state is to have dropped out now, then, according to the currently used state of Baidu map, determine the process point that Baidu map belongs to
Class is belonging to platform service associated process;
If target process is scanning file application, then, the currently used state of scanning file application is obtained, according to scanning
The currently used state of file application, determines that the process classification that scanning file application belongs to is backstage limited resources associated process.
103rd, it is target process according to process type classification and the default corresponding relation of central processor CPU resource classification
Distribute corresponding cpu resource.
In embodiments of the present invention, mobile terminal determines entering belonging to target process according to the current attribute of target process
Journey classification of type, mobile terminal according still further to process type classification and central processor CPU resource classification default corresponding relation, be
Target process distributes corresponding cpu resource.
It should be noted that central processor CPU resource classification here is all as above-mentioned process type classification
Pre-configured.Generally, central processor CPU resource classification includes:Seize the different Capability Categories and CPU of CPU not
With the resource classification of core.
Further, the resource classification of different Capability Categories and CPU different cores specifically to seizing CPU is said
It is bright, it is as follows:
Seizing the different Capability Categories of CPU can include:First foreground process seizes the ability of CPU, the second foreground process
Seize the ability of CPU, the first background process and seize the ability and the second background process of CPU are seized in the ability of CPU at least one
Kind;
The resource classification of CPU different cores can include:The big cores of first foreground process CPU, the second foreground process CPU are big
At least one in core, the first background process CPU small nuts and the second background process CPU small nuts.
It should be understood that the resource classification of different Capability Categories for seizing CPU here or CPU different cores can also include
But it is not limited to above-mentioned this several classification for referring to.
Wherein, the default corresponding relation of process type and central processor CPU resource classification can include:
(1) foreground user interface UI associated process, the first foreground process CPU abilities and the big nuclear phases of the first foreground process CPU
Correspondence;
(2) foreground service associated process, the second foreground process CPU abilities are corresponding with the big nuclear phases of the second foreground process CPU;
(3) background service associated process, the first background process CPU abilities are corresponding with the first background process CPU small nuts;
(4) backstage limited resources associated process, the second background process CPU abilities and the second background process CPU small nuts are relative
Should.
, wherein it is desired to explanation, process type classification in each classification in corresponding service priority arrangement such as
Shown in lower:User interface UI associated process, foreground service associated process, the limited money of background service associated process and backstage on foreground
In the associated process of source, service priority is arranged from high to low;
The arrangement of the ability that CPU is seized in each classification seized in the different Capability Categories of CPU is as follows:Before first
Platform process seizes the ability of CPU, the second foreground process and seizes the ability and second that the ability of CPU, the first background process seize CPU
Background process is seized in the ability of CPU, and the ability for seizing CPU is arranged from high to low;
The performance arrangement of each classification in the resource classification of CPU different cores is as follows:In the first foreground process CPU
In big core, the big cores of the second foreground process CPU, the first background process CPU small nuts and the second background process CPU small nuts, performance is from height
To low arrangement.
It is exemplary, one, process seizes the different abilities of CPU can be divided into:
(1) foreground process FG1:The ability for seizing CPU is 80;
(2) foreground process FG2:The ability for seizing CPU is 12;
(3) background process BG1:The ability for seizing CPU is 5;
(4) background process BG2:The ability for seizing CPU is 3.
2nd, the resource classification of CPU different cores can be:
(1) foreground process FG1:The core cpu resource of distribution is four big cores;
(2) foreground process FG2:The core cpu resource of distribution is two big cores;
(3) background process BG1:The core cpu resource of distribution is four small nuts;
(4) background process BG2:The core cpu resource of distribution is two small nuts.
Exemplary, when the process type of target process belongs to foreground user interface UI associated process, used according to foreground
Family interface UI associated process, the first foreground process seize the ability of CPU and the corresponding relation of the big nuclear phases of the first foreground process CPU,
Distribute the first foreground process CPU resources of big core for target process, and match the ability that the first foreground process seizes CPU that belongs to
Packet in;It is the CPU moneys of target process four big cores of distribution when i.e. target process belongs to foreground user interface UI associated process
Source, and match that to seize the ability of CPU be in 80 packet.
Or,
When the process type of target process belong to foreground service associated process when, according to foreground service associated process, second
Foreground process seizes the ability of CPU and the corresponding relation of the big nuclear phases of the second foreground process CPU, is that target process distributes the second foreground
The resource of the big core of process CPU, and match in the packet for belonging to the ability that the second foreground process seizes CPU;I.e. target process belongs to
It is that target process distributes the cpu resource of two big core when foreground services associated process, and matches and seize the ability of CPU and be
In 12 packet.
Or,
When the process type of target process belongs to background service associated process, according to background service associated process, first
Background process seizes the ability relation corresponding with the first background process CPU small nuts of CPU, is that target process distributes the first backstage
The resource of process CPU small nut, and match in the packet for belonging to the ability that the first background process seizes CPU;I.e. target process belongs to
When background service associated process, be target process distribute four small nuts cpu resource, and match seize CPU ability be 5
Packet in.
Or,
When the process type of target process belongs to backstage limited resources associated process, mutually put into according to backstage limited resources
Journey, the second background process seize the ability relation corresponding with the second background process CPU small nuts of CPU, are target process distribution
The resource of the second background process CPU small nuts, and match in the packet for belonging to the ability that the second background process seizes CPU;That is mesh
It is that target process distributes the cpu resource of two small nuts when mark process belongs to backstage limited resources associated process, and matches and seize
The ability of CPU is in 3 packet.
In embodiments of the present invention, the current attribute of target process is obtained;According to the current attribute of the target process, it is determined that
Process type classification belonging to the target process;It is default with central processor CPU resource classification according to the process type classification
Corresponding relation, is that the target process distributes corresponding cpu resource.Flexibly can be corresponded to according to the use state of target process
Distribution cpu resource, can dynamically be adjusted, and meet the demand of user.
The method of the resource allocation in the embodiment of the present invention is described above, below in the embodiment of the present invention
Mobile terminal is described, as shown in figure 4, for one embodiment schematic diagram of mobile terminal in the embodiment of the present invention, including:
Acquisition module 401, for obtaining the current attribute of target process;
Determining module 402, for according to the current attribute of target process, determining the process type point belonging to target process
Class;
Distribute module 403, for closing according to the default correspondence of process type classification and central processor CPU resource classification
System, is that target process distributes corresponding cpu resource.
Optionally, in some embodiments of the invention,
Central processor CPU resource classification includes:Seize the different Capability Categories of CPU and the resource point of CPU different cores
Class.
Optionally, in some embodiments of the invention,
Process type classification includes that foreground user interface UI associated process, foreground service associated process, background service are related
At least one in process and backstage limited resources associated process;
Seizing the different Capability Categories of CPU includes:First foreground process is seized the ability of CPU, the second foreground process and is seized
The ability of CPU, the first background process seize at least one that the ability and the second background process of CPU are seized in the ability of CPU;
The resource classification of CPU different cores includes:The big cores of first foreground process CPU, the big cores of the second foreground process CPU,
At least one in one background process CPU small nuts and the second background process CPU small nuts.
Optionally, in some embodiments of the invention,
The default corresponding relation of process type and central processor CPU resource classification includes:
Foreground user interface UI associated process, the first foreground process CPU abilities and the big nuclear phases pair of the first foreground process CPU
Should;
Foreground service associated process, the second foreground process CPU abilities are corresponding with the big nuclear phases of the second foreground process CPU;
Background service associated process, the first background process CPU abilities are corresponding with the first background process CPU small nuts;
Backstage limited resources associated process, the second background process CPU abilities are corresponding with the second background process CPU small nuts.
Optionally, in some embodiments of the invention,
On foreground, user interface UI associated process, foreground service associated process, background service associated process and backstage are limited
In resource associated process, service priority is arranged from high to low;
Seize the ability of CPU, the second foreground process and seize the ability of CPU, the first background process in the first foreground process and rob
The ability and the second background process for accounting for CPU is seized in the ability of CPU, and the ability for seizing CPU is arranged from high to low;
After the big cores of the first foreground process CPU, the big cores of the second foreground process CPU, the first background process CPU small nuts and second
In platform process CPU small nut, performance is arranged from high to low.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematic, for example, the unit
Divide, only a kind of division of logic function can have other dividing mode, such as multiple units or component when actually realizing
Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, during a computer read/write memory medium can be stored in.Based on such understanding, technical scheme is substantially
The part for contributing to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the invention
Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, above example only to illustrate technical scheme, rather than a limitation;Although with reference to front
State embodiment to be described in detail the present invention, it will be understood by those within the art that:It still can be to front
State the technical scheme described in each embodiment to modify, or equivalent is carried out to which part technical characteristic;And these
Modification is replaced, and does not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.
Claims (10)
1. a kind of method of resource allocation, is applied to mobile terminal, and operation on the mobile terminal has at least one process, and it is special
Levy and be, methods described includes:
Obtain the current attribute of target process;
According to the current attribute of the target process, the process type classification belonging to the target process is determined;
It is the target process according to process type classification and the default corresponding relation of central processor CPU resource classification
Distribute corresponding cpu resource.
2. method according to claim 1, it is characterised in that
The central processor CPU resource classification includes:Seize the different Capability Categories of CPU and the resource point of CPU different cores
Class.
3. method according to claim 2, it is characterised in that the process type classification includes foreground user interface UI phase
Put at least one in journey, foreground service associated process, background service associated process and backstage limited resources associated process into;
The different Capability Categories for seizing CPU include:First foreground process is seized the ability of CPU, the second foreground process and is seized
The ability of CPU, the first background process seize at least one that the ability and the second background process of CPU are seized in the ability of CPU;
The resource classification of the CPU different cores includes:The big cores of first foreground process CPU, the big cores of the second foreground process CPU,
At least one in one background process CPU small nuts and the second background process CPU small nuts.
4. method according to claim 3, it is characterised in that the process type and central processor CPU resource classification
Default corresponding relation include:
The foreground user interface UI associated process, the first foreground process CPU abilities and the first foreground process CPU are big
Nuclear phase correspondence;
The foreground service associated process, the second foreground process CPU abilities and the big nuclear phases pair of the second foreground process CPU
Should;
The background service associated process, the first background process CPU abilities and the first background process CPU small nuts are relative
Should;
The backstage limited resources associated process, the second background process CPU abilities and the second background process CPU small nuts
It is corresponding.
5. the method according to claim 3 or 4, it is characterised in that
The foreground user interface UI associated process, the foreground service associated process, the background service associated process and
In the backstage limited resources associated process, service priority is arranged from high to low;
Seize after the ability of CPU, second foreground process seize the ability of CPU, described first in first foreground process
Platform process seizes the ability of CPU and second background process is seized in the ability of CPU, and the ability for seizing CPU is arranged from high to low
Row;
In the big cores of the first foreground process CPU, the big cores of the second foreground process CPU, the first background process CPU small nuts
In the second background process CPU small nuts, performance is arranged from high to low.
6. a kind of mobile terminal, operation on the mobile terminal has at least one process, it is characterised in that include:
Acquisition module, for obtaining the current attribute of target process;
Determining module, for according to the current attribute of the target process, determining the process type point belonging to the target process
Class;
Distribute module, for according to the default corresponding relation of process type classification and central processor CPU resource classification, being
The target process distributes corresponding cpu resource.
7. mobile terminal according to claim 6, it is characterised in that
The central processor CPU resource classification includes:Seize the different Capability Categories of CPU and the resource point of CPU different cores
Class.
8. mobile terminal according to claim 7, it is characterised in that
The process type classification includes that foreground user interface UI associated process, foreground service associated process, background service are related
At least one in process and backstage limited resources associated process;
The different Capability Categories for seizing CPU include:First foreground process is seized the ability of CPU, the second foreground process and is seized
The ability of CPU, the first background process seize at least one that the ability and the second background process of CPU are seized in the ability of CPU;
The resource classification of the CPU different cores includes:The big cores of first foreground process CPU, the big cores of the second foreground process CPU,
At least one in one background process CPU small nuts and the second background process CPU small nuts.
9. mobile terminal according to claim 8, it is characterised in that
The default corresponding relation of the process type and central processor CPU resource classification includes:
The foreground user interface UI associated process, the first foreground process CPU abilities and the first foreground process CPU are big
Nuclear phase correspondence;
The foreground service associated process, the second foreground process CPU abilities and the big nuclear phases pair of the second foreground process CPU
Should;
The background service associated process, the first background process CPU abilities and the first background process CPU small nuts are relative
Should;
The backstage limited resources associated process, the second background process CPU abilities and the second background process CPU small nuts
It is corresponding.
10. mobile terminal according to claim 8 or claim 9, it is characterised in that
The foreground user interface UI associated process, the foreground service associated process, the background service associated process and
In the backstage limited resources associated process, service priority is arranged from high to low;
Seize after the ability of CPU, second foreground process seize the ability of CPU, described first in first foreground process
Platform process seizes the ability of CPU and second background process is seized in the ability of CPU, and the ability for seizing CPU is arranged from high to low
Row;
In the big cores of the first foreground process CPU, the big cores of the second foreground process CPU, the first background process CPU small nuts
In the second background process CPU small nuts, performance is arranged from high to low.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611032079.1A CN106569898A (en) | 2016-11-22 | 2016-11-22 | Resource distribution method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611032079.1A CN106569898A (en) | 2016-11-22 | 2016-11-22 | Resource distribution method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106569898A true CN106569898A (en) | 2017-04-19 |
Family
ID=58542897
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611032079.1A Withdrawn CN106569898A (en) | 2016-11-22 | 2016-11-22 | Resource distribution method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106569898A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168803A (en) * | 2017-05-19 | 2017-09-15 | 努比亚技术有限公司 | A kind of cpu resource distribution method and terminal |
CN107479744A (en) * | 2017-07-28 | 2017-12-15 | 广东欧珀移动通信有限公司 | Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority |
CN107526640A (en) * | 2017-08-17 | 2017-12-29 | 广东欧珀移动通信有限公司 | Method for managing resource, device, mobile terminal and computer-readable recording medium |
CN107977261A (en) * | 2017-11-30 | 2018-05-01 | 奇酷互联网络科技(深圳)有限公司 | Method, equipment, mobile terminal and the computer-readable storage medium of limiting process |
CN109992400A (en) * | 2017-12-29 | 2019-07-09 | 广东欧珀移动通信有限公司 | Resource allocation methods, device, mobile terminal and computer readable storage medium |
CN110231962A (en) * | 2019-06-10 | 2019-09-13 | Oppo广东移动通信有限公司 | Performance configuration method, device, terminal and the storage medium of process |
CN110413417A (en) * | 2019-08-02 | 2019-11-05 | 广州小鹏汽车科技有限公司 | The running optimizatin methods, devices and systems of onboard system process |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841815A (en) * | 2012-07-12 | 2012-12-26 | 北京航空航天大学 | Adaptive progress classification binding method for non uniform memory access (NUMA) system architecture |
CN104536822A (en) * | 2014-12-31 | 2015-04-22 | 中科创达软件股份有限公司 | Process scheduling optimization method, process execution method and related device |
-
2016
- 2016-11-22 CN CN201611032079.1A patent/CN106569898A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841815A (en) * | 2012-07-12 | 2012-12-26 | 北京航空航天大学 | Adaptive progress classification binding method for non uniform memory access (NUMA) system architecture |
CN104536822A (en) * | 2014-12-31 | 2015-04-22 | 中科创达软件股份有限公司 | Process scheduling optimization method, process execution method and related device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168803A (en) * | 2017-05-19 | 2017-09-15 | 努比亚技术有限公司 | A kind of cpu resource distribution method and terminal |
CN107479744A (en) * | 2017-07-28 | 2017-12-15 | 广东欧珀移动通信有限公司 | Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority |
CN107479744B (en) * | 2017-07-28 | 2021-02-02 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for adjusting scheduling priority of touch screen |
CN107526640A (en) * | 2017-08-17 | 2017-12-29 | 广东欧珀移动通信有限公司 | Method for managing resource, device, mobile terminal and computer-readable recording medium |
CN107526640B (en) * | 2017-08-17 | 2020-03-27 | Oppo广东移动通信有限公司 | Resource management method, resource management device, mobile terminal and computer-readable storage medium |
CN107977261A (en) * | 2017-11-30 | 2018-05-01 | 奇酷互联网络科技(深圳)有限公司 | Method, equipment, mobile terminal and the computer-readable storage medium of limiting process |
CN109992400A (en) * | 2017-12-29 | 2019-07-09 | 广东欧珀移动通信有限公司 | Resource allocation methods, device, mobile terminal and computer readable storage medium |
CN110231962A (en) * | 2019-06-10 | 2019-09-13 | Oppo广东移动通信有限公司 | Performance configuration method, device, terminal and the storage medium of process |
CN110231962B (en) * | 2019-06-10 | 2020-01-07 | Oppo广东移动通信有限公司 | Process performance configuration method, device, terminal and storage medium |
CN110413417A (en) * | 2019-08-02 | 2019-11-05 | 广州小鹏汽车科技有限公司 | The running optimizatin methods, devices and systems of onboard system process |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569898A (en) | Resource distribution method and mobile terminal | |
CN107015869B (en) | Transaction keeps accounts control method and system | |
CN106358245A (en) | Load sharing method of mobile edge computing application and controller | |
CN106096030A (en) | The method and apparatus that browser execution is optimized | |
CN111506404A (en) | Kubernetes-based shared GPU (graphics processing Unit) scheduling method | |
CN106201661A (en) | Method and apparatus for elastic telescopic cluster virtual machine | |
CN109918203A (en) | Access server memory management optimization method, access server and communication system | |
CN109634915A (en) | File dispositions method, Cloud Server, system and storage medium | |
CN106502778A (en) | A kind of terminal and its process scheduling optimization method | |
CN110012075B (en) | Data transmission method and related equipment | |
EP4167541A1 (en) | Method and apparatus of configuring a cloud server resource, electronic device and medium | |
CN109936613A (en) | Disaster recovery method and device applied to server | |
CN109818810A (en) | A kind of access server connection optimization method, access server and communication system | |
CN104484600B (en) | Intrusion detection method and device based on improved density clustering | |
CN109413125A (en) | The method and apparatus of dynamic regulation distributed system resource | |
CN104965829A (en) | Method, server and system for classifying terminal applications | |
EP3401862A1 (en) | Data storage and service processing method and device | |
CN110297959A (en) | Date storage method, device, storage medium and Edge Server | |
CN114742000B (en) | SoC chip verification system, method and device based on FPGA cluster | |
CN107943423A (en) | The management method and computer-readable recording medium of storage resource in cloud system | |
CN103258389B (en) | The method of self-aided terminal upload file, system and self-aided terminal | |
CN107423395A (en) | Navigation data processing system | |
CN106156146A (en) | The method and apparatus of cluster conversation anonymous pet name distribution | |
CN109150686A (en) | ACL table item delivery method, device and the network equipment | |
CN110290009A (en) | A kind of data dispatching method, device 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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170419 |