CN107577532B - Resource allocation method and Related product - Google Patents
Resource allocation method and Related product Download PDFInfo
- Publication number
- CN107577532B CN107577532B CN201710771658.6A CN201710771658A CN107577532B CN 107577532 B CN107577532 B CN 107577532B CN 201710771658 A CN201710771658 A CN 201710771658A CN 107577532 B CN107577532 B CN 107577532B
- Authority
- CN
- China
- Prior art keywords
- operating system
- destination application
- application
- performance boost
- data packet
- 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.)
- Expired - Fee Related
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]
Abstract
The embodiment of the present application discloses a kind of resource allocation method and Related product.Method includes: that the operating system of mobile terminal receives the contextual data packet from the destination application being currently running, and the contextual data packet includes the performance boost strategy for the Run-time scenario that the destination application generates;Operating system parses the contextual data packet and obtains the performance boost strategy;Operating system according to the system resource of destination application described in the performance boost Developing Tactics distribution.The embodiment of the present application is conducive to be promoted the processing speed of operating system in mobile terminal, and improves the real-time that mobile terminal control destination application carries out performance optimization.
Description
Technical field
This application involves technical field of mobile terminals, and in particular to resource allocation method and Related product.
Background technique
With the fast development of smart phone the relevant technologies, more and more applications are installed in user mobile phone, are such as read
Class application, the application of payment class, game class application, the application of music class etc. are read, the clothing, food, lodging and transportion -- basic necessities of life of people are inseparable with mobile phone.
Currently, as performance requirement of the people to each application is higher and higher, such as the speed of service of application, the picture of application
Face clarity etc. causes each application also just higher and higher in order to meet requirement of the needs of people to mobile phone.
Summary of the invention
The embodiment of the present application provides resource allocation method and Related product, can promote operating system in mobile terminal
Processing speed, and improve the real-time that mobile terminal control destination application carries out performance optimization.
In a first aspect, the embodiment of the present application provides a kind of resource allocation method, it is applied to mobile terminal, the mobile terminal
Upper operation has operating system and one or more application program, which comprises
The operating system receives the contextual data packet from the destination application being currently running, the contextual data packet
Performance boost strategy including the Run-time scenario that the destination application generates;
The operating system parses the contextual data packet and obtains the performance boost strategy;
The operating system according to the system resource of destination application described in the performance boost Developing Tactics distribution.
Second aspect, the embodiment of the present application provide a kind of resource allocation method, are applied to mobile terminal, the mobile terminal
Upper operation has operating system and one or more application program, which comprises
Destination application determines Run-time scenario;
The destination application obtains the performance boost strategy of the Run-time scenario;
The destination application sends contextual data packet to the operating system, and the contextual data packet includes the property
Energy Promotion Strategy, the contextual data packet is for the operating system according to target application described in the performance boost Developing Tactics
The distribution of the system resource of program.
The third aspect, the embodiment of the present application provide a kind of device for allocating resources, are applied to mobile terminal, the mobile terminal
Upper operation has operating system and one or more application program, and the device for allocating resources includes processing unit and communication unit
Member,
The processing unit is received by the communication unit from the mesh being currently running for controlling the operating system
The contextual data packet of application program is marked, the contextual data packet includes the performance for the Run-time scenario that the destination application generates
Promotion Strategy;And the contextual data packet acquisition performance boost strategy is parsed for controlling the operating system;And
For controlling the operating system according to the distribution of the system resource of destination application described in the performance boost Developing Tactics.
Fourth aspect, the embodiment of the present application provide a kind of device for allocating resources, are applied to mobile terminal, the mobile terminal
Upper operation has operating system and one or more application program, and the device for allocating resources includes processing unit and communication unit
Member,
The processing unit determines Run-time scenario for controlling destination application;And it is answered for controlling the target
The performance boost strategy of the Run-time scenario is obtained with program;And pass through the communication for controlling the destination application
Unit sends contextual data packet to the operating system, and the contextual data packet includes the performance boost strategy, the scene
Data packet is for the operating system according to point of the system resource of destination application described in the performance boost Developing Tactics
Match.
5th aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure includes for executing in any one of the embodiment of the present application first aspect and/or second aspect
The instruction of step.
6th aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable
Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as
Step some or all of described in any one of the embodiment of the present application first aspect and/or second aspect, above-mentioned calculating
Machine includes mobile terminal.
7th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product
Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate
Machine executes the step some or all of as described in any one of the embodiment of the present application first aspect and/or second aspect.
The computer program product can be a software installation packet, and above-mentioned computer includes mobile terminal.
As can be seen that after the destination application of mobile terminal has determined Run-time scenario, obtaining should in the embodiment of the present application
Then the performance boost strategy of Run-time scenario sends the contextual data packet including the performance boost strategy, operation to operating system
After system receives the contextual data packet from destination application, parses the contextual data packet and obtain performance boost strategy, and press
According to the distribution of the system resource of destination application described in the performance boost Developing Tactics.Since contextual data packet includes that target is answered
With the performance boost strategy of the Run-time scenario of program, and contextual data packet is sent by the destination application being currently running, operation
System can directly acquire the performance boost strategy of the current Run-time scenario of destination application, be conducive to be promoted and grasp in mobile terminal
Make the processing speed of system, operating system is matched according to the system resource that the performance boost strategy adjusts destination application in real time
It sets, realizes and carry out real-time performance optimization in the process of running to destination application by operating system, be conducive to improve and move
Dynamic terminal control destination application carries out the real-time of performance optimization.
Detailed description of the invention
Attached drawing involved by the embodiment of the present application will be briefly described below.
Figure 1A is a kind of system architecture schematic diagram of program running space;
Figure 1B is a kind of system architecture schematic diagram of Android system;
Fig. 2 is a kind of flow diagram of resource allocation method provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of resource allocation method disclosed in the embodiment of the present application;
Fig. 4 is a kind of flow diagram of resource allocation method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of smart phone disclosed in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have
It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap
Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application may include the various handheld devices with wireless communication function,
Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem
User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal
Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Behaviour involved by the embodiment of the present invention
It is the software systems for being managed collectively to hardware resource, and providing a user business interface as system.
As shown in Figure 1A, the mobile terminals such as smart phone are typically provided with program running space at present, and program operation is empty
Between include user's space and operating system space, wherein user's space operation have one or more application program, this or more
A application program is the third party application of mobile terminal installation, and operating system space motion has the operation system of mobile terminal
System.The mobile terminal can specifically run Android android system, Mobile operating system iOS of Apple Inc.'s exploitation etc., herein
Unique restriction is not done.As shown in Figure 1B, by taking above-mentioned running of mobile terminal has android system as an example, corresponding user's space packet
The application layer (Applications) in the android system is included, operating system space may include in the android system
Application framework layer (Application Framework), system Runtime Library layer (including system Runtime Library layer Libraries
With Android Runtime when Android operation), Linux inner core (Linux Kernel).It wherein, include each in application layer
The application program that class is directly interacted with user, or the service routine for running on backstage write by Java language.For example, intelligent hand
The program for the common basic function realized on machine, such as short message service (ShortMessaging Service, SMS) short message,
Dialing, Photo Browser, calendar, game, map, the programs such as WWW (World Wide Web, Web) browser, with
And the other applications of developer's exploitation.A system needed for application framework layer provides exploitation Android application program
Column class libraries can be used in reusing component, can also realize personalized extension by inheriting.System Runtime Library layer is application program
The support of frame provides service for the various components in android system.System Runtime Library layer is by system class libraries and Android
It is constituted when operation.It include core library and Dalvik virtual machine two parts when Android is run.Linux inner core is for realizing hard
Part device drives, process and memory management, network protocol stack, power management, the core functions such as wireless communication.
The process that above-mentioned third party application is created operates in user's space at the beginning, when it will execute network
When sending the movement such as data, reading disk resource, it is necessary to by calling write, send etc. to be connect by the standard that operating system provides
Mouthful function is completed, i.e., is operated by the code of CPU call operation system space to complete the request of user.As it can be seen that third party answers
The function that the offer of call operation system is provided with program, the standard interface function that it can only be called to provide.Meanwhile operating system is not
Know third party application specifically execute which function, destination application can not command operation system execute it is special
Operation, the two are independent from each other, this makes the internal operation scene of the indistinguishable destination application of operating system, can only
It goes to be adapted to using standard set parameter, it is excellent targetedly performance can not to be carried out for the internal operation scene of destination application
Change, in addition, in some schemes, operating system is detected when being currently running certain important applications, can select regulating system resource
In the resources such as CPU, GPU, memory bandwidth to highest state so that user experience gets a promotion, but due to CPU, GPU, interior
It deposits bandwidth etc. and runs on higher or highest state always, will cause higher power consumption and electric quantity consumption.
For above situation, the embodiment of the present application proposes a kind of resource distribution of destination application for mobile terminal
Method, in this method, the operating system receives the contextual data packet from the destination application being currently running, the scene
Data packet includes the performance boost strategy for the Run-time scenario that the destination application generates;The operating system parses the field
Scape data packet obtains the performance boost strategy;The operating system is according to target application described in the performance boost Developing Tactics
The distribution of the system resource of program.It realizes excellent for the performance progress of destination application in the process of running by operating system
Change, is conducive to improve real-time and accuracy that mobile terminal control destination application carries out performance optimization.
The embodiment of the present application is introduced with reference to the accompanying drawing.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of resource allocation method, it is applied to
Mobile terminal, operation has operating system and one or more application program on the mobile terminal, as shown, this resource is matched
The method of setting includes:
S201, the operating system receive the contextual data packet from the destination application being currently running, the scene
Data packet includes the performance boost strategy for the Run-time scenario that the destination application generates.
Wherein, destination application refers to the third party application for being mounted on the user's space of mobile terminal, the third
Square application program for example can be the application of instant messaging class, game class application etc., which can be pacified by user
Dress can also not do unique restriction by developer's prepackage before mobile terminal dispatches from the factory herein.
Wherein, the Run-time scenario is the currently running scene of the destination application.
Wherein, Run-time scenario can be divided according to different preset conditions, if third party application is instant messaging
Class in application, can be divided into according to the demand to cpu resource starting scene, into session context, exit session context etc., can
Check picture scene to be divided into according to the demand to GPU resource, check video scene etc., according to each system resource not
Different Run-time scenarios is marked off with demand, is conducive to quickly determine performance boost strategy according to Run-time scenario, in addition, should
Preset condition can also be associated with different application types (for example, non-instant communication class application program), i.e. different application type
Using identical or different internal operation scene can be marked off according to preset condition, unique restriction is not done herein.
Wherein, the performance boost strategy is the strategy that the target application scene is determined according to current Run-time scenario,
The performance boost strategy of the Run-time scenario is used to be promoted the runnability of current Run-time scenario, may include system to be adjusted
Resource, the adjustment amount of system resource to be adjusted, or can also include the adjustment duration of system resource to be adjusted.In addition,
The format of contextual data packet for example can be java script object tag (JavaScript Object Notation, JSON),
The data transmission formats such as agreement buffer area (ProtocolBuffer, Protobuf), user-defined format, do not do unique limit herein
It is fixed.
In a possible example, the operating system receives the scene number from the destination application being currently running
Before packet, the method also includes:
The operating system receives the connection request from the destination application, and the connection request includes the mesh
Mark the application identities of application program;
The operating system is inquiry mark with the application identities, and inquiry is directed to the permission of the multiple application program
Table;
When the authority list includes the application identities of the destination application, the operating system is that the target is answered
Data transmission interface is distributed with program, the data transmission interface is used between the destination application and the operating system
Data are transmitted, the data include at least the contextual data packet.
Wherein, the authority list is preset authority list in operating system, and the authority list is pre-stored in behaviour by manufacturer
Make in system, can include allowing to lead between operating system realization process by updating operating system update, in the authority list
The application identities of multiple application programs of letter.
Wherein, the operating system is assigned with after data transmission interface to the destination application, the operation system
System can be the transmission of Socket port communication with the communication mode between the destination application, pipeline pipe is communicated, shared
The modes such as SharedMemory, shared file are stored, do not do unique restriction herein.
It wherein, is destination application and operation system when the data transmission interface is currently running for destination application
Effective data transmission link is provided between system, after destination application does not rerun, which can be removed, should
Data transmission interface can be disabled.
As it can be seen that operating system first determines institute when receiving from the connection request of the destination application in this example
The permission of destination application is stated, then to the destination application distribution data transmission interface for meeting jurisdictions mandate, rather than
Blindness gives any application data coffret, is conducive to the disorder for avoiding data from transmitting, and guarantees data transmission
Safety.
S202, the operating system parse the contextual data packet and obtain the performance boost strategy.
Wherein, performance boost strategy refers to the fortune of the Run-time scenario for improving the above-mentioned destination application being currently running
The resource allocation strategy of row performance, as cpu resource adjustable strategies, GPU resource adjustable strategies, memory bandwidth resource adjusting strategies,
Disk resource adjustable strategies, Internet resources adjustable strategies etc., do not do unique restriction herein.
Wherein, performance boost strategy can be the adjustable strategies for a system resource, be also possible to for multiple moneys
The adjustable strategies in source, it is not limited here.
It wherein, include that data format identifies in the contextual data packet, the operating system is according to the Data Identification institute
The data format of instruction parses the contextual data packet and obtains the performance boost strategy.
S203, the operating system according to destination application described in the performance boost Developing Tactics system resource
Distribution.
In a possible example, the system resource includes at least one in the following resource of the mobile terminal
Kind: cpu resource, GPU resource, memory bandwidth resource, disk resource, Internet resources.Wherein, Internet resources include mobile terminal
The Internet resources of data network, the Internet resources of Wireless Fidelity Wi-Fi network, control parameter resource of bluetooth module etc..
It wherein, is cpu resource, GPU resource, memory bandwidth resource, at least one in disk resource in the system resource
When kind, operating system can be communicated by direct-connected communication mode with the inner nuclear layer in operating system space, adjust the system resource
Configuration, direct-connected communication mode refer to through abstract application programming interface (Application Programming
Interface, API) direct communication.
Wherein, when the system resource is Internet resources, operating system can be by indirect communication mode and operation
The inner nuclear layer communication in system space, adjusts the configuration of the system resource, and indirect communication mode refers to by calling agency service come between
Connect letter, as in Internet resources Wi-Fi subsystem or data network subsystem and operating system do not operate in the same system
It in system, needs by way of some agencies, these system resources of dereference, provides the agency of Wi-Fi in operating system
Service, by calling the interface of the agency service come indirect and Wi-Fi subsystem communication.
As can be seen that the operating system of mobile terminal is received first from the target being currently running in the embodiment of the present application
The contextual data packet of application program, the contextual data packet include that the performance for the Run-time scenario that the destination application generates mentions
Strategy is risen, secondly, the operating system, which parses the contextual data packet, obtains the performance boost strategy, finally, the operation
System according to the system resource of destination application described in the performance boost Developing Tactics distribution.Due to contextual data packet
The performance boost strategy of the Run-time scenario of destination application is included, and contextual data packet is sent out by the destination application being currently running
It send, operating system can directly acquire the performance boost strategy of the current Run-time scenario of destination application, be conducive to promote movement
The processing speed of operating system in terminal, the system that operating system adjusts destination application according to the performance boost strategy in real time
The configuration of resource realizes and carries out real-time performance optimization in the process of running to destination application by operating system, favorably
In the real-time for improving mobile terminal control destination application progress performance optimization.
The performance boost strategy described in a possible example includes system resource to be adjusted and described to be adjusted
The adjustment amount of system resource, the operating system are provided according to the system of destination application described in the performance boost Developing Tactics
The distribution in source, comprising:
The operating system according to the adjustment amount of the system resource to be adjusted adjust the destination application to
The distribution of the system resource of adjustment.
Wherein, the adjustment amount can according to system resource grade to be adjusted determine, it is described adjustment grade draw
Point impartial it can be divided into multiple grades according to the total amount of system resource or unequal be divided into multiple grades etc., In
This is not construed as limiting.
As it can be seen that in this example, operating system according to performance boost strategy directly acquires system resource to be adjusted and wait adjust
The adjustment amount of whole system resource, the contextual data parlor without being provided according to destination application connect determination, are conducive to
System function consumption is reduced, lifting operating system adjusts the speed of system resource allocation.
In a possible example, the performance boost strategy includes preset duration, and the operating system is according to described
After the distribution of the system resource of destination application described in performance boost Developing Tactics, the method also includes:
The operating system is default more than or equal to described according to the adjustment duration of the performance boost strategy when detecting
When duration, cancel the distribution of the system resource according to destination application described in the performance boost Developing Tactics.
Wherein, the preset duration is the adjustment duration of the system resource to be adjusted.
Wherein, the preset duration relating operation scene, when different Run-time scenarios presets different system resource adjustment
It is long.
Wherein, the distribution for cancelling the system resource according to destination application described in the performance boost Developing Tactics
To interrupt the permission to the data transmission interface, restore according to the target application before the performance boost Developing Tactics
The distribution of the system resource of program.
As it can be seen that the operating system is main when detecting that adjustment duration is greater than or equal to the preset duration in this example
The dynamic distribution for cancelling the system resource according to destination application described in the performance boost Developing Tactics, rather than target is allowed to answer
It occupies more system resource always with program, advantageously reduces the power consumption and electric quantity consumption of mobile terminal.
In a possible example, the operating system cancellation is answered according to target described in the performance boost Developing Tactics
With the distribution of the system resource of program, comprising: the operating system judges that the Run-time scenario is not finished, and cancels according to described
The distribution of the system resource of destination application described in performance boost Developing Tactics.
In a possible example, the operating system is according to target application journey described in the performance boost Developing Tactics
After the distribution of the system resource of sequence, the method also includes:
The operating system receives the instruction message from the destination application, institute by the data transmission interface
It states instruction message and is used to indicate the operating system cancellation according to destination application described in the performance boost Developing Tactics
The distribution of system resource;
The operating system is cancelled according to the instruction message according to target application described in the performance boost Developing Tactics
The distribution of the system resource of program.
Wherein, the instruction message is the destination application at the end of detecting the Run-time scenario, that is, is detected
When exiting current Run-time scenario to user's operation, it is sent to the instruction message of the operating system, the instruction message is used for institute
State the distribution for the system resource that operating system is cancelled according to destination application described in the performance boost Developing Tactics.
As it can be seen that the instruction message that operating system is sent according to destination application is cancelled according to the performance in this example
Promotion Strategy adjusts the distribution of the system resource of the destination application, is conducive to the accuracy for promoting the break period, without
It is that destination application is allowed to occupy more system resource always, the power consumption and electricity for advantageously reducing mobile terminal disappear
Consumption.
It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of resource provided by the embodiments of the present application
The flow diagram of configuration method is applied to mobile terminal, and operation has operating system and one or more on the mobile terminal
Application program.As shown, this resource allocation method includes:
S301, the operating system receive the connection request from destination application, and the connection request includes described
The application identities of destination application.
S302, the operating system are inquiry mark with the application identities, and inquiry is for the multiple application program
Authority list.
S303, when the authority list includes the application identities of the destination application, the operating system is described
Destination application distributes data transmission interface.
S304, the operating system are received by the data transmission interface from the destination application being currently running
Contextual data packet.
S305, the operating system parse the contextual data packet and obtain the performance boost strategy.
S306, the operating system according to destination application described in the performance boost Developing Tactics system resource
Distribution.
S307, the operating system receive the instruction from the destination application by the data transmission interface and disappear
Breath.
S308, the operating system are cancelled according to the instruction message according to target described in the performance boost Developing Tactics
The distribution of the system resource of application program.
As can be seen that the operating system of mobile terminal is received first from the target being currently running in the embodiment of the present application
The contextual data packet of application program, the contextual data packet include that the performance for the Run-time scenario that the destination application generates mentions
Strategy is risen, secondly, the operating system, which parses the contextual data packet, obtains the performance boost strategy, finally, the operation
System according to the system resource of destination application described in the performance boost Developing Tactics distribution.Due to contextual data packet
The performance boost strategy of the Run-time scenario of destination application is included, and contextual data packet is sent out by the destination application being currently running
It send, operating system can directly acquire the performance boost strategy of the current Run-time scenario of destination application, be conducive to promote movement
The processing speed of operating system in terminal, the system that operating system adjusts destination application according to the performance boost strategy in real time
The configuration of resource realizes and carries out real-time performance optimization in the process of running to destination application by operating system, favorably
In the real-time for improving mobile terminal control destination application progress performance optimization.
In addition, operating system first determines that the target is answered when receiving from the connection request of the destination application
With the permission of program, then to the destination application distribution data transmission interface for meeting jurisdictions mandate, rather than point of blindness
To any application data coffret, be conducive to the disorder for avoiding data from transmitting, and guarantee the safety of data transmission.
In addition, the instruction message that operating system is sent according to destination application is cancelled according to the performance boost strategy tune
The distribution of the system resource of the whole destination application is conducive to the accuracy for promoting the break period, rather than target is allowed to answer
It occupies more system resource always with program, advantageously reduces the power consumption and electric quantity consumption of mobile terminal.
Referring to Fig. 4, Fig. 4 is a kind of flow diagram of resource allocation method provided by the embodiments of the present application, it is applied to
Mobile terminal, operation has operating system and one or more application program on the mobile terminal.As shown, this resource distribution
Method includes:
S401, destination application determine Run-time scenario.
Wherein, the destination application determines that the specific implementation of Run-time scenario may is that work as and detects user's
When operation requests, inquire in the destination application the multiple Run-time scenarios stored according to the operation requests, determine described in
The corresponding Run-time scenario of operation requests.
Wherein, destination application refers to the third party application for being mounted on the user's space of mobile terminal, the third
Square application program for example can be the application of instant messaging class, game class application etc., which can be pacified by user
Dress can also not do unique restriction by developer's prepackage before mobile terminal dispatches from the factory herein.
Wherein, Run-time scenario can be divided according to different preset conditions and is stored in destination application, and such as the
Tripartite's application program is instant messaging class in application, can be divided into starting scene according to the demand to cpu resource, into session
Scene exits session context etc., can be divided into according to the demand to GPU resource and check picture scene, check video scene etc.,
Different Run-time scenarios is marked off according to the different demands to each system resource, is conducive to quickly be determined according to Run-time scenario
Performance boost strategy out, in addition, the preset condition can also be associated with different application types (for example, non-instant communication class application
Program), i.e. the application of different application type can mark off identical or different internal operation scene according to preset condition, herein
Unique restriction is not done.
S402, the destination application obtain the performance boost strategy of the Run-time scenario.
Wherein, performance boost strategy refers to the fortune of the Run-time scenario for improving the above-mentioned destination application being currently running
The resource allocation strategy of row performance, as cpu resource adjustable strategies, GPU resource adjustable strategies, memory bandwidth resource adjusting strategies,
Disk resource adjustable strategies, Internet resources adjustable strategies etc., do not do unique restriction herein, in addition, performance boost strategy can wrap
System resource to be adjusted, the adjustment amount of system resource to be adjusted are included, or can also include system resource to be adjusted
Adjust duration.
Wherein, the destination application prestores the mapping relations of multiple Run-time scenarios Yu performance boost strategy, described to reflect
What the relationship of penetrating was arranged by developer according to test result when can dispatch from the factory for the destination application.
S403, the destination application send contextual data packet to the operating system, and the contextual data packet includes
The performance boost strategy.
Wherein, the contextual data packet is answered for the operating system according to target described in the performance boost Developing Tactics
With the distribution of the system resource of program.
As can be seen that the destination application of mobile terminal determines Run-time scenario, secondly, described in the embodiment of the present application
Destination application obtains the performance boost strategy of the Run-time scenario, finally, the destination application is to the operation
System sends contextual data packet, and the contextual data packet includes the performance boost strategy, and the contextual data packet is used for the behaviour
Make system according to the distribution of the system resource of destination application described in the performance boost Developing Tactics.Due to contextual data packet
The performance boost strategy of Run-time scenario including destination application, and contextual data packet is by the destination application that is currently running
It sends, operating system can directly acquire the performance boost strategy of the current Run-time scenario of destination application, be conducive to be promoted and move
The processing speed of operating system, operating system are according to what the performance boost strategy adjusted destination application in real time in dynamic terminal
The configuration for resource of uniting, realizes and carries out real-time performance optimization in the process of running to destination application by operating system, have
Conducive to the real-time for improving mobile terminal control destination application progress performance optimization.
In a possible example, before the destination application sends contextual data packet to the operating system,
The method also includes:
The destination application sends connection request to the operating system, and the connection request includes that the target is answered
With the application identities of program, the application identities are inquiry mark with the application identities for the operating system, inquire needle
To the authority list of the multiple application program, and when the authority list includes the application identities of the destination application, institute
Stating operating system is that the destination application distributes data transmission interface, and the data transmission interface is used for the target application
Data are transmitted between program and the operating system, the data include at least the contextual data packet.
As it can be seen that the destination application sends connection request to the operating system in this example, operating system is requested
Distribute data transmission interface, operating system determines after the permission of destination application to the destination application for meeting jurisdictions mandate
Data transmission interface is distributed, rather than blindness gives any application data coffret, is conducive to that data is avoided to transmit
Disorder, and guarantee data transmission safety.
In a possible example, after the destination application sends contextual data packet to the operating system,
The method also includes:
The destination application sends instruction message, the finger to the operating system by the data transmission interface
Show that message is cancelled for the operating system according to the instruction message to answer according to target described in the performance boost Developing Tactics
With the distribution of the system resource of program.
As it can be seen that in this example, destination application sends instruction message to operating system at the end of detecting Run-time scenario,
Indicate that operating system cancels the distribution of the system resource according to destination application described in the performance boost Developing Tactics, favorably
In the accuracy of promotion break period, rather than destination application is allowed to occupy more system resource always, advantageously reduced
The power consumption and electric quantity consumption of mobile terminal.
It is consistent with above-mentioned Fig. 2, Fig. 3 or embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is that the embodiment of the present application provides
A kind of mobile terminal structural schematic diagram, which has one or more application program and operating system, such as schemes
Shown, which includes processor, memory, communication interface and one or more programs, wherein said one is more
A program is different from said one or multiple application programs, and said one or multiple programs are stored in above-mentioned memory,
And it is configured to be executed by above-mentioned processor, above procedure includes the instruction for executing following steps;
It controls the operating system and receives the contextual data packet from the destination application being currently running, the scene number
It include the performance boost strategy for the Run-time scenario that the destination application generates according to packet;
It controls the operating system and parses the contextual data packet acquisition performance boost strategy;
The operating system is controlled according to the system resource of destination application described in the performance boost Developing Tactics
Distribution.
As can be seen that the operating system of mobile terminal is received first from the target being currently running in the embodiment of the present application
The contextual data packet of application program, the contextual data packet include that the performance for the Run-time scenario that the destination application generates mentions
Strategy is risen, secondly, the operating system, which parses the contextual data packet, obtains the performance boost strategy, finally, the operation
System according to the system resource of destination application described in the performance boost Developing Tactics distribution.Due to contextual data packet
The performance boost strategy of the Run-time scenario of destination application is included, and contextual data packet is sent out by the destination application being currently running
It send, operating system can directly acquire the performance boost strategy of the current Run-time scenario of destination application, be conducive to promote movement
The processing speed of operating system in terminal, the system that operating system adjusts destination application according to the performance boost strategy in real time
The configuration of resource realizes and carries out real-time performance optimization in the process of running to destination application by operating system, favorably
In the real-time for improving mobile terminal control destination application progress performance optimization.
In a possible example, above procedure further includes the instruction for executing following steps: described in the control
Before operating system receives the contextual data packet from the destination application being currently running, control the operating system and receive
From the connection request of the destination application, the connection request includes the application identities of the destination application;And
The operating system is controlled with the application identities as inquiry mark, inquiry is directed to the authority list of the multiple application program;With
And control, when the authority list includes the application identities of the destination application, the operating system is the target application
Program distributes data transmission interface, and the data transmission interface between the destination application and the operating system for passing
Transmission of data, the data include at least the contextual data packet.
In a possible example, the performance boost strategy includes system resource to be adjusted and described to be adjusted
The adjustment amount of system resource, in the control operating system according to target application journey described in the performance boost Developing Tactics
In terms of the distribution of the system resource of sequence, the instruction in described program is specifically used for executing following operation: controlling the operating system
The distribution of the system resource to be adjusted of the destination application is adjusted according to the adjustment amount of the system resource to be adjusted.
In a possible example, the performance boost strategy includes preset duration, and above procedure further includes for holding
The instruction of row following steps: the control operating system is according to destination application described in the performance boost Developing Tactics
System resource distribution after, control the operating system and grow up when detecting the adjustment according to the performance boost strategy
When the preset duration, cancel the system resource according to destination application described in the performance boost Developing Tactics
Distribution.
In a possible example, in the cancellation according to destination application described in the performance boost Developing Tactics
System resource distribution in terms of, the instruction in described program is specifically used for executing following operation: judging the Run-time scenario
It is not finished, cancels the distribution of the system resource according to destination application described in the performance boost Developing Tactics.
In a possible example, above procedure further includes the instruction for executing following steps: described in the control
After distribution of the operating system according to the system resource of destination application described in the performance boost Developing Tactics, described in control
Operating system receives the instruction message from the destination application by the data transmission interface, and the instruction message is used
Cancel point of the system resource according to destination application described in the performance boost Developing Tactics in the instruction operating system
Match;And the control operating system is answered according to instruction message cancellation according to target described in the performance boost Developing Tactics
With the distribution of the system resource of program.
Alternatively, above procedure includes the instruction for executing following steps;
Control destination application determines Run-time scenario;
Control the performance boost strategy that the destination application obtains the Run-time scenario;
It controls the destination application and sends contextual data packet to the operating system, the contextual data packet includes institute
Performance boost strategy is stated, the contextual data packet is for the operating system according to target described in the performance boost Developing Tactics
The distribution of the system resource of application program.
As can be seen that the destination application of mobile terminal determines Run-time scenario, secondly, described in the embodiment of the present application
Destination application obtains the performance boost strategy of the Run-time scenario, finally, the destination application is to the operation
System sends contextual data packet, and the contextual data packet includes the performance boost strategy, and the contextual data packet is used for the behaviour
Make system according to the distribution of the system resource of destination application described in the performance boost Developing Tactics.Due to contextual data packet
The performance boost strategy of Run-time scenario including destination application, and contextual data packet is by the destination application that is currently running
It sends, operating system can directly acquire the performance boost strategy of the current Run-time scenario of destination application, be conducive to be promoted and move
The processing speed of operating system, operating system are according to what the performance boost strategy adjusted destination application in real time in dynamic terminal
The configuration for resource of uniting, realizes and carries out real-time performance optimization in the process of running to destination application by operating system, have
Conducive to the real-time for improving mobile terminal control destination application progress performance optimization.
In a possible example, above procedure further includes the instruction for executing following steps: described in the control
Before destination application sends contextual data packet to the operating system, controlling the destination application to the operation is
System sends connection request, and the connection request includes the application identities of the destination application, and the application identities are used for institute
Operating system is stated with the application identities as inquiry mark, inquiry is directed to the authority list of the multiple application program, and when described
When authority list includes the application identities of the destination application, the operating system is that the destination application distributes data
Coffret, the data transmission interface are described for transmitting data between the destination application and the operating system
Data include at least the contextual data packet.
In a possible example, above procedure further includes the instruction for executing following steps: described in the control
After destination application sends contextual data packet to the operating system, controls the destination application and pass through the data
Coffret sends instruction message to the operating system, and the instruction message disappears for the operating system according to the instruction
Breath cancels the distribution of the system resource according to destination application described in the performance boost Developing Tactics.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that
, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for mobile terminal
Block.Those skilled in the art should be readily appreciated that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution
Part.Professional technician can specifically realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to mobile terminal, for example, can
With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit
In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs
It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
Using integrated unit, Fig. 6 shows device for allocating resources involved in above-described embodiment
A kind of possible functional unit composition block diagram.Device for allocating resources 600 is applied to mobile terminal, and running on the mobile terminal has
Operating system and one or more application program, the device for allocating resources 600 include: processing unit 602 and communication unit
603.Processing unit 602 is for carrying out control management to the movement of device for allocating resources, for example, processing unit 602 is for supporting
Device for allocating resources executes the step S301-S308 in step S201-S203, Fig. 3 in Fig. 2, or for supporting resource distribution
Device executes the step S401-S403 in Fig. 4 and/or other processes for techniques described herein.Device for allocating resources
It can also include storage unit 601, for storing program code and data.
The processing unit 602 is received by the communication unit 603 from transporting for controlling the operating system
The contextual data packet of capable destination application, the contextual data packet include the Run-time scenario that the destination application generates
Performance boost strategy;And the contextual data packet acquisition performance boost plan is parsed for controlling the operating system
Slightly;And for controlling the operating system according to the system resource of destination application described in the performance boost Developing Tactics
Distribution.
In a possible example, the processing unit 602 controls the operating system and passes through the communication unit 603
Before receiving the contextual data packet from the destination application being currently running, it is also used to: controls the operating system and pass through institute
It states communication unit 603 and receives the connection request from the destination application, the connection request includes the target application
The application identities of program;And for controlling the operating system with the application identities as inquiry mark, inquiry is for described
The authority list of multiple application programs;And work as the application identities that the authority list includes the destination application for controlling
When, the operating system is that the destination application distributes data transmission interface, and the data transmission interface is used for the mesh
Data are transmitted between mark application program and the operating system, the data include at least the contextual data packet.
In a possible example, the performance boost strategy includes system resource to be adjusted and described to be adjusted
The adjustment amount of system resource, in the control operating system according to target application journey described in the performance boost Developing Tactics
In terms of the distribution of the system resource of sequence, the processing unit 602 is specifically used for: controlling the operating system according to described to be adjusted
System resource adjustment amount adjust the destination application system resource to be adjusted distribution.
In a possible example, the performance boost strategy includes preset duration, and the processing unit 602 controls institute
After stating distribution of the operating system according to the system resource of destination application described in the performance boost Developing Tactics, also use
In: the operating system is controlled when detecting that the adjustment duration according to the performance boost strategy is greater than or equal to described default
When long, cancel the distribution of the system resource according to destination application described in the performance boost Developing Tactics.
In a possible example, in the cancellation according to destination application described in the performance boost Developing Tactics
System resource distribution in terms of, the processing unit 602 is specifically used for: judging that the Run-time scenario is not finished, cancellation is pressed
According to the distribution of the system resource of destination application described in the performance boost Developing Tactics.
In a possible example, the processing unit 602 controls the operating system according to the performance boost plan
It after the distribution for slightly adjusting the system resource of the destination application, is also used to: controlling the operating system and pass through the number
The instruction message from the destination application is received according to coffret, the instruction message is used to indicate the operating system
Cancel the distribution of the system resource according to destination application described in the performance boost Developing Tactics;And it is described for controlling
Operating system is cancelled according to the instruction message to be provided according to the system of destination application described in the performance boost Developing Tactics
The distribution in source.
Alternatively,
The processing unit 602 determines Run-time scenario for controlling destination application;And for controlling the target
Application program obtains the performance boost strategy of the Run-time scenario;And led to for controlling the destination application by described
Believe that unit 603 sends contextual data packet to the operating system, the contextual data packet includes the performance boost strategy, described
Contextual data packet is for the operating system according to the system resource of destination application described in the performance boost Developing Tactics
Distribution.
In a possible example, the processing unit 602 controls the destination application to the operating system
It before sending contextual data packet, is also used to: controlling the destination application to the operating system and pass through the communication unit
603 send connection request, and the connection request includes the application identities of the destination application, and the application identities are used for institute
Operating system is stated with the application identities as inquiry mark, inquiry is directed to the authority list of the multiple application program, and when described
When authority list includes the application identities of the destination application, the operating system is that the destination application distributes data
Coffret, the data transmission interface are described for transmitting data between the destination application and the operating system
Data include at least the contextual data packet.
In a possible example, the processing unit 602 controls the destination application to the operating system
It after sending contextual data packet, is also used to: controlling the destination application by the data transmission interface to the operation
System sends instruction message, and the instruction message is cancelled according to the instruction message according to the performance for the operating system
Promotion Strategy adjusts the distribution of the system resource of the destination application.
Wherein, processing unit 602 can be processor or controller, and communication unit 603 can be processor and program fortune
Internal communications interface between row space, as the communication interface or processor in processor and operating system space and user are empty
Between communication interface etc., storage unit 601 can be memory.
Referring to Fig. 7, Fig. 7 is that the embodiment of the present application provides a kind of structural schematic diagram of smart phone 700, above-mentioned intelligence
Mobile phone 700 includes: shell 710, touching display screen 720, mainboard 730, battery 740 and subplate 750, before being provided on mainboard 730
Camera 731, processor 732, memory 733, power management chip 734 etc. are set, oscillator 751, integrated sound are provided on subplate
Interface 753 and fingerprint recognition mould group 754 are filled in chamber 752, VOOC sudden strain of a muscle.
Wherein, which includes destination application and operating system, and destination application runs on user's space,
Operating system is in operating system space.Operating system receives the contextual data from the destination application being currently running
Packet, the contextual data packet include the performance boost strategy for the Run-time scenario that the destination application generates;Operating system solution
It analyses the contextual data packet and obtains the performance boost strategy;Operating system is according to target described in the performance boost Developing Tactics
The distribution of the system resource of application program.
Wherein, destination application determines Run-time scenario;Destination application obtains the performance boost of the Run-time scenario
Strategy;Destination application sends contextual data packet to the operating system, and the contextual data packet includes the performance boost
Strategy, the contextual data packet is for the operating system according to destination application described in the performance boost Developing Tactics
The distribution of system resource.
Above-mentioned processor 732 is the control centre of smart phone, utilizes various interfaces and the entire smart phone of connection
Various pieces, by running or execute the software program and/or module that are stored in memory 733, and call and be stored in
Data in memory 733 execute the various functions and processing data of smart phone, to carry out whole prison to smart phone
Control.Optionally, processor 732 may include one or more processing units;Preferably, processor 732 can integrate application processor
And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate
Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor
In 732.The processor 732 for example can be central processing unit (Central Processing Unit, CPU), general procedure
Device, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application-
Specific Integrated Circuit, ASIC), field programmable gate array (FieldProgrammable Gate
Array, FPGA) either other programmable logic device, transistor logic, hardware component or any combination thereof.It can
To realize or execute various illustrative logic blocks, module and circuit in conjunction with described in present disclosure.Above-mentioned place
Reason device is also possible to realize the combination of computing function, such as combines comprising one or more microprocessors, DSP and microprocessor
Combination etc..
Above-mentioned memory 733 can be used for storing software program and module, and processor 732 is stored in memory by operation
733 software program and module, thereby executing the various function application and data processing of smart phone.Memory 733 can
It mainly include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function
Application program etc.;Storage data area, which can be stored, uses created data etc. according to smart phone.In addition, memory 733
May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory,
Flush memory device or other volatile solid-state parts.The memory 733 for example can be random access memory (Random
Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), the read-only storage of erasable programmable
Device (Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically
EPROM, EEPROM), register, hard disk, mobile hard disk, CD-ROM (CD-ROM) or any other shape well known in the art
The storage medium of formula.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment
Some or all of method step, above-mentioned computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either record method step in method embodiment.The computer program product can be a software installation
Packet, above-mentioned computer includes mobile terminal.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application
Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English:
Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application
There is change place, to sum up above-mentioned, the contents of this specification should not be construed as limiting the present application.
Claims (11)
1. a kind of resource allocation method, which is characterized in that be applied to mobile terminal, operation has operating system on the mobile terminal
And one or more application program, which comprises
The operating system receives the contextual data packet from the destination application being currently running, and the contextual data packet includes
The performance boost strategy for the Run-time scenario that the destination application is generated according to current Run-time scenario, the performance boost plan
Slightly it is directed to the adjustable strategies of multiple system resources;
The operating system parses the contextual data packet and obtains the performance boost strategy;
The operating system according to the system resource of destination application described in the performance boost Developing Tactics distribution;
Before the operating system receives the contextual data packet from the destination application being currently running, the method is also wrapped
It includes:
The operating system receives the connection request from the destination application, and the connection request includes that the target is answered
With the application identities of program;
The operating system is inquiry mark with the application identities, and inquiry is directed to the authority list of the multiple application program;
When the authority list includes the application identities of the destination application, the operating system is the target application journey
Sequence distributes data transmission interface, and the data transmission interface between the destination application and the operating system for transmitting
Data, the data include at least the contextual data packet.
2. the method according to claim 1, wherein the performance boost strategy includes system resource to be adjusted
With the adjustment amount of the system resource to be adjusted, the operating system is answered according to target described in the performance boost Developing Tactics
With the distribution of the system resource of program, comprising:
The operating system adjusts the to be adjusted of the destination application according to the adjustment amount of the system resource to be adjusted
System resource distribution.
3. method according to claim 1 or 2, which is characterized in that the performance boost strategy includes preset duration, described
After distribution of the operating system according to the system resource of destination application described in the performance boost Developing Tactics, the method
Further include:
The operating system, which is worked as, to be detected according to the adjustment duration of the performance boost strategy more than or equal to the preset duration
When, cancel the distribution of the system resource according to destination application described in the performance boost Developing Tactics.
4. according to the method described in claim 3, it is characterized in that, the cancellation is according to described in the performance boost Developing Tactics
The distribution of the system resource of destination application, comprising:
The operating system judges that the Run-time scenario is not finished, and cancels according to target described in the performance boost Developing Tactics
The distribution of the system resource of application program.
5. method according to claim 1 or 2, which is characterized in that the operating system is according to the performance boost strategy
After the distribution for adjusting the system resource of the destination application, the method also includes:
The operating system receives the instruction message from the destination application, the finger by the data transmission interface
Show that message is used to indicate the operating system cancellation according to the system of destination application described in the performance boost Developing Tactics
The distribution of resource;
The operating system is cancelled according to the instruction message according to destination application described in the performance boost Developing Tactics
System resource distribution.
6. a kind of resource allocation method, which is characterized in that be applied to mobile terminal, operation has operating system on the mobile terminal
And one or more application program, which comprises
Destination application determines Run-time scenario;
The destination application obtains the performance boost strategy of the Run-time scenario, the performance according to current Run-time scenario
Promotion Strategy is the adjustable strategies for multiple system resources;
The destination application sends contextual data packet to the operating system, and the contextual data packet includes that the performance mentions
Strategy is risen, the contextual data packet is for the operating system according to destination application described in the performance boost Developing Tactics
System resource distribution;
Before the destination application sends contextual data packet to the operating system, the method also includes:
The destination application sends connection request to the operating system, and the connection request includes the target application journey
The application identities of sequence, the application identities are inquiry mark with the application identities for the operating system, and inquiry is directed to institute
The authority list of multiple application programs is stated, and when the authority list includes the application identities of the destination application, the behaviour
Making system is that the destination application distributes data transmission interface, and the data transmission interface is used for the destination application
Data are transmitted between the operating system, the data include at least the contextual data packet.
7. according to the method described in claim 6, it is characterized in that, the destination application sends field to the operating system
After scape data packet, the method also includes:
The destination application sends instruction message to the operating system by the data transmission interface, and the instruction disappears
Breath is cancelled according to the instruction message according to target application journey described in the performance boost Developing Tactics for the operating system
The distribution of the system resource of sequence.
8. a kind of device for allocating resources, which is characterized in that be applied to mobile terminal, operation has operating system on the mobile terminal
And one or more application program, the device for allocating resources include processing unit and communication unit,
The processing unit is answered by communication unit reception from the target being currently running for controlling the operating system
With the contextual data packet of program, the contextual data packet includes that the destination application is generated according to current Run-time scenario
The performance boost strategy of Run-time scenario, the performance boost strategy are the adjustable strategies for multiple system resources;And it is used for
It controls the operating system and parses the contextual data packet acquisition performance boost strategy;And for controlling the operation system
The distribution united according to the system resource of destination application described in the performance boost Developing Tactics;
The processing unit is also used to before receiving the contextual data packet from the destination application being currently running: control
The operating system receives the connection request from the destination application, the connection request packet by the communication unit
Include the application identities of the destination application;The operating system is inquiry mark with the application identities, and inquiry is directed to institute
State the authority list of multiple application programs;When the authority list includes the application identities of the destination application, the operation
System is that the destination application distributes data transmission interface, the data transmission interface for the destination application and
Data are transmitted between the operating system, the data include at least the contextual data packet.
9. a kind of device for allocating resources, which is characterized in that be applied to mobile terminal, operation has operating system on the mobile terminal
And one or more application program, the device for allocating resources include processing unit and communication unit,
The processing unit determines Run-time scenario for controlling destination application;And for controlling the target application journey
Sequence obtains the performance boost strategy of the Run-time scenario according to current Run-time scenario, and the performance boost strategy is for multiple
The adjustable strategies of system resource;And for controlling the destination application by the communication unit to the operating system
Contextual data packet is sent, the contextual data packet includes the performance boost strategy, and the contextual data packet is used for the operation
System according to the system resource of destination application described in the performance boost Developing Tactics distribution;
The processing unit controls the destination application and sends scene number to the operating system by the communication unit
It before packet, is also used to: controlling the destination application and asked to the operating system by communication unit transmission connection
It asks, the connection request includes the application identities of the destination application, so that the operating system is with the application mark
Know for inquiry mark, inquire the authority list for being directed to the multiple application program, and when the authority list includes the target application
When the application identities of program, the operating system is that the destination application distributes data transmission interface, the data transmission
Interface includes at least the scene number for transmitting data, the data between the destination application and the operating system
According to packet.
10. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface and one or more program,
Wherein, one or more of programs are stored in the memory, and are configured to be executed by the processor, the journey
Sequence includes the steps that requiring the instruction in any one of 1-5 and/or 6-7 method for perform claim.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage is used for electron number
According to the computer program of exchange, wherein the computer program executes computer as appointed in claim 1-5 and/or 6-7
Method described in one, the computer include mobile terminal.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710771658.6A CN107577532B (en) | 2017-08-31 | 2017-08-31 | Resource allocation method and Related product |
PCT/CN2018/101183 WO2019042172A1 (en) | 2017-08-31 | 2018-08-17 | Resource allocation method and product related thereto |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710771658.6A CN107577532B (en) | 2017-08-31 | 2017-08-31 | Resource allocation method and Related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107577532A CN107577532A (en) | 2018-01-12 |
CN107577532B true CN107577532B (en) | 2019-10-29 |
Family
ID=61030789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710771658.6A Expired - Fee Related CN107577532B (en) | 2017-08-31 | 2017-08-31 | Resource allocation method and Related product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107577532B (en) |
WO (1) | WO2019042172A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577532B (en) * | 2017-08-31 | 2019-10-29 | Oppo广东移动通信有限公司 | Resource allocation method and Related product |
CN111240837B (en) * | 2018-03-13 | 2023-12-26 | Oppo广东移动通信有限公司 | Resource allocation method, device, terminal and storage medium |
EP3779690A4 (en) | 2018-04-20 | 2021-05-12 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Processor core scheduling method and apparatus, terminal, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932383A (en) * | 2011-08-08 | 2013-02-13 | 联想(北京)有限公司 | Data transmission method, terminal and terminal system |
CN106020990A (en) * | 2016-06-30 | 2016-10-12 | 宇龙计算机通信科技(深圳)有限公司 | Control method for central processing unit and terminal equipment |
CN106095592A (en) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | A kind of prospect application scenarios synchronous method and device, system |
CN106201551A (en) * | 2016-07-22 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application program exits method and device |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0346039A2 (en) * | 1988-06-06 | 1989-12-13 | Demax Software, Inc | Dynamic load balancing for multi-user computers |
US8875148B2 (en) * | 2011-06-14 | 2014-10-28 | International Business Machines Corporation | Product-specific system resource allocation within a single operating system instance |
US8832249B2 (en) * | 2011-11-30 | 2014-09-09 | At&T Intellectual Property I, L.P. | Methods and apparatus to adjust resource allocation in a distributive computing network |
CN110147282A (en) * | 2012-03-05 | 2019-08-20 | 联想(北京)有限公司 | A kind of method and electronic equipment obtaining hardware resource |
WO2014005328A1 (en) * | 2012-07-06 | 2014-01-09 | 华为终端有限公司 | Method and device for allocating resource |
CN103106117A (en) * | 2012-12-25 | 2013-05-15 | 青岛海信电器股份有限公司 | Resource allocation method and electronic equipment |
US9753766B2 (en) * | 2014-11-25 | 2017-09-05 | Raytheon Company | Apparatus and method for allocating resources using prioritization of requests and updating of requests |
CN106961677A (en) * | 2016-01-11 | 2017-07-18 | 中国移动通信集团公司 | A kind of management method and server, terminal |
CN105843679B (en) * | 2016-03-18 | 2018-11-02 | 西北工业大学 | Adaptive many-core resource regulating method |
CN107577532B (en) * | 2017-08-31 | 2019-10-29 | Oppo广东移动通信有限公司 | Resource allocation method and Related product |
-
2017
- 2017-08-31 CN CN201710771658.6A patent/CN107577532B/en not_active Expired - Fee Related
-
2018
- 2018-08-17 WO PCT/CN2018/101183 patent/WO2019042172A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932383A (en) * | 2011-08-08 | 2013-02-13 | 联想(北京)有限公司 | Data transmission method, terminal and terminal system |
CN106095592A (en) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | A kind of prospect application scenarios synchronous method and device, system |
CN106020990A (en) * | 2016-06-30 | 2016-10-12 | 宇龙计算机通信科技(深圳)有限公司 | Control method for central processing unit and terminal equipment |
CN106201551A (en) * | 2016-07-22 | 2016-12-07 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application program exits method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107577532A (en) | 2018-01-12 |
WO2019042172A1 (en) | 2019-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107426432B (en) | Resource allocation method and Related product | |
WO2021142609A1 (en) | Information reporting method, apparatus and device, and storage medium | |
US11151010B2 (en) | Resource configuration method, mobile terminal and storage medium | |
CN107528976A (en) | Resource allocation method and Related product | |
WO2019042169A1 (en) | Resource allocation method and related products | |
CN107515787A (en) | Resource allocation method and Related product | |
CN107577537A (en) | Resource allocation method and Related product | |
CN107547744A (en) | Resource allocation method and Related product | |
WO2019042294A1 (en) | Resource allocation method and related product | |
CN107479970B (en) | Resource allocation method and related product | |
WO2019042180A1 (en) | Resource allocation method and related product | |
CN107450988B (en) | Resource allocation method and related product | |
CN107577532B (en) | Resource allocation method and Related product | |
CN107894920A (en) | Resource allocation method and Related product | |
AU2019256257B2 (en) | Processor core scheduling method and apparatus, terminal, and storage medium | |
CN107589977A (en) | Resource allocation method and related product | |
US11016812B2 (en) | Method for resource allocation and terminal device | |
CN107247629A (en) | Cloud computing system and cloud computing method and device for controlling server | |
CN107621981A (en) | Resource allocation method and Related product | |
EP3438824A1 (en) | Method for resource allocation and terminal device | |
US10037225B2 (en) | Method and system for scheduling computing | |
CN111679790A (en) | Remote software development storage space distribution method and device | |
CN107528977A (en) | Resource allocation method and Related product | |
CN107670276B (en) | Game application control method and equipment | |
CN107479972A (en) | Resource allocation method and Related product |
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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191029 |
|
CF01 | Termination of patent right due to non-payment of annual fee |