CN107426432B - Resource allocation method and Related product - Google Patents

Resource allocation method and Related product Download PDF

Info

Publication number
CN107426432B
CN107426432B CN201710640040.6A CN201710640040A CN107426432B CN 107426432 B CN107426432 B CN 107426432B CN 201710640040 A CN201710640040 A CN 201710640040A CN 107426432 B CN107426432 B CN 107426432B
Authority
CN
China
Prior art keywords
destination application
data packet
application
contextual data
policy module
Prior art date
Application number
CN201710640040.6A
Other languages
Chinese (zh)
Other versions
CN107426432A (en
Inventor
程杰
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201710640040.6A priority Critical patent/CN107426432B/en
Publication of CN107426432A publication Critical patent/CN107426432A/en
Priority claimed from US16/046,460 external-priority patent/US20190034234A1/en
Application granted granted Critical
Publication of CN107426432B publication Critical patent/CN107426432B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72563Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances
    • H04M1/72569Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances according to context or environment related information
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72522With means for supporting locally a plurality of applications to increase the functionality

Abstract

The embodiment of the present application discloses a kind of resource allocation method and Related product.Method includes: that management module receives the contextual data packet from the destination application being currently running, and contextual data packet includes the application type mark of destination application;Management module determines policy module corresponding with application type mark in multiple policy modules;Policy module determines the performance boost strategy of destination application according to contextual data packet;Operating system according to the system resource of performance boost Developing Tactics destination application distribution.The embodiment of the present application is conducive to improve real-time and accuracy that mobile terminal control destination application carries out performance optimization.

Description

Resource allocation method and Related product

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.

Summary of the invention

The embodiment of the present application provides resource allocation method and Related product, and the target application journey of mobile terminal can be improved The performance and stability of sequence in the process of running.

In a first aspect, the embodiment of the present application provides a kind of resource allocation method, the running of mobile terminal has operating system With one or more application program, the operating system includes management module and multiple policy modules, which comprises

The management module receives the contextual data packet that the destination application being currently running is sent, the scene number It is identified according to the application type that packet includes the destination application;

The management module determines policy module corresponding with application type mark in the multiple policy module;

The policy module determines the performance boost strategy of the destination application according to the contextual data packet;

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 device for allocating resources, are applied to mobile terminal, the mobile terminal Operation has operating system and one or more application program, and the operating system includes management module and multiple policy modules, institute Stating device for allocating resources includes processing unit and communication unit,

The processing unit receives the mesh being currently running by the communication unit for controlling the management module The contextual data packet that application program is sent is marked, the contextual data packet includes the application type mark of the destination application; And strategy mould corresponding with application type mark in the multiple policy module is determined for controlling the management module Block;And the performance boost plan of the destination application is determined for controlling the policy module according to the contextual data packet Slightly;And the control operating system is according to point of the system resource of destination application described in the performance boost Developing Tactics Match.

The third 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 is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.

Fourth 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 the embodiment of the present application first aspect either method, above-mentioned computer include mobile terminal.

5th 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 the embodiment of the present application first aspect either method.The computer program product It can be a software installation packet, above-mentioned computer includes mobile terminal.

As can be seen that the management module in the operating system of mobile terminal receives first is transporting in the embodiment of the present application The contextual data packet that capable destination application is sent, contextual data packet include the application type mark of destination application;Its Secondary, management module determines policy module corresponding with application type mark in multiple policy modules;Again, the plan in operating system Omit the performance boost strategy that module determines the destination application being currently running according to contextual data packet;Finally, operating system is pressed According to the distribution of the system resource of performance boost Developing Tactics destination application.Be conducive to improve mobile terminal control target application The real-time and accuracy of program progress 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 schematic diagram of the program running space of smart phone;

Figure 1B is a kind of system architecture 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 (Short Messaging 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.

For above situation, the embodiment of the present application proposes a kind of system resource of destination application for mobile terminal Configuration method, in this method, the management module in the operating system of mobile terminal receives the target application journey being currently running first The contextual data packet that sequence is sent, contextual data packet include the application type mark of destination application;Secondly, management module determines Policy module corresponding with application type mark in multiple policy modules;Again, the policy module in operating system is according to scene Data packet determines the performance boost strategy for the destination application being currently running;Finally, operating system is according to performance boost strategy Adjust the distribution of the system resource of destination application.It is excellent to be conducive to raising mobile terminal control destination application progress performance The real-time and accuracy of change.

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, the shifting Dynamic terminal operating has operating system and one or more application program, and the operating system includes management module and multiple tactful moulds Block, as shown, this resource allocation method includes:

S201, the management module receives the contextual data packet that the destination application being currently running is sent, described Contextual data packet includes the application type mark of the destination application.

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, contextual data packet includes the scene relating letter of internal operation scene when destination application is currently running Breath, the internal operation scene can be divided according to different preset conditions, such as interior according to whether there is user's interaction that can divide Portion's Run-time scenario be interactive scene and non-interactive type scene, alternatively, according to the complexity of task be divided into single user scene and Multi-user scene, or be divided into starting scene, resource updates scene, account according to different behaviors and log in scene, store Scape, main interface scene etc., in addition, the preset condition can also be associated with different application types, the i.e. application of different application type Identical or different internal operation scene can be marked off according to preset condition, do not do unique restriction herein.

Wherein, the scene relating information may include the current internal operation scene with destination application with down toward Few a kind of information: scene identity, critical performance parameters, wherein scene markers can be by collected current internal operation field The key message of scape determines that key message may include starting information, resource updates information, account logon information, interface type Information etc., critical performance parameters may include information such as current frame per second, frame losing, the Caton of internal operation scene etc., herein not Do unique restriction.In addition, the format of contextual data packet for example can be java script object tag (JavaScript Object Notation, JSON), agreement buffer area (ProtocolBuffer, Protobuf), the data transmission formats such as user-defined format, Unique restriction is not done herein.

It is logical including preset data between the destination application and the operating system in a possible example Road;The management module receives the contextual data packet that the destination application being currently running is sent, comprising: the management mould Block receives the contextual data packet sent by the destination application being currently running described in the preset data channel reception.

Wherein, when the preset data channel is currently running for destination application, destination application and operating system Between the effective data transmission link established, not after operation, which can be removed destination application.

In this possible example, the destination application includes Data connection module, and the operating system includes number According to connection management module;The method also includes: described in the data connection management module and Data connection module foundation Preset data channel.

In this possible example, destination application can also include data collection module, data preparation module, preferential Grade management module, data reception module, wherein data reception module is used to collect the crucial letter of destination application at runtime Breath;Data preparation module is used for the key message that finishing collecting arrives, and such as merges duplicate information, deletes the information etc. of redundancy;It is excellent For first grade management module for being classified according to the significance level of key message to the key message being collected into, priority processing is preferential The high key message of grade, filters the lower key message of priority, or reduction priority is lower in data packet generating process Key message use;Data reception module is used to receive and parse through the data that the system application of operating system is sent, and will It is passed to inside destination application.

S202, the management module determine strategy mould corresponding with application type mark in the multiple policy module Block.

Wherein, each policy module in the multiple policy module is applicable to same type of application, and such as first Policy module is suitable for game class application, and the second policy module is suitable for the application of instant messaging class, etc..

Wherein, the management module determines strategy mould corresponding with application type mark in the multiple policy module Block, comprising: the management module is identified as inquiry mark with application type, inquires preset policy module and application type mark Between mapping relations, determine that application type in contextual data packet identifies corresponding policy module.

S203, the policy module determine the performance boost plan of the destination application according to the contextual data packet Slightly.

Wherein, performance boost strategy refers to the money of the runnability for improving the above-mentioned destination application being currently running Source configuration strategy, such as cpu resource adjustable strategies, GPU resource adjustable strategies, memory bandwidth resource adjusting strategies, disk resource tune Whole strategy, Internet resources adjustable strategies etc., do not do unique restriction herein.

S204, 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, the control parameter resource of bluetooth module etc..

Wherein, when the resource is at least one of cpu resource, GPU resource memory bandwidth resource, disk resource, Operating system adjusts the configuration of the resource by direct-connected communication mode, and direct-connected communication mode refers to be compiled by abstract application program Journey 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 receives the target application being currently running first in the embodiment of the present application The contextual data packet that program is sent, contextual data packet include the application type mark of destination application;Secondly, operating system tune Policy module corresponding with application type mark in multiple policy modules is determined with management module;Again, operating system calls plan Omit the performance boost strategy that module determines the destination application being currently running according to contextual data packet;Finally, operating system is pressed According to the distribution of the system resource of performance boost Developing Tactics destination application.Since contextual data packet is by the target that is currently running Application program is sent, and the management module of operating system determines the target application journey being currently running according to contextual data packet fining The performance boost strategy of sequence, and adjust by operating system the system resource of destination application in real time according to the performance boost strategy Configuration, realize and real-time performance optimization carried out to the destination application in operational process by operating system, be conducive to mention High mobile terminal control destination application carries out the real-time and accuracy of performance optimization.And multiple policy modules can be realized To the Precise control of different type application, mobile terminal is not necessarily to while loading whole policy modules, it is only necessary to which load is mobile eventually The corresponding policy module of destination application for holding front stage operation advantageously reduces resource occupation, improves resource utilization and control Efficiency processed.

In a possible example, the contextual data packet includes the scene relating information of the destination application; The policy module determines the performance boost strategy of the destination application according to the contextual data packet, comprising: the plan Slightly module obtains the scene relating information in the contextual data packet;The policy module is according to the scene relating information Determine the performance boost strategy of the destination application.

As it can be seen that, due to the destination application that scene relating information association is currently running, being conducive to accurately in this example The performance boost strategy of destination application when determining to be adapted to current operation under scene, improves the accuracy of resource distribution.

In a possible example, the scene relating information includes the scene identity of the destination application;Institute State the performance boost strategy that policy module determines the destination application according to the scene relating information, comprising: the plan Slightly module determines that the corresponding performance boost strategy of the scene identity is the performance boost strategy of the destination application.

Wherein, system application regulative strategy module can be inquiry mark with scene identity, inquire preset performance boost Mapping relations between strategy and scene identity, determine the corresponding performance boost strategy of the scene identity.

As it can be seen that in this example, since scene identity and performance boost strategy correspond, and the scene in contextual data packet The current scene for the destination application that mark association is currently running, that is to say, that the performance boost strategy association determined is The current operating conditions of the destination application of operation, therefore can be accurate according to the configuration of the performance boost Developing Tactics resource The current operating conditions of optimization aim application program are conducive to the destination application that raising mobile terminal control is currently running Accuracy.

In a possible example, the scene relating information includes the key performance ginseng of the destination application Number;The policy module determines the performance boost strategy of the destination application according to the scene relating information, comprising: institute State the performance boost strategy that policy module determines the destination application according to the critical performance parameters.

Wherein, critical performance parameters are used to describe the critical data index of destination application, which for example may be used To be the information such as frame per second, frame losing, Caton.

In one implementation, the policy module, which is determined, determines the target application according to the critical performance parameters The performance boost strategy of program, comprising: the policy module determines that the associated resource of the critical performance parameters is to be adjusted System resource determines the adjustment amount of the system resource to be adjusted according to the critical performance parameters, according to the adjustment amount Generate the performance boost strategy of the destination application.The adjustment amount that can accurately calculate resource is arranged such, is conducive to Improve the accuracy of performance boost strategy.

As an example it is assumed that the critical performance parameters in scene relating information are frame per second X FPS, policy module determines first The associated system resource to be adjusted of the frame per second is cpu resource and GPU resource, secondly, determining the tune of CPU according to frame per second X FPS Whole amount is A, determines that the adjustment amount of GPU is B, finally, generating the performance of destination application according to adjustment amount A and adjustment amount B Promotion Strategy is that the performance parameter of CPU is improved A, and the performance parameter of GPU is improved B.

In another implementation, the policy module, which is determined, determines that the target is answered according to the critical performance parameters With the performance boost strategy of program, comprising: the policy module determines the parameter type and parameter number of the critical performance parameters It is worth section, determines the corresponding performance boost strategy packet of the parameter type, is inquiry mark with the parameter values section, determines It is suitable for the performance boost strategy in the parameter values section in the performance boost strategy packet.Wherein, policy module can manage The corresponding multiple performance boost strategy packets of many kinds of parameters type, comprising being suitable for different parameters in each performance boost strategy packet The performance boost strategy of numerical intervals is arranged such and is not necessarily to real-time computing resource adjustment amount, it is only necessary to which inquiry was both available, had Performance Promotion Strategy is determined conducive to quick.

As it can be seen that the critical performance parameters that destination application can not acquire originally operating system pass in this example Operating system is passed, allows performance of the operating system targetedly to the current internal operation scene of destination application It optimizes, i.e., quickly determines the performance boost strategy of high accuracy according to critical performance parameters, to adjust in real time The configuration of the system resource of the destination application of operation, be conducive to improve mobile terminal destination application run it is excellent The real-time and accuracy of change.

In a possible example, the scene relating information includes scene identity and the pass of the destination application Key performance parameter;The policy module determines the performance boost plan of the destination application according to the scene relating information Slightly, comprising: the policy module determines the corresponding system resource to be adjusted of the scene identity;The policy module is according to institute It states system resource to be adjusted and the critical performance parameters determines the performance boost strategy of the destination application.

Wherein, the corresponding system resource of scene identity is that destination application can be influenced in mobile terminal in current The system resource of the runnability of portion's Run-time scenario, if an internal operation scene of game type applications is " game store circle Face " scene, the scene markers for being somebody's turn to do " game store interface " scene are store interface, the cpu resource and disk resource of mobile terminal The runnability of the scene is influenced, then the corresponding system resource in store interface is cpu resource and disk resource.

In one implementation, the policy module is joined according to the system resource to be adjusted and the key performance Number determines the performance boost strategy of the destination application, comprising: the policy module is according in the critical performance parameters The adjustment amount that the system resource to be adjusted is determined with the associated parameter of system resource to be adjusted, according to the adjustment Amount generates the performance boost strategy of the destination application.

As it can be seen that being joined in this example by the corresponding system resource to be adjusted of scene set mark, and setting key performance It counts for determining the adjustment amount of system resource to be adjusted, thus generate the current internal operation scene of destination application Performance boost strategy can cause additionally to avoid the redundancy in critical performance parameters with system resource onrelevant to be adjusted Computed losses are conducive to improve accuracy and effect that mobile terminal carries out running destination application system resource configuration Rate.

In a possible example, the contextual data packet includes data format mark;The policy module obtains institute State the scene relating information in contextual data packet, comprising:

The management module parses the contextual data packet according to the indicated data format of data format mark, really The scene relating information of the fixed destination application, and the scene relating information is sent to the policy module;As it can be seen that by Contextual data packet is uniformly processed in management module, and policy module only needs directly to receive the processing result of policy module on the spot The function of being conducive to lightweight and refine policy module is arranged such in scape related information, convenient for being safeguarded to policy module, The operation such as addition, improves system stability.

Alternatively,

The management module sends the contextual data packet to the policy module;The policy module is according to the data Data format indicated by format identification (FID) parses the contextual data packet, determines the scene relating letter of the destination application Breath;Wherein, after the management module sends the contextual data packet to the policy module, dormant state can be entered to drop Low-power consumption;As it can be seen that management module only carries out transmission process to contextual data packet, directly pass it at policy module Reason, thus policy module after transmit contextual data packet without lasting enabling, can quick suspend mode, advantageously reduce operating system Overall power, improve efficiency.

Alternatively,

The management module determines associated first data format of the policy module, is detecting the first data lattice When formula and inconsistent the second data format of the contextual data packet, the second data format of the contextual data packet is converted as institute The first data format is stated, and the contextual data packet after sending the conversion to the policy module;The policy module is pressed The contextual data packet after parsing the conversion according to first data format determines that the scene of the destination application is closed Join information.As it can be seen that the unrecognized contextual data packet of policy module can be converted into policy module by management module to be identified Contextual data packet, and pass to policy module and handled, avoid correctly determining that scene relating is believed because of format differences Breath is conducive to the success rate for the progress accurate resource configuration that mobile terminal is running destination application.

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, applied to the mobile terminal including destination application and operating system, the target application Program runs on the user's space of the mobile terminal, and the operating system is empty in the operating system of the mobile terminal Between, the operating system includes operating system application, and the operating system includes management module and multiple policy modules.As schemed Show, this resource allocation method includes:

S301, the management module receives the contextual data packet that the destination application being currently running is sent, described Contextual data packet includes the application type mark of the destination application.

S302, the management module determine strategy mould corresponding with application type mark in the multiple policy module Block.

S303, the policy module obtain the scene relating information in the contextual data packet;

S304, the policy module determine the performance boost plan of the destination application according to the scene relating information Slightly.

S305, the operating system according to destination application described in the performance boost Developing Tactics system resource Distribution.

As can be seen that the management module of mobile terminal receives the target application being currently running first in the embodiment of the present application The contextual data packet that program is sent, contextual data packet include the application type mark of destination application;Secondly, operating system tune Policy module corresponding with application type mark in multiple policy modules is determined with management module;Again, operating system calls plan Slightly module determines the destination application being currently running according to the scene relating information obtained in the contextual data packet Performance boost strategy;Finally, distribution of the operating system according to the system resource of performance boost Developing Tactics destination application.By It is sent in contextual data packet by the destination application being currently running, the management module of operating system is according to the contextual data packet essence Refinement determines the performance boost strategy for the destination application being currently running, and real according to the performance boost strategy by operating system When adjustment destination application system resource configuration, realize by operating system to the destination application in operational process Real-time performance optimization is carried out, is conducive to improve real-time and essence that mobile terminal control destination application carries out performance optimization Exactness.And multiple policy modules can be realized the Precise control to different type application, mobile terminal is not necessarily to while load is complete Portion's policy module, it is only necessary to which the corresponding policy module of destination application for loading mobile terminal front stage operation advantageously reduces Resource occupation improves resource utilization and control efficiency.

Further, since the destination application that scene relating information association is currently running, is conducive to accurately determine to fit The performance boost strategy of destination application when with current operation under scene, improves the accuracy of resource distribution.

It is consistent with above-mentioned embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of resource provided by the embodiments of the present application The flow diagram of configuration method, applied to the mobile terminal including destination application and operating system, the target application Program runs on the user's space of the mobile terminal, and the operating system is empty in the operating system of the mobile terminal Between, the operating system includes operating system application, and the operating system includes management module and multiple policy modules.As schemed Show, this resource allocation method includes:

S401, the data connection management module and the Data connection module establish preset data channel breath.

S402, the data connection management module are sent by destination application described in the preset data channel reception Contextual data packet.

S403, the management module determine strategy mould corresponding with application type mark in the multiple policy module Block.

S404, the management module parse the contextual data according to the indicated data format of data format mark Packet determines the scene relating information of the destination application, and sends the scene relating information to the policy module.

Wherein, the scene relating information includes the scene identity of the destination application.

S405, the policy module determine that the corresponding performance boost strategy of the scene identity is the destination application Performance boost strategy.

S406, the operating system according to destination application described in the performance boost Developing Tactics system resource Distribution.

As can be seen that the operating system of mobile terminal receives the target application being currently running first in the embodiment of the present application The contextual data packet that program is sent, contextual data packet include the application type mark of destination application;Secondly, operating system tune Policy module corresponding with application type mark in multiple policy modules is determined with management module;Again, operating system calls plan Omit the performance boost strategy that module determines the destination application being currently running according to contextual data packet;Finally, operating system is pressed According to the distribution of the system resource of performance boost Developing Tactics destination application.Since contextual data packet is by the target that is currently running Application program is sent, and the management module of operating system determines the target application journey being currently running according to contextual data packet fining The performance boost strategy of sequence, and adjust by operating system the system resource of destination application in real time according to the performance boost strategy Configuration, realize and real-time performance optimization carried out to the destination application in operational process by operating system, be conducive to mention High mobile terminal control destination application carries out the real-time and accuracy of performance optimization.And multiple policy modules can be realized To the Precise control of different type application, mobile terminal is not necessarily to while loading whole policy modules, it is only necessary to which load is mobile eventually The corresponding policy module of destination application for holding front stage operation advantageously reduces resource occupation, improves resource utilization and control Efficiency processed.

Further, since scene identity and performance boost strategy correspond, and the scene identity association in contextual data packet The current scene for the destination application being currently running, that is to say, that the performance boost strategy determined is associated with the mesh being currently running The current operating conditions of application program are marked, therefore being capable of accurate optimization aim according to the configuration of the performance boost Developing Tactics resource The current operating conditions of application program are conducive to the accuracy for improving the destination application that mobile terminal control is currently running.

In addition, contextual data packet is uniformly processed by management module, policy module only needs directly to receive tactful mould The processing result of block, that is, scene related information, be arranged such be conducive to lightweight and refine policy module function, convenient for pair Policy module such as is safeguarded, is added at the operation, improves system stability.

It is consistent with above-mentioned Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application A kind of structural schematic diagram of mobile terminal, the running of mobile terminal have one or more application program and operating system, as schemed institute Show, which includes processor, memory, communication interface and one or more programs, wherein said one is multiple Program is different from said one or multiple application programs, and said one or multiple programs are stored in above-mentioned memory, and And be configured to be executed by above-mentioned processor, above procedure includes the instruction for executing following steps;

It controls the management module and receives the contextual data packet that the destination application being currently running is sent, the field Scape data packet includes the application type mark of the destination application;

It controls the management module and determines strategy mould corresponding with application type mark in the multiple policy module Block;

Control the performance boost strategy that the policy module determines the destination application according to the contextual data packet;

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 management module in the operating system of mobile terminal receives first is transporting in the embodiment of the present application The contextual data packet that capable destination application is sent, contextual data packet include the application type mark of destination application;Its Secondary, operating system calls management module to determine policy module corresponding with application type mark in multiple policy modules;Again, it grasps Make the performance boost strategy that system regulative strategy module determines the destination application being currently running according to contextual data packet;Most Afterwards, operating system according to the system resource of performance boost Developing Tactics destination application distribution.Due to contextual data packet by The destination application being currently running is sent, and the management module of operating system is being transported according to contextual data packet fining determination The performance boost strategy of capable destination application, and target application is adjusted in real time according to the performance boost strategy by operating system The configuration of the system resource of program realizes and carries out real-time performance to the destination application in operational process by operating system Optimization is conducive to improve real-time and accuracy that mobile terminal control destination application carries out performance optimization.And multiple plans Slightly module can be realized the Precise control to different type application, and mobile terminal is not necessarily to while loading whole policy modules, only The corresponding policy module of destination application for needing to load mobile terminal front stage operation, advantageously reduces resource occupation, improves Resource utilization and control efficiency.

In a possible example, the contextual data packet includes the scene relating information of the destination application; The performance boost strategy side of the destination application is determined according to the contextual data packet in the control policy module Face, the instruction in described program are specifically used for executing following operation: controlling the policy module and obtain in the contextual data packet The scene relating information;And the control policy module determines the target application journey according to the scene relating information The performance boost strategy of sequence.

In a possible example, the scene relating information includes the scene identity of the destination application;Institute State the scene identity that scene relating information includes the destination application;In the control policy module according to the field In terms of scape related information determines the performance boost strategy of the destination application, the instruction in described program is specifically used for executing It operates below: controlling the policy module and determine that the corresponding performance boost strategy of the scene identity is the destination application Performance boost strategy.

In a possible example, the scene relating information includes the key performance ginseng of the destination application Number;The performance boost plan of the destination application is determined according to the scene relating information in the control policy module In terms of slightly, the instruction in described program is specifically used for executing following operation: controlling the policy module according to the key performance Parameter determines the performance boost strategy of the destination application.

In a possible example, the scene relating information includes scene identity and the pass of the destination application Key performance parameter;The property of the destination application is determined according to the scene relating information in the control policy module Can be in terms of Promotion Strategy, the instruction in described program is specifically used for executing following operation: controlling described in the policy module determines The corresponding system resource to be adjusted of scene identity;And the control policy module according to the system resource to be adjusted and The critical performance parameters determine the performance boost strategy of the destination application.

In a possible example, the contextual data packet includes data format mark;In the control strategy Module obtains the scene relating message context in the contextual data packet, the instruction in described program be specifically used for execute with Lower operation: the management module is controlled according to the indicated data format of data format mark and parses the contextual data Packet determines the scene relating information of the destination application, and sends the scene relating information to the policy module;Or Person,

It controls the management module and sends the contextual data packet to the policy module;And the control policy module The contextual data packet is parsed according to the indicated data format of data format mark, determines the destination application Scene relating information;Alternatively,

It controls the management module and determines associated first data format of the policy module, detecting first number When inconsistent according to the second data format of format and the contextual data packet, the second data format of the contextual data packet is converted The contextual data packet for first data format, and after sending from the conversion to the policy module;And control institute It states policy module and parses the contextual data packet after the conversion according to first data format, determine the target application The scene relating information of program.

In a possible example, the destination application includes Data connection module, and the operating system includes Data connection management module;The field that the destination application being currently running is sent is received in the control operating system In terms of scape data packet, the instruction in described program is specifically used for executing following operation: control the data connection management module with The Data connection module establishes preset data channel breath;And the control data connection management module passes through the present count The contextual data packet sent according to destination application described in channel reception.

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.

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 the running of mobile terminal has behaviour Make system and one or more application program, the operating system includes management module and multiple policy modules, and the resource is matched Setting device 600 includes: processing unit 602 and communication unit 603.Processing unit 602 be used for the movement of device for allocating resources into Row control management, for example, processing unit 602 is for supporting device for allocating resources to execute in step S201-S204, Fig. 3 in Fig. 2 Step S301-S305, Fig. 4 in step S401-S406 and/or other processes for techniques described herein.Resource Configuration device can also include storage unit 601, for storing program code and data.

The processing unit 602 passes through what the communication unit 603 reception was currently running for controlling the management module The contextual data packet that the destination application is sent, the contextual data packet includes the application type of the destination application Mark;And plan corresponding with application type mark in the multiple policy module is determined for controlling the management module Slightly module;And the control policy module determines the performance boost plan of the destination application according to the contextual data packet Slightly;And the distribution for the system resource according to destination application described in the performance boost Developing Tactics.

In a possible example, the contextual data packet includes the scene relating information of the destination application; The performance boost strategy side of the destination application is determined according to the contextual data packet in the control policy module Face, the processing unit 602 are specifically used for: controlling the policy module and obtain the scene relating in the contextual data packet Information;And the control policy module determines the performance boost plan of the destination application according to the scene relating information Slightly.

In a possible example, the scene relating information includes the scene identity of the destination application;? The control policy module determines the performance boost strategy side of the destination application according to the scene relating information Face, the processing unit 602 are specifically used for: controlling the policy module and determine the corresponding performance boost strategy of the scene identity For the performance boost strategy of the destination application.

In a possible example, the scene relating information includes the key performance ginseng of the destination application Number;The performance boost plan of the destination application is determined according to the scene relating information in the control policy module Slightly aspect, the processing unit 602 are specifically used for: controlling the policy module according to the critical performance parameters and determine the mesh Mark the performance boost strategy of application program.

In a possible example, the scene relating information includes scene identity and the pass of the destination application Key performance parameter;The property of the destination application is determined according to the scene relating information in the control policy module In terms of energy Promotion Strategy, the processing unit 602 is specifically used for: controlling the policy module and determines that the scene identity is corresponding System resource to be adjusted;And the control policy module is joined according to the system resource to be adjusted and the key performance Number determines the performance boost strategy of the destination application.

In a possible example, the contextual data packet includes data format mark;In the control strategy Module obtains the scene relating message context in the contextual data packet, and the processing unit 602 is specifically used for: control institute It states management module and parses the contextual data packet according to the indicated data format of data format mark, determine the target The scene relating information of application program, and the scene relating information is sent to the policy module;Alternatively,

It controls the management module and sends the contextual data packet to the policy module;And the control policy module The contextual data packet is parsed according to the indicated data format of data format mark, determines the destination application Scene relating information;Alternatively,

It controls the management module and determines associated first data format of the policy module, detecting first number When inconsistent according to the second data format of format and the contextual data packet, the second data format of the contextual data packet is converted The contextual data packet for first data format, and after sending from the conversion to the policy module;And control institute It states policy module and parses the contextual data packet after the conversion according to first data format, determine the target application The scene relating information of program.

It is logical including preset data between the destination application and the operating system in a possible example Road;In the contextual data Bao Fang for receiving the destination application being currently running by the communication unit 603 and sending Face, the processing unit 602 are specifically used for: by the communication unit 603 by described in the preset data channel reception just In the contextual data packet that the destination application of operation is sent.

Wherein, the destination application includes Data connection module, and the operating system includes data connection management mould Block;The device for allocating resources further includes Path Setup unit, the Path Setup unit, for controlling data connection management mould Block and the Data connection module establish the preset data channel.

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, the control parameter resource of bluetooth module etc..

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, operation has operating system and one or more application program, destination application operation on the smart phone In user's space, in operating system space, operating system receives the destination application being currently running and sends operating system Contextual data packet;Operating system determines the performance boost strategy of destination application according to contextual data packet;Operating system is pressed The distribution of the system resource for the destination application being currently running according to performance boost Developing Tactics.

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 (Field Programmable 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 (9)

1. a kind of resource allocation method, which is characterized in that be applied to mobile terminal, the running of mobile terminal have operating system and One or more application program, the operating system include management module and multiple policy modules, which comprises
The management module receives the contextual data packet from the destination application being currently running, and the contextual data packet includes The scene relating information of internal operation scene when the application type of the destination application is identified and is currently running;
The management module determines policy module corresponding with application type mark in the multiple policy module;
The policy module determines the performance boost strategy of the destination application according to the contextual data packet;
The operating system according to the system resource of destination application described in the performance boost Developing Tactics distribution;
It include preset data channel between the destination application and the operating system;The management module reception is being transported The contextual data packet that capable destination application is sent, comprising:
What the management module reception was sent by the destination application being currently running described in the preset data channel reception Contextual data packet, wherein when the preset data channel is currently running for destination application, the destination application and institute The effective data transmission link established between operating system is stated, not after operation, the data pass the destination application Transmission link can be removed.
2. the method according to claim 1, wherein the contextual data packet includes the destination application Scene relating information;The policy module determines the performance boost plan of the destination application according to the contextual data packet Slightly, comprising:
The policy module obtains the scene relating information in the contextual data packet;
The policy module determines the performance boost strategy of the destination application according to the scene relating information.
3. according to the method described in claim 2, it is characterized in that, the scene relating information includes the destination application Scene identity;The policy module determines the performance boost plan of the destination application according to the scene relating information Slightly, comprising:
The policy module determines that the corresponding performance boost strategy of the scene identity is that the performance of the destination application mentions Rise strategy.
4. according to the method described in claim 2, it is characterized in that, the scene relating information includes the destination application Critical performance parameters;The policy module determines the performance boost of the destination application according to the scene relating information Strategy, comprising:
The policy module determines the performance boost strategy of the destination application according to the critical performance parameters.
5. according to the method described in claim 2, it is characterized in that, the scene relating information includes the destination application Scene identity and critical performance parameters;The policy module determines the destination application according to the scene relating information Performance boost strategy, comprising:
The policy module determines the corresponding system resource to be adjusted of the scene identity;
The policy module determines the target application journey according to the system resource to be adjusted and the critical performance parameters The performance boost strategy of sequence.
6. according to the described in any item methods of claim 2-5, which is characterized in that the contextual data packet includes data format mark Know;The policy module obtains the scene relating information in the contextual data packet, comprising:
The management module parses the contextual data packet according to the indicated data format of data format mark, determines institute The scene relating information of destination application is stated, and sends the scene relating information to the policy module;Alternatively,
The management module sends the contextual data packet to the policy module;
The policy module parses the contextual data packet according to the indicated data format of data format mark, determines institute State the scene relating information of destination application;Alternatively,
The management module determines associated first data format of the policy module, detect first data format and When second data format of the contextual data packet is inconsistent, the second data format of the contextual data packet is converted as described One data format, and the contextual data packet after sending the conversion to the policy module;
The policy module parses the contextual data packet after the conversion according to first data format, determines the mesh Mark the scene relating information of application program.
7. a kind of device for allocating resources, which is characterized in that be applied to mobile terminal, the running of mobile terminal have operating system and One or more application program, the operating system include management module and multiple policy modules, the device for allocating resources packet Processing unit and communication unit are included,
The processing unit receives the target application journey being currently running by the communication unit for controlling the management module The contextual data packet that sequence is sent, the contextual data packet include the application type mark of the destination application;And it is used for It controls the management module and determines policy module corresponding with application type mark in the multiple policy module;And control Make the performance boost strategy that the policy module determines the destination application according to the contextual data packet;And for pressing According to the distribution of the system resource of destination application described in the performance boost Developing Tactics;
It include preset data channel between the destination application and the operating system;The management module reception is being transported The contextual data packet that capable destination application is sent, comprising:
What the management module reception was sent by the destination application being currently running described in the preset data channel reception Contextual data packet, wherein when the preset data channel is that the destination application is currently running, the destination application The effective data transmission link established between the operating system, the destination application not after operation, the number It can be removed according to transmission link.
8. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface and one or more program, In, one or more of programs are stored in the memory, and are configured to be executed by the processor, described program Include the steps that requiring the instruction in any one of 1-6 method for perform claim.
9. 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 it is as claimed in any one of claims 1 to 6 that the computer program executes computer Method, the computer include mobile terminal.
CN201710640040.6A 2017-07-31 2017-07-31 Resource allocation method and Related product CN107426432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710640040.6A CN107426432B (en) 2017-07-31 2017-07-31 Resource allocation method and Related product

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201710640040.6A CN107426432B (en) 2017-07-31 2017-07-31 Resource allocation method and Related product
US16/046,460 US20190034234A1 (en) 2017-07-31 2018-07-26 Method For Resource Allocation And Terminal Device
PCT/CN2018/097484 WO2019024789A1 (en) 2017-07-31 2018-07-27 Method for resource allocation and terminal device
EP18186160.0A EP3438824A1 (en) 2017-07-31 2018-07-27 Method for resource allocation and terminal device

Publications (2)

Publication Number Publication Date
CN107426432A CN107426432A (en) 2017-12-01
CN107426432B true CN107426432B (en) 2019-09-17

Family

ID=60431528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710640040.6A CN107426432B (en) 2017-07-31 2017-07-31 Resource allocation method and Related product

Country Status (1)

Country Link
CN (1) CN107426432B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3438825A1 (en) * 2017-07-31 2019-02-06 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US20190034234A1 (en) * 2017-07-31 2019-01-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method For Resource Allocation And Terminal Device
CN107547746A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and related product
CN107515787A (en) * 2017-08-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN108037999A (en) * 2017-12-06 2018-05-15 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN108646938B (en) * 2018-03-13 2020-04-17 Oppo广东移动通信有限公司 Configuration method and device of touch screen, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN105183560A (en) * 2015-09-01 2015-12-23 北京金山安全软件有限公司 Picture adjustment method, apparatus and system
CN106549880A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of resource allocation methods and terminal unit of terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2755133B1 (en) * 2013-01-10 2015-05-27 Fujitsu Limited Application execution controller and application execution method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN105183560A (en) * 2015-09-01 2015-12-23 北京金山安全软件有限公司 Picture adjustment method, apparatus and system
CN106549880A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of resource allocation methods and terminal unit of terminal

Also Published As

Publication number Publication date
CN107426432A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
US10243824B2 (en) On-device attribution of network data usage
Varghese et al. Challenges and opportunities in edge computing
CN104850450B (en) A kind of load-balancing method and system towards mixed cloud application
Chen et al. Opportunistic task scheduling over co-located clouds in mobile environment
US10412021B2 (en) Optimizing placement of virtual machines
Xiong et al. EMC 3: Energy-efficient data transfer in mobile crowdsensing under full coverage constraint
CN104038540B (en) Method and system for automatically selecting application proxy server
US20190266145A1 (en) Executing transactions based on blockchain
US9538445B2 (en) Communication method and apparatus for electronic device in mobile communication system
KR20190046995A (en) Memory Return Method and Device
KR20150052059A (en) Device backups and updates in view of data usage statistics
US20030149958A1 (en) Automatic code generation for applications which run on common platforms
CN104221415A (en) Method and apparatus for managing dynamic sharing of spectrum services
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN105743962A (en) End-to-end datacenter performance control
CN105843650A (en) Application program management method and device in intelligent terminal
CN104025536B (en) For the synchronous system and method for application communication
CN103491217B (en) A kind of fission mobile phone
CN104488291B (en) The method and apparatus utilized for promoting cloud service
CN105103507A (en) Network function virtualization method and device
TWI622933B (en) Client update method and device
CN101903845A (en) Method, apparatus and computer program product for providing power consumption notification and management
CN103870339B (en) A kind of cluster resource distribution method and device
CN102547679B (en) Number conversion method, device and access system for Internet of things
Alam et al. Autonomic computation offloading in mobile edge for IoT applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1247479

Country of ref document: HK

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18 Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant