CN106776040A - A kind of resource allocation methods and device - Google Patents

A kind of resource allocation methods and device Download PDF

Info

Publication number
CN106776040A
CN106776040A CN201611270256.XA CN201611270256A CN106776040A CN 106776040 A CN106776040 A CN 106776040A CN 201611270256 A CN201611270256 A CN 201611270256A CN 106776040 A CN106776040 A CN 106776040A
Authority
CN
China
Prior art keywords
resource
amount
default
pond
private
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611270256.XA
Other languages
Chinese (zh)
Inventor
白剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611270256.XA priority Critical patent/CN106776040A/en
Publication of CN106776040A publication Critical patent/CN106776040A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5013Request control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Abstract

The invention discloses a kind of method for managing resource, it is applied to be provided with the terminal device of application, the terminal device includes private resource manager and private resource pond, including:When the treatment request of the data processing task for detecting default application, the professional resources manager is adjusted to Secondary resource amount the amount of hardware resources in the private resource pond from first resource amount in the range of default stock number, and the Secondary resource amount is more than the first resource amount;The professional resources manager calls the private resource pond to complete the treatment request.The embodiment of the present invention additionally provides a kind of resource management apparatus and terminal device.The response time of application can be shortened using the embodiment of the present invention.

Description

A kind of resource allocation methods and device
Technical field
The present invention relates to electronic technology field, more particularly to a kind of application resource distribution method and device.
Background technology
With continuing to develop for technology, increasing application (such as Taobao, microblogging, wechat etc.) continuously emerges, peace It is also more and more loaded on the application in intelligent terminal (such as smart mobile phone, panel computer, notebook etc.).At present, intelligent terminal The task process of all applications of middle installation takes resource according to equal priority, and this causes running multiple applications On the basis of, if user want operation certain when applying, may because inadequate resource cannot be smooth operation, and then increase should Response time.
The content of the invention
The embodiment of the present invention provides a kind of resource allocation methods and device, to shorten the response time of application.
In a first aspect, the embodiment of the present invention provides a kind of method for managing resource, it is applied to be provided with the terminal device of application, The terminal device includes private resource manager and private resource pond, including:
When the treatment request of the data processing task for detecting default application, the professional resources manager is in default money The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount, second money from first resource amount in the range of the amount of source Source amount is more than the first resource amount;
The professional resources manager calls the private resource pond to complete the treatment request.
Second aspect, the embodiment of the present invention provides a kind of resource management apparatus, is applied to be provided with the terminal device of application, The terminal device includes private resource manager and private resource pond, including:
Resource adjusting module, for when the treatment for detecting the default data processing task applied is asked, in default money The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount, second money from first resource amount in the range of the amount of source Source amount is more than the first resource amount;
Calling module, for calling the private resource pond to complete the treatment request.
The third aspect, the embodiment of the present invention provides a kind of terminal device, and the terminal device includes processor, private resource Manager, memory, communication interface and bus;The processor is managed by bus with the memory, the private resource Device and the communication interface connect and complete mutual communication;The memory storage executable program instructions, the place Reason device is used to call the executable program code in the memory, controls the private resource manager to perform the present invention and implements Method described by example first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer-readable recording medium, wherein, the computer-readable Storage medium is stored with the program code performed for computer equipment, and the program code specifically includes instruction, the instruction use In the part or all of step described by execution embodiment of the present invention first aspect.
The present invention provide scheme be provided with private resource manager and private resource pond, the private resource pond be exclusively for What default application prepared, and the private resource pond amount of hardware resources can dynamic change, needed when default application has data task During treatment, private resource manager tunes up the amount of hardware resources in private resource pond, so that for the default application, to provide data processing special With resource, and then shorten the response time of application.
The aspects of the invention or other aspects can more straightforwards in the following description.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for managing resource provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another method for managing resource provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of resource management apparatus disclosed in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal device disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another terminal device disclosed in the embodiment of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Term " first ", " second " in description and claims of this specification and above-mentioned accompanying drawing etc. are for distinguishing Different objects, rather than for describing particular order.Additionally, term " comprising " and " having " and their any deformations, it is intended that It is to cover non-exclusive including.Process, method, system, product or the equipment for for example containing series of steps or unit do not have The step of having listed or unit are defined in, but alternatively also include the step of not listing or unit, or alternatively also wrapped Include for these processes, method, product or other intrinsic steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments Containing at least one embodiment of the present invention.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.
Terminal device involved by the embodiment of the present invention can include the various handheld devices with radio communication function, Mobile unit, wearable device, computing device are connected to other processing equipments of radio modem, and various forms 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.The embodiment of the present invention is carried out in detail below It is thin to introduce.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow sheet of method for managing resource provided in an embodiment of the present invention, is applied to The terminal device of application is installed, the terminal device includes private resource manager and private resource pond, this resource management side Method is comprised the following steps:
S101, when detecting the treatment of data processing task of default application and asking, the professional resources manager exists The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount from first resource amount in the range of default stock number, it is described Secondary resource amount is more than the first resource amount.
Wherein, using including in terminal device install various applications, such as wechat application, QQ, iqiyi.com, UC browsers, Taobao's application, 58 same cities, future are carefree etc..
Wherein, preset application and represent the application that user commonly uses, such as wechat application, QQ, UC browser.Or, preset Using popular application is represented, such as, and wechat application, QQ, Taobao's application etc..
In addition, default application can be user-defined, or set according to preset strategy by terminal device, Preset strategy for example can be first to obtain the multiple use parameters applied being arranged in the first preset period of time in terminal device (such as Number of times, frequency, duration etc.), the use parameter then applied according to each selects at least one application from this multiple application, And this at least one application definition is applied for default.Such as, it is assumed that the termination time of the first preset period of time is current system Time, the first preset period of time when a length of 1 week, the multiple applications in terminal device have:Wechat application, QQ and Ai Qi Skill, this 3 applications use parameter within 1 week is:The access times of wechat application are 50 times, the access times of QQ are 55 times, The access times of iqiyi.com are 20 times, then application definition of the terminal device by access times more than 40 times is default application, i.e., Wechat application and QQ are default application.In addition, the embodiment of the present invention is not done only to the specific implementation for presetting the setting of application One limits.
Wherein, private resource manager is integrated in the chip on processor, is specifically used to management private resource pond.
Wherein, hardware resource pool refers to be integrated the operational capability of all resources of terminal device, and is unified The new organization structure of distribution.Resource in private resource pond is to mark off to come in all resources from terminal device, special money Source pond provides resource exclusively for default application.When the less stock number of default application demand, the money in private resource pond is allocated to Source is just less, if default application needs more stock number, the resource for being allocated to private resource pond is just more.The resource bag Include at least one in following resource:CPU, internal memory, hard disk, I/O interfaces.
In one embodiment, the private resource pond is physical resource pool;Or, the private resource pond is virtual resource Pond.
Wherein, physical resource pool is the thin consolidation of the existing hardware resource of terminal device.Terminal device will be existing Hardware resource is virtualized, and dedicated virtual machine is opened up in terminal device, and virtualization pool is the hardware resource in virtual machine.
In one embodiment, professional resources manager described in above step S101 will be described special in the range of default stock number It is from the specific embodiment that first resource amount is adjusted to Secondary resource amount with the amount of hardware resources of resource pool:The professional resources Manager presets application and takes the private resource according to the default use parameter determination applied in preset period of time The priority in pond;The professional resources manager takes the priority in the private resource pond default according to the default application The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount from first resource amount in the range of stock number.
In one embodiment, the Secondary resource amount is equal to the first resource amount and adds default stock number.Wherein, first Stock number is the current stock number in private resource pond.
In one embodiment, the default stock number is fixed value.Such as, the fixed value for example can be 200mb, 230mb, 300mb or other values.
In one embodiment, the corresponding default stock number of different priorities for taking the private resource pond is different 's.Such as, the corresponding default stock number of priority 1 is 400mb, and the corresponding default stock number of priority 2 is 300mb, priority 1 Priority more than priority 2 priority.
Further, the use parameter include access times and use every time use duration, the professional resources pipe Reason device presets application and takes the private resource pond according to the default use parameter determination applied in preset period of time The specific embodiment of priority be:The professional resources manager determines that default the application averagely makes in preset period of time Use duration;The professional resources manager determines according to the described average use duration of the default application and the access times The default application takes the priority in the private resource pond.Wherein, when it is default apply in preset period of time average using Duration is more long, and default when applying the access times in preset period of time bigger, and corresponding priority is higher.Applied when default It is average shorter using duration in preset period of time and default when applying the access times in preset period of time fewer, it is corresponding excellent First level is more high lower.When it is default apply in preset period of time it is average bigger using duration, or default apply in preset period of time Access times it is more when, corresponding priority gets over eminence in intermediateness.
Further, the use parameter includes access times and the use time for using every time, the professional resources pipe Reason device presets application and takes the private resource pond according to the default use parameter determination applied in preset period of time The specific embodiment of priority be:The professional resources manager determines according to the use time that default application is used every time Described presetting applies the access times in preset period of time;The professional resources manager is applied when default according to described presetting Access times in section determine that the default application takes the priority in the private resource pond, wherein, the preset period of time bag Include present system time.
Further, the present system time is in the terminal node of the preset period of time;Or, the current system Time is in intermediate node of the preset period of time etc., and the embodiment of the present invention does not make unique restriction.
Wherein, described presetting applies the access times in preset period of time bigger, and corresponding priority is higher, described default Apply the access times in preset period of time smaller, corresponding priority is lower.
It should be noted that the priority for taking the private resource pond is higher, corresponding default stock number is bigger, takes The priority in the private resource pond is lower, and corresponding default stock number is smaller.
Further, the difference of the described default stock number of the adjacent priority for taking the private resource pond of any two It is identical.Such as, priority 1 is adjacent with priority 2, and priority 2 is adjacent with priority 3, and the corresponding default stock number of priority 1 is 400mb, the corresponding default stock number of priority 2 is 350mb, and the corresponding default stock number of priority 3 is 300mb.
In one embodiment, professional resources manager described in above step S101 will be described special in the range of default stock number It is from the specific embodiment that first resource amount is adjusted to Secondary resource amount with the amount of hardware resources of resource pool:The professional resources Manager according to the size of the default application in the range of default stock number by the amount of hardware resources in the private resource pond from First resource amount is adjusted to Secondary resource amount.
In one embodiment, the Secondary resource amount is equal to the first resource amount and adds default stock number.
In one embodiment, the default stock number is fixed value.Such as, preset stock number be equal to 200mb, 230mb, 300mb or other values.
In one embodiment, the corresponding default stock number of the size of different application is different.Such as, application is big It is small in the range of 100mb~150mb, corresponding default stock number be 200mb, the size of application is in 300mb~450mb scopes Interior, corresponding default stock number is 300mb.
In one embodiment, the default stock number scope is a fixed range, such as 100mb~500mb.Or, The default stock number scope is different scopes in different periods, and the different periods are on the same day, such as, at first Section 8:00am~10:The corresponding default stock number scopes of 00am are 100mb~500mb, in the second period 13:00pm~15: The corresponding default stock number scopes of 00pm are 150mb~400mb.Or, the default stock number scope is not in different periods Same scope, the different periods are not on the same day, such as, and the corresponding default stock number scopes of the first period 12/1-12/30 It is 100mb~400mb, the corresponding default stock number scopes of the second period 1/1-1/30 are 100mb~450mb etc., the present invention Embodiment does not make unique restriction for the default stock number scope.
S102, the professional resources manager call the private resource pond to complete the treatment request.
In one embodiment, the method shown in Fig. 1 also includes:
When the default application is exited, the professional resources manager will be described special in the range of the default stock number Adjusted to information resources amount from the Secondary resource amount with the amount of hardware resources of resource pool, the information resources amount is less than described the Two stock numbers.
Wherein, information resources can be equal to first resource, or less than first resource, or more than first resource, this hair Bright embodiment is not construed as limiting.
It can be seen that, the scheme that the present invention is provided is provided with private resource manager and private resource pond, and the private resource pond is Prepare exclusively for default application, and the private resource pond amount of hardware resources can dynamic change, when default application has data times When business needs treatment, private resource manager tunes up the amount of hardware resources in private resource pond, and data are provided with for the default application Treatment private resource, and then shorten the response time of application.
The embodiment of the present invention additionally provides another more detailed method flow, as shown in Fig. 2 being applied to be provided with application Terminal device, the terminal device include private resource manager and private resource pond, including:
The treatment request of S201, the data processing task of the default application of professional resources manager detection.
S202, the professional resources manager are according to the default use parameter determination applied in preset period of time Default application takes the priority in the private resource pond.
S203, the professional resources manager take the priority in the private resource pond pre- according to the default application If the amount of hardware resources in the private resource pond is adjusted to Secondary resource amount from first resource amount in the range of stock number.Described Two stock numbers are equal to the first resource amount and add default stock number.Difference takes the corresponding default stock number of priority Different.
S204, the professional resources manager call the private resource pond to complete the treatment request.
S205, the professional resources manager detect that request is exited in the default application.
S206, the professional resources manager provide the hardware in the private resource pond in the range of the default stock number Source amount is adjusted to information resources amount from the Secondary resource amount, and the information resources amount is less than the Secondary resource amount.
It should be noted that each step of method shown in Fig. 2 implements process reference can be made to described in the above method Implement process, no longer describe herein.
The embodiment of the present invention additionally provides a kind of resource management apparatus 300, as shown in figure 3, being applied to be provided with application Terminal device, the terminal device includes private resource manager and private resource pond, including:
Resource adjusting module 301, for when detecting the treatment for the data processing task of default application and asking, The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount from first resource amount in the range of default stock number, it is described Secondary resource amount is more than the first resource amount;
Calling module 302, for calling the private resource pond to complete the treatment request.
In one embodiment, the private resource pond is physical hardware resources pond;Or, the private resource pond is virtual Hardware resource pool.
In one embodiment, the resource adjusting module 301 specifically for:
Application is preset according to the default use parameter determination applied in preset period of time take the special money The priority in source pond;Preset institute in the range of stock number according to the priority that the default application takes the private resource pond The amount of hardware resources for stating private resource pond is adjusted to Secondary resource amount from first resource amount.
In one embodiment, the resource adjusting module 301 specifically for:Size according to the default application program exists The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount from first resource amount in the range of default stock number.
In one embodiment, the resource adjusting module 301, is additionally operable to when the default application is exited, described pre- If the amount of hardware resources in the private resource pond is adjusted to information resources amount, institute from the Secondary resource amount in the range of stock number Information resources amount is stated less than the Secondary resource amount.
It should be noted that above-mentioned each module (resource adjusting module 301 and calling module 302) is for performing the above method Correlation step.Such as, resource adjusting module 301 be used for perform above step S101, calling module 302 for perform more than step Rapid S102.
In the present embodiment, resource management apparatus 300 are to present in modular form.Here " module " can refer to spy Determine application integrated circuit (application-specific integrated circuit, ASIC), perform one or more soft The processor and memory of part or firmware program, integrated logic circuit, and/or other can provide the device of above-mentioned functions.This Outward, above resource adjusting module 301 and calling module 302 can be by the private resource managers 404 of the terminal device shown in Fig. 4 To realize.
As shown in figure 4, terminal device 400 can be realized with the structure in Fig. 4, the terminal device 400 includes at least one Individual processor 401, at least one memory 402, at least one communication interface 403 and private resource manager 404.The place Reason device 501 be connected with the memory 402, the communication interface 403 and private resource manager 404 by communication bus and Complete mutual communication.
Processor 401 can be general central processor (CPU), microprocessor, ASIC (application-specific integrated circuit, ASIC), or one or more are for controlling above scheme journey The integrated circuit that sequence is performed.
Communication interface 403, for other equipment or communication, such as Ethernet, wireless access network (RAN), nothing Line LAN (Wireless Local Area Networks, WLAN) etc..
Memory 402 can be read-only storage (read-only memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored Breath and the other kinds of dynamic memory, or EEPROM (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, laser disc, laser disc, digital universal Laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to The desired program code of order or data structure form simultaneously can be by any other medium of computer access, but not limited to this. Memory can be individually present, and be connected with processor by bus.Memory can also be integrated with processor.
Wherein, the memory 402 is used to store the application code for performing above scheme, and is controlled by processor 401 The private resource manager 404 is made to perform.The processor 501 is used to perform the application stored in the memory 402 Program code.
The code of the storage of memory 502 can perform the above-mentioned resource pipe that private resource manager 404 provided above is performed Reason method, such as when the treatment request of the data processing task for detecting default application, by institute in the range of default stock number State the amount of hardware resources in private resource pond to be adjusted to Secondary resource amount from first resource amount, the Secondary resource amount is more than described the One stock number;The private resource pond is called to complete the treatment request.
Fig. 5 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal device provided in an embodiment of the present invention.Ginseng Fig. 5 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940th, sensor 950, voicefrequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) module 970, processor 980, And the grade part of power supply 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 is not constituted to mobile phone Limit, part more more or less than diagram can be included, or combine some parts, or different part arrangements.
Each component parts of mobile phone is specifically introduced with reference to Fig. 5:
RF circuits 910 can be used for the reception of information and transmission.Generally, RF circuits 910 include but is not limited to antenna, at least one Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is many Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 920 can be used to store software program and module, and processor 980 is by running storage in memory 920 Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 920 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence etc.;Storage data field can be stored and use created data (that such as applies uses parameter etc.) etc. according to mobile phone.Additionally, Memory 920 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one disk Memory device, flush memory device or other volatile solid-state parts.
Input block 930 can be used to receive the numeral or character information of input, and produce with the user of mobile phone set with And the relevant key signals input of function control.Specifically, input block 930 may include fingerprint recognition module 931 and other are defeated Enter equipment 932.Fingerprint recognition module 931, can gather user's finger print data thereon.Except fingerprint recognition module 931, input Unit 930 can also include other input equipments 932.Specifically, other input equipments 932 can include but is not limited to touch-control One kind in screen, physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. Or it is various.
Display unit 940 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display screen 941, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Display screen 941.Although in Figure 5, fingerprint recognition module 931 and display screen 941 are to realize mobile phone as two independent parts Input and input function, but it is in some embodiments it is possible to fingerprint recognition module 931 is integrated and real with display screen 941 The input of existing mobile phone and playing function.
Mobile phone may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display screen 941, proximity transducer can when mobile phone is moved in one's ear, close display screen 941 and/or Backlight.Used as one kind of motion sensor, (generally three axles) acceleration is big in the detectable all directions of accelerometer sensor It is small, size and the direction of gravity are can detect that when static, can be used to recognize application (such as horizontal/vertical screen switching, the phase of mobile phone attitude Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Be can also configure as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data conversion that road 960 will can receive, is transferred to loudspeaker 961, and sound is converted to by loudspeaker 961 Signal is played;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to voice data, then after voice data playback process device 980 is processed, through RF circuits 910 to be sent to such as another mobile phone, Or play to memory 920 so as to further treatment voice data.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 5 shows WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform software program of the storage in memory 920 and/or module, and call storage in memory 920 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 980 can be wrapped Include one or more processing units;Preferably, processor 980 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly processed with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone also includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can be by power supply pipe Reason system is logically contiguous with processor 980, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also will not be repeated here including camera, bluetooth module etc..
In embodiment shown in earlier figures 1 and Fig. 2, the structure that each step method flow can be based on the mobile phone is realized.
In embodiment shown in earlier figures 3, the structure that each unit function can be based on the mobile phone is realized.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey Sequence, the part or all of step including any method for managing resource described in the above method embodiment when program is performed Suddenly.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention not by described by sequence of movement limited because According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication connection of device or unit by some interfaces, Can be electrical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use When, can store in a computer-readable access to memory.Based on such understanding, technical scheme substantially or Person say the part or technical scheme contributed to prior art all or part can in the form of software product body Reveal and, the computer software product is stored in a memory, including some instructions are used to so that a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the invention Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable memory, memory Can include:Flash disk, read-only storage (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 invention is described in detail above, specific case used herein to principle of the invention and Implementation method is set forth, and the explanation of above example is only intended to help and understands the method for the present invention and its core concept; Simultaneously for those of ordinary skill in the art, according to thought of the invention, can in specific embodiments and applications There is change part, to sum up above-mentioned, this specification content should not be construed as limiting the invention.

Claims (11)

1. a kind of method for managing resource, it is characterised in that be applied to be provided with the terminal device of application, the terminal device includes Private resource manager and private resource pond, methods described include:
When the treatment request of the data processing task for detecting default application, the professional resources manager is in default stock number In the range of the amount of hardware resources in the private resource pond is adjusted to Secondary resource amount, the Secondary resource amount from first resource amount More than the first resource amount;
The professional resources manager calls the private resource pond to complete the treatment request.
2. method according to claim 1, it is characterised in that the private resource pond is physical resource pool;Or, it is described Private resource pond is virtualization pool.
3. method according to claim 1 and 2, it is characterised in that the professional resources manager is in default stock number model The interior amount of hardware resources by the private resource pond is enclosed to be adjusted to Secondary resource amount from first resource amount, including:
The professional resources manager presets application according to the default use parameter determination applied in preset period of time Take the priority in the private resource pond;
The professional resources manager takes the priority in the private resource pond in default stock number according to the default application In the range of the amount of hardware resources in the private resource pond is adjusted to Secondary resource amount from first resource amount.
4. method according to claim 1 and 2, it is characterised in that the professional resources manager is in default stock number model The interior amount of hardware resources by the private resource pond is enclosed to be adjusted to Secondary resource amount from first resource amount, including:
The professional resources manager will be described special in the range of default stock number according to the size of the default application program The amount of hardware resources of resource pool is adjusted to Secondary resource amount from first resource amount.
5. the method according to claim any one of 1-4, it is characterised in that methods described also includes:
When the default application is exited, the professional resources manager is in the range of the default stock number by the special money The amount of hardware resources in source pond is adjusted to information resources amount from the Secondary resource amount, and the information resources amount is less than the described second money Measure in source.
6. a kind of resource management apparatus, it is characterised in that be applied to be provided with the terminal device of application, the terminal device includes Private resource manager and private resource pond, including:
Resource adjusting module, for when the treatment request for the data processing task of default application is detected, in default money The amount of hardware resources in the private resource pond is adjusted to Secondary resource amount, second money from first resource amount in the range of the amount of source Source amount is more than the first resource amount;
Calling module, for calling the private resource pond to complete the treatment request.
7. device according to claim 6, it is characterised in that the private resource pond is physical resource pool;Or, it is described Private resource pond is virtualization pool.
8. the device according to claim 6 or 7, it is characterised in that the resource adjusting module specifically for:
Application is preset according to the default use parameter determination applied in preset period of time take the private resource pond Priority;
Preset the special money in the range of stock number according to the priority that the default application takes the private resource pond The amount of hardware resources in source pond is adjusted to Secondary resource amount from first resource amount.
9. the device according to claim 6 or 7, it is characterised in that the resource adjusting module specifically for:According to described The size of default application program is in the range of default stock number by the amount of hardware resources in the private resource pond from first resource amount Adjust to Secondary resource amount.
10. the device according to claim any one of 6-9, it is characterised in that
The resource adjusting module, is additionally operable to when the default application is exited, will be described in the range of the default stock number The amount of hardware resources in private resource pond is adjusted to information resources amount from the Secondary resource amount, and the information resources amount is less than described Secondary resource amount.
11. a kind of terminal devices, it is characterised in that including processor, private resource manager, memory, communication interface and total Line;
The processor is connected and complete by bus with the memory, the private resource manager and the communication interface Into mutual communication;
The memory storage executable program instructions, the processor is used to call the executable program generation in the memory Code, controls the private resource manager to perform the method as described by any one of claim 1 to 5.
CN201611270256.XA 2016-12-30 2016-12-30 A kind of resource allocation methods and device Pending CN106776040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611270256.XA CN106776040A (en) 2016-12-30 2016-12-30 A kind of resource allocation methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611270256.XA CN106776040A (en) 2016-12-30 2016-12-30 A kind of resource allocation methods and device

Publications (1)

Publication Number Publication Date
CN106776040A true CN106776040A (en) 2017-05-31

Family

ID=58951924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611270256.XA Pending CN106776040A (en) 2016-12-30 2016-12-30 A kind of resource allocation methods and device

Country Status (1)

Country Link
CN (1) CN106776040A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451858A (en) * 2017-07-24 2017-12-08 孙晖 Method for managing resource, device, storage medium and computer equipment
CN107479744A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority
CN107734186A (en) * 2017-10-31 2018-02-23 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of prompting message
CN113645607A (en) * 2021-08-16 2021-11-12 Oppo广东移动通信有限公司 Bluetooth device discovery method, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516623A (en) * 2012-06-25 2014-01-15 中兴通讯股份有限公司 Resource distribution method and system
CN104102548A (en) * 2014-08-04 2014-10-15 北京京东尚科信息技术有限公司 Task resource scheduling processing method and task resource scheduling processing system
CN104391749A (en) * 2014-11-26 2015-03-04 北京奇艺世纪科技有限公司 Resource allocation method and device
CN105357251A (en) * 2015-09-24 2016-02-24 浪潮集团有限公司 Resource pool management system and management method
CN105591809A (en) * 2015-10-12 2016-05-18 杭州华三通信技术有限公司 Resource distribution method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516623A (en) * 2012-06-25 2014-01-15 中兴通讯股份有限公司 Resource distribution method and system
CN104102548A (en) * 2014-08-04 2014-10-15 北京京东尚科信息技术有限公司 Task resource scheduling processing method and task resource scheduling processing system
CN104391749A (en) * 2014-11-26 2015-03-04 北京奇艺世纪科技有限公司 Resource allocation method and device
CN105357251A (en) * 2015-09-24 2016-02-24 浪潮集团有限公司 Resource pool management system and management method
CN105591809A (en) * 2015-10-12 2016-05-18 杭州华三通信技术有限公司 Resource distribution method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451858A (en) * 2017-07-24 2017-12-08 孙晖 Method for managing resource, device, storage medium and computer equipment
CN107479744A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Adjust method, apparatus, terminal and the storage medium of touch-screen dispatching priority
CN107479744B (en) * 2017-07-28 2021-02-02 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for adjusting scheduling priority of touch screen
CN107734186A (en) * 2017-10-31 2018-02-23 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of prompting message
CN113645607A (en) * 2021-08-16 2021-11-12 Oppo广东移动通信有限公司 Bluetooth device discovery method, device, terminal and storage medium
CN113645607B (en) * 2021-08-16 2024-04-16 Oppo广东移动通信有限公司 Bluetooth device discovery method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106776036A (en) A kind of resource allocation methods and device
CN107302628B (en) Application function control method and related product
CN104142868B (en) Establish the method and device of connection
CN106055408B (en) A kind of application control method and mobile terminal
CN107734616A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN106095489B (en) A kind of application control method and mobile terminal
US11099898B2 (en) Method for allocating memory resources and terminal device
CN107707768A (en) The processing method and Related product of running game application
CN106776038A (en) A kind of popular application resource allocation methods and mobile terminal
CN107707642B (en) Brush amount terminal determines method and device
CN106126176A (en) A kind of audio collocation method and mobile terminal
US20150212793A1 (en) Mobile terminal and image processing method thereof
CN106776040A (en) A kind of resource allocation methods and device
WO2018161543A1 (en) Method and device for controlling fingerprint processing resources
CN107766139B (en) Application management method and device
CN106155557A (en) A kind of virtual key display packing and mobile terminal
CN106815079A (en) The method and mobile terminal of a kind of popular application control
CN106919458B (en) Method and device for Hook target kernel function
CN106776041B (en) Data processing method and device
CN106802828A (en) A kind of application data processing method and equipment
CN106686428A (en) Video playing method and device
CN109902484B (en) Processing method of associated application and terminal
CN106572166B (en) Data transmission method, backup server and mobile terminal
CN106791152B (en) A kind of communication means and mobile terminal
CN107360306B (en) Application control 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication