CN111338789B - Resource allocation method and device, electronic equipment and computer readable storage medium - Google Patents

Resource allocation method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111338789B
CN111338789B CN202010082956.6A CN202010082956A CN111338789B CN 111338789 B CN111338789 B CN 111338789B CN 202010082956 A CN202010082956 A CN 202010082956A CN 111338789 B CN111338789 B CN 111338789B
Authority
CN
China
Prior art keywords
factor
value
screen
determining
processor
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.)
Active
Application number
CN202010082956.6A
Other languages
Chinese (zh)
Other versions
CN111338789A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010082956.6A priority Critical patent/CN111338789B/en
Publication of CN111338789A publication Critical patent/CN111338789A/en
Application granted granted Critical
Publication of CN111338789B publication Critical patent/CN111338789B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • 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/505Allocation 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 load
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The disclosure relates to a resource allocation method, a resource allocation device, an electronic device and a computer readable storage medium. The resource allocation method is applied to terminal equipment, and the terminal equipment comprises a display screen and a processor, and comprises the following steps: determining a value of a sensitive factor based on a current equipment state of the terminal equipment and according to the current user interaction degree, wherein the equipment state comprises a screen-off state and a screen-on state; the frequency of the processor is determined and adjusted based on the value of the sensitivity factor. The resource investment of the terminal equipment is adjusted according to the interaction degree of the terminal equipment and the user, so that task operation is guaranteed, system blocking and delay are avoided, and meanwhile power consumption can be reduced.

Description

Resource allocation method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of terminal device data processing, and in particular, to a resource allocation method, a resource allocation apparatus, an electronic device, and a computer readable storage medium.
Background
At present, in the use process, some tasks of the intelligent terminal equipment user need a lot of system resources, and if the tasks cannot be distributed in time, the frequency of a processor is increased in time, so that the system is blocked, and the use experience of the user is reduced. For example, some users need low-delay scenes, such as screen lighting, application switching, intra-application sliding and image content browsing updating, and resources to be allocated cannot be estimated in time, so that response is slow. In other situations, the user stops using the terminal device, or the current task does not need much resources, and if the processor still operates at high frequency, the problems of resource waste and excessive power consumption can be caused.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a resource allocation method, a resource allocation apparatus, an electronic device, and a computer-readable storage medium.
According to a first aspect of an embodiment of the present disclosure, there is provided a resource allocation method applied to a terminal device, where the terminal device includes a display screen and a processor, the method including: determining a value of a sensitive factor based on a current equipment state of the terminal equipment and according to the current user interaction degree, wherein the equipment state comprises a screen-off state and a screen-on state; the frequency of the processor is determined and adjusted based on the value of the sensitivity factor.
In an embodiment, the sensitivity factor includes a screen-off feedback factor or a screen-on feedback factor; based on the current equipment state of the terminal equipment, and according to the current user interaction degree, determining the value of the sensitive factor comprises the following steps: if the terminal equipment is in the screen-off state, determining the value of a screen-off feedback factor according to the currently processed task type; if the terminal equipment is in the bright screen state, determining the value of a bright screen feedback factor according to the current user process requirement.
In one embodiment, the off-screen feedback factor includes: using a feedback factor; the method further comprises the steps of: judging the task category of the current processing when the terminal equipment is in the screen-off state; if the currently processed task is a user state task, determining that the value of the feedback factor is a first value of a non-negative number; if the currently processed task is a kernel-mode task, determining that the value of the feedback factor is 0; determining and adjusting the frequency of the processor according to the value of the sensitivity factor, including: depending on the magnitude of the value of the feedback factor used, the frequency of the processor is correspondingly reduced or maintained.
In one embodiment, the first value is determined in the following manner: a preset fixed value; or determining a first value according to the interactivity of the user-state task with the user, wherein the stronger the interactivity is, the lower the value of the corresponding screen-off feedback factor is.
In an embodiment, the off-screen feedback factor further comprises: memory clearing a first factor; the method further comprises the steps of: when the terminal equipment is in a screen-off state, if the currently processed task is a memory cleaning task, determining a value of a memory cleaning first factor according to the current memory occupancy rate, wherein the higher the occupancy rate is, the higher the corresponding value of the memory cleaning first factor is; determining and adjusting the frequency of the processor according to the value of the sensitivity factor, including: and correspondingly increasing or maintaining the frequency of the processor according to the value of the first factor of the memory cleaning.
In one embodiment, the bright screen feedback factor includes a load increase feedback factor or a load decrease feedback factor; the method further comprises the steps of: when the terminal equipment is in a bright screen state, judging the number of times that the process is preempted in non-active switching; if the number of times is greater than the first threshold, determining a value of a load increase feedback factor according to the running condition of the processor; if the number of times is smaller than a second threshold, determining a value of a load reduction feedback factor according to the running condition of the processor, wherein the second threshold is smaller than or equal to the first threshold; determining and adjusting the frequency of the processor according to the value of the sensitivity factor, including: increasing the frequency of the processor according to the value of the feedback factor of the load increase; or, reducing the frequency of the processor according to the value of the feedback factor of the load reduction.
In one embodiment, the value of the load increase feedback factor is determined according to processor operating conditions in the following manner: according to the current frequency of the processor and the current running queue, the predicted delay length of the running queue is obtained, and the longer the predicted delay is, the higher the value of the corresponding load increasing feedback factor is; and/or acquiring the number of the newly-added processes, wherein the larger the number of the newly-added processes is, the higher the corresponding load increase feedback factor value is.
In one embodiment, the value of the load reduction feedback factor is determined according to processor operating conditions in the following manner: and acquiring the predicted advance time of the running queue according to the current frequency of the processor and the current running queue, wherein the longer the predicted advance time is, the lower the value of the corresponding load reduction feedback factor is.
In an embodiment, the bright screen feedback factor further comprises: displaying the demand load factor; the method further comprises the steps of: when the terminal equipment is in a bright screen state, determining a value of a display demand load factor according to the resource demand of the current task on the screen display, wherein the higher the resource demand of the current task on the screen display is, the higher the value of the display demand load factor is; determining and adjusting the frequency of the processor according to the value of the sensitivity factor, including: the frequency of the processor is increased accordingly, based on the value of the display demand load factor.
In an embodiment, the bright screen feedback factor further comprises: memory clearing a second factor; the method further comprises the steps of: when the terminal equipment is in a bright screen state, if the current memory needs to be cleaned, determining a value of a memory cleaning second factor according to the occupancy rate of the current memory, wherein the higher the occupancy rate is, the higher the value of the corresponding memory cleaning second factor is; determining and adjusting the frequency of the processor according to the value of the sensitivity factor, including: and correspondingly increasing the frequency of the processor according to the value of the second factor of the memory cleaning.
According to a second aspect of embodiments of the present disclosure, there is provided a resource allocation apparatus applied to a terminal device, the terminal device including a display screen and a processor, the apparatus including: the factor determining unit is used for determining the value of the sensitive factor based on the current equipment state of the terminal equipment and according to the current user interaction degree, wherein the equipment state is classified into a bright screen state or a screen-off state according to the brightness of the display screen; and the adjusting unit is used for determining and adjusting the frequency of the processor according to the value of the sensitivity factor.
In an embodiment, the sensitivity factor includes a screen-off feedback factor or a screen-on feedback factor; the factor determination unit includes: the screen-off factor determining unit is used for determining the value of the screen-off feedback factor according to the currently processed task category when the terminal equipment is in the screen-off state; and the screen-brightness factor determining unit is used for determining the value of the screen-brightness feedback factor according to the current user process requirement when the terminal equipment is in the screen-brightness state.
In one embodiment, the off-screen feedback factor includes: using a feedback factor; the screen factor determining unit is used for: judging the task category of the current processing when the terminal equipment is in the screen-off state; if the currently processed task is a user state task, determining that the value of the feedback factor is a first value of a non-negative number; if the currently processed task is a kernel-mode task, determining that the value of the feedback factor is 0; the adjusting unit is used for: depending on the magnitude of the value of the feedback factor used, the frequency of the processor is correspondingly reduced or maintained.
In one embodiment, the first value is determined in the following manner: a preset fixed value; or determining a first value according to the interactivity of the user-state task with the user, wherein the stronger the interactivity is, the lower the value of the corresponding screen-off feedback factor is.
In an embodiment, the off-screen feedback factor further comprises: memory clearing a first factor; the screen factor determining unit is used for: when the terminal equipment is in a screen-off state, if the currently processed task is a memory cleaning task, determining a value of a memory cleaning first factor according to the current memory occupancy rate, wherein the higher the occupancy rate is, the higher the corresponding value of the memory cleaning first factor is; the adjusting unit is used for: and correspondingly increasing or maintaining the frequency of the processor according to the value of the first factor of the memory cleaning.
In one embodiment, the bright screen feedback factor includes a load increase feedback factor or a load decrease feedback factor; the bright screen factor determining unit is used for: when the terminal equipment is in a bright screen state, judging the number of times that the process is preempted in non-active switching; if the number of times is greater than the first threshold, determining a value of a load increase feedback factor according to the running condition of the processor; if the number of times is smaller than a second threshold, determining a value of a load reduction feedback factor according to the running condition of the processor, wherein the second threshold is smaller than or equal to the first threshold; the adjusting unit is used for: increasing the frequency of the processor according to the value of the feedback factor of the load increase; or, reducing the frequency of the processor according to the value of the feedback factor of the load reduction.
In one embodiment, the value of the load increase feedback factor is determined according to processor operating conditions in the following manner: according to the current frequency of the processor and the current running queue, the predicted delay length of the running queue is obtained, and the longer the predicted delay is, the higher the value of the corresponding load increasing feedback factor is; and/or acquiring the number of the newly-added processes, wherein the larger the number of the newly-added processes is, the higher the corresponding load increase feedback factor value is.
In one embodiment, the value of the load reduction feedback factor is determined according to processor operating conditions in the following manner: and acquiring the predicted advance time of the running queue according to the current frequency of the processor and the current running queue, wherein the longer the predicted advance time is, the lower the value of the corresponding load reduction feedback factor is.
In an embodiment, the bright screen feedback factor further comprises: displaying the demand load factor; the bright screen factor determining unit is used for: when the terminal equipment is in a bright screen state, determining a value of a display demand load factor according to the resource demand of the current task on the screen display, wherein the higher the resource demand of the current task on the screen display is, the higher the value of the display demand load factor is; the adjusting unit is used for: the frequency of the processor is increased accordingly, based on the value of the display demand load factor.
In an embodiment, the bright screen feedback factor further comprises: memory clearing a second factor; the bright screen factor determining unit is used for: when the terminal equipment is in a bright screen state, if the current memory needs to be cleaned, determining a value of a memory cleaning second factor according to the occupancy rate of the current memory, wherein the higher the occupancy rate is, the higher the value of the corresponding memory cleaning second factor is; the adjusting unit is used for: and correspondingly increasing the frequency of the processor according to the value of the second factor of the memory cleaning.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a memory for storing instructions; and a processor for invoking the instructions stored in the memory to perform the resource allocation method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed by a processor, perform the resource allocation method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the resource investment of the terminal equipment is adjusted according to the interaction degree of the drill bit of the terminal equipment and the user, so that task operation is guaranteed, system blocking and delay are avoided, and meanwhile power consumption can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a resource allocation method according to an exemplary embodiment.
Fig. 2 is a flow diagram illustrating another resource allocation method according to an example embodiment.
Fig. 3 is a schematic block diagram of a resource allocation apparatus according to an exemplary embodiment.
Fig. 4 is a schematic block diagram of another resource allocation apparatus according to an example embodiment.
Fig. 5 is a schematic block diagram of an apparatus according to an example embodiment.
Fig. 6 is a schematic block diagram of an electronic device, shown according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The embodiment of the disclosure provides a resource allocation method 10, which can be applied to terminal equipment such as mobile phones, tablet computers and the like, wherein the terminal equipment comprises a display screen and a processor, the processor is used for processing various tasks of a system, the frequency of the processor determines the processing speed to a certain extent, the time for completing various tasks is shortened, and the high-frequency processing brings high energy consumption while efficiently completing the work. For this reason, the resource allocation method 10 provided in the embodiment of the present disclosure, as shown in fig. 1, includes steps S11 to S12:
Step S11: and determining the value of the sensitive factor based on the current equipment state of the terminal equipment and according to the current user interaction degree, wherein the equipment state comprises a screen-off state and a screen-on state.
According to the requirements of the user on the terminal equipment, the initial judgment can be carried out, in the screen-extinguishing state of the display screen, the condition that the user does not use the terminal equipment can be judged, the user interaction degree in the state is relatively low, and the use requirements of the system on the processing resources in the state are usually from remote network awakening and resource management of a bottom layer system; on the other hand, in the bright screen state of the display screen, the interaction degree of the user is relatively high, whether more resources are needed or not is judged according to the actual task, so that the timely running of the current task and the future task is ensured, and the timeliness and the low delay of the user interaction are ensured. The sensitive factor can be obtained comprehensively according to the state and a plurality of factors, and the value of the sensitive factor is determined according to the state and the task condition of the current terminal equipment.
Step S12, determining and adjusting the frequency of the processor according to the value of the sensitivity factor.
The method comprises the steps that the value of a sensitive factor is obtained according to the state and task condition of current terminal equipment, so that the frequency of a processor which is needed by a system is determined, the processor is further adjusted to the needed frequency, and under the conditions that more resources are needed, such as high user interaction degree, more system tasks and the like, the frequency of the processor is increased, the operation of the system is ensured, and the blocking and delay are reduced; meanwhile, under the current conditions that the user interaction degree is low, the task can be guaranteed to be completed and resources are rich, the frequency of the processor is reduced, and the power consumption is reduced while the task is guaranteed to be completed.
In an embodiment, the sensitivity factor may include a screen-off feedback factor or a screen-on feedback factor, as shown in fig. 2, step S11 may include: step S111, if the terminal equipment is in a screen-off state, determining a value of a screen-off feedback factor according to the currently processed task type; step S112, if the terminal equipment is in the bright screen state, determining the value of the bright screen feedback factor according to the current user process requirement.
In this embodiment, the sensitivity factor may include a screen-in feedback factor and a screen-out feedback factor. When the terminal equipment is in the screen-off state, the system basically has no operation of a user layer, more is the operation requirement of a bottom layer, such as receiving an incoming call, downloading the system and the like, the required resources are generally relatively reduced compared with the screen-on state, so that in the screen-off state, the value of the screen-off feedback factor is determined according to the task category processed by the system, and the frequency of the processor is determined and adjusted. When the terminal equipment is in a bright screen state, a user can operate, the user interaction degree is higher, the user process requirements can be different according to different states of different tasks, and in the bright screen state, the value of a bright screen feedback factor is determined according to the current actual process condition, so that the frequency of a processor is determined and adjusted.
In one embodiment, the off-screen feedback factor may include: using a feedback factor; the resource allocation method 10 may further include: judging the task category of the current processing when the terminal equipment is in the screen-off state; if the currently processed task is a user state task, determining that the value of the feedback factor is a first value of a non-negative number; if the currently processed task is a kernel-mode task, determining that the value of the feedback factor is 0; step 12 may further include: depending on the magnitude of the value of the feedback factor used, the frequency of the processor is correspondingly reduced or maintained.
In this embodiment, in the Linux system, tasks may be classified into a user mode and a kernel mode, where the two tasks have different properties, and in the screen-off state, a value of a feedback factor may be determined according to a task type, that is, whether a current task (task) is a user mode task or a kernel mode task.
If the task is a user-state task, the input of resources can be correspondingly reduced because the user does not use the terminal equipment at present, the first value of the feedback factor is determined to be a non-negative value, and the frequency of the processor is correspondingly reduced according to the first value. In an embodiment, the first value may be a preset fixed value, that is, the specific content of the user mode task is not required to be resolved, and the first value is set to a uniform value, so that the processor uniformly adjusts the frequency when processing the user mode task in the screen-off state. In another embodiment, the first value may be determined according to the interactivity with the user of the user-state task, where the stronger the interactivity, the lower the value of the corresponding off-screen feedback factor. The interactivity of the user mode task can be calculated according to the detection AI of the user layer, the user mode task is generally the task performed by the user before screen-off, the higher the interactivity of the task is, the higher the resources allocated in the screen-on state are, the higher the original frequency of the processor is, therefore, after screen-off, the user stops interacting without the original frequency, the higher the frequency amplitude required to be reduced by the processor is, and the higher the interactivity of the user mode task is, the lower the corresponding value of the screen-off feedback factor is, so that the power consumption is reduced rapidly.
If the current task is a kernel mode task, since the kernel mode task is a system operation requirement, resource investment needs to be ensured, when the current task is the kernel mode task, the value of a used feedback factor is determined to be 0, and the frequency of a processor is maintained based on the value, so that the normal operation of the system is ensured, and the bottom layer function is ensured not to be interfered.
In an embodiment, the off-screen feedback factor may further include: memory clearing a first factor; the resource allocation method 10 further includes: when the terminal equipment is in a screen-off state, if the currently processed task is a memory cleaning task, determining a value of a memory cleaning first factor according to the current memory occupancy rate, wherein the higher the occupancy rate is, the higher the corresponding value of the memory cleaning first factor is; step S12 may further include: and correspondingly increasing or maintaining the frequency of the processor according to the value of the first factor of the memory cleaning.
In this embodiment, in the screen-off state, the system may perform memory cleaning. The memory affects the task operation, when the task is performed, the corresponding memory needs to be called, if the memory is occupied too much when a certain task is started, the requirement of the task needs to be cleaned temporarily, and system delay is caused. Therefore, some systems can clean the memory in the screen-off state. Therefore, the first factor of memory cleaning is set, when the screen is closed, if the current task is to clean the memory, the value of the first factor of memory cleaning can be determined according to the occupancy rate of the memory, and the higher the occupancy rate is, the heavier the cleaning task is, and the higher the processor frequency is needed to ensure timely completion.
The memory cleaning in the screen-off state can be a user-state task, such as user-specified cleaning, or a kernel-state task, such as automatic cleaning by a system, so that the value of the screen-off feedback factor can be comprehensively used with the value of the feedback factor and the value of the first factor of the memory cleaning, and the frequency of the current processor is determined according to the calculation result.
In one embodiment, the bright screen feedback factor may include: load increasing feedback factor or load decreasing feedback factor; the resource allocation method 10 further includes: when the terminal equipment is in a bright screen state, judging the number of times that the process is preempted in non-active switching; if the number of times is greater than the first threshold, determining a value of a load increase feedback factor according to the running condition of the processor; if the number of times is smaller than a second threshold, determining a value of a load reduction feedback factor according to the running condition of the processor, wherein the second threshold is smaller than or equal to the first threshold; step S12 may further include: increasing the frequency of the processor according to the value of the feedback factor of the load increase; or, reducing the frequency of the processor according to the value of the feedback factor of the load reduction.
In this embodiment, in the bright screen state, a load increase feedback factor or a load decrease feedback factor is set, and according to the current task and the current processor frequency, it may be determined that the resource investment is insufficient or excessive, so as to determine the values of the two factors, and then make corresponding adjustment.
Firstly, judging the number of times that processes are preempted and not actively switched in a scheduling clock period of a processor, wherein the processor normally executes the tasks according to the sequence in an operation queue, but some tasks such as keyboard input related to I/O (input/output) and the like need to respond in time, and when the tasks occur, the tasks are inserted into front of the operation queue, so that the processes are preempted, the integration is preempted and not actively switched, if the occurrence number of the conditions is too large in a period of time, some tasks in the operation queue can not be completed in time, and if the occurrence number of the please is small, the tasks represent the current task and are not heavy. By the method, the current system state can be primarily judged.
When the number of times that the process is preempted to be not actively switched is larger than a first threshold value, determining a value of a load increase feedback factor according to the running condition of the processor, and correspondingly increasing the frequency of the processor according to the value of the load increase feedback factor. In one example, the value of the load increase feedback factor may obtain the expected delay length of the operation queue according to the current frequency of the processor and the current operation queue, where the longer the expected delay, the higher the value of the corresponding load increase feedback factor. The method comprises the steps of pre-judging whether the tasks in the queue can be completed on time according to the tasks in the queue and the current processor frequency, and determining the value of a load increase feedback factor according to the expected time delay duration if the tasks in the running queue cannot be completed on time and have time delay conditions. In still other embodiments, the number of new processes is obtained, the greater the number of new processes, the higher the corresponding load increase feedback factor value. In addition to running queues, the system may also increase processes in some cases, if the number of new processes is large, it may cause the system to get stuck, and according to the number of new processes, the load is increased to increase the value of the feedback factor, so as to further increase the frequency of the processor.
When the number of times that the process is preempted and not actively switched is smaller than a second threshold, the possible resource investment of the current system is represented to be excessive, the value of the load reduction feedback factor is determined according to the running condition of the processor, and the frequency of the processor is correspondingly reduced according to the value of the load reduction feedback factor. In one example, according to the current frequency of the processor and the current running queue, the predicted advance time of the running queue is obtained, the longer the predicted advance time is, the lower the corresponding load reduction feedback factor is, the value of the load reduction feedback factor is a negative number, the longer the predicted advance time is, the higher the resource investment is, the larger the amplitude of the processor frequency needs to be reduced, so that the lower the corresponding load reduction feedback factor is, the more processor frequency is reduced, and the power consumption is reduced.
In an embodiment, the bright screen feedback factor may further include: displaying the demand load factor; the resource allocation method 10 further includes: when the terminal equipment is in a bright screen state, determining a value of a display demand load factor according to the resource demand of the current task on the screen display, wherein the higher the resource demand of the current task on the screen display is, the higher the value of the display demand load factor is; step S12 may further include: the frequency of the processor is increased accordingly, based on the value of the display demand load factor.
In this embodiment, in the bright screen state, the current required resource can be predicted by AI or other modes according to the real content and the type of the current task displayed. Some tasks, such as electronic games, require real-time switching of pictures and timely response, thus requiring more resources, while some tasks do not require excessive resources for display. Therefore, a display demand load factor is also set in the bright screen feedback factor, the value of the display demand load factor is determined according to the resource demand of the current task on the screen display, and the frequency of the processor is correspondingly increased according to the value of the display demand load factor.
In an embodiment, the bright screen feedback factor may further include: memory clearing a second factor; the resource allocation method 10 may further include: when the terminal equipment is in a bright screen state, if the current memory needs to be cleaned, determining a value of a memory cleaning second factor according to the occupancy rate of the current memory, wherein the higher the occupancy rate is, the higher the value of the corresponding memory cleaning second factor is; step S12 may further include: and correspondingly increasing the frequency of the processor according to the value of the second factor of the memory cleaning.
In this embodiment, in the state of screen brightness, the system determines according to the actual conditions of the task and the memory, and needs to clean the memory in time to ensure the normal call of the task, so that when the memory needs to be cleaned, the corresponding allocation resource is needed. And determining the value of the second memory cleaning factor according to the occupancy rate of the memory, wherein the higher the occupancy rate of the memory is, the more memories need to be cleaned, and the higher the value of the corresponding second memory cleaning factor is, so that the frequency of the processor is correspondingly increased to a higher frequency.
The resource allocation method 10 provided by the embodiment of the disclosure can set corresponding factors according to the system state by combining various factors, memorize the frequency of the processor determined and adjusted according to the values of the factors, avoid blocking and delay, reduce power consumption and ensure the interactive experience of users.
According to the embodiment of the disclosure, through experiments, the power consumption of the mobile phone is tested as follows:
it can be seen that the mobile phone adopting the embodiment of the disclosure has lower power consumption under the same condition.
Based on the same inventive concept, fig. 3 shows a resource allocation apparatus 100 applied to a terminal device, the terminal device including a display screen and a processor, comprising: a factor determining unit 110, configured to determine a value of the sensitivity factor based on a current device state of the terminal device and according to a current user interaction degree, where the device state is classified into a bright screen state or a blank screen state according to whether the display screen is bright or dark; the adjusting unit 120 is configured to determine and adjust the frequency of the processor according to the value of the sensitivity factor.
In one embodiment, as shown in FIG. 4, the sensitivity factor includes a off-screen feedback factor or a bright-screen feedback factor; the factor determination unit 110 includes: a screen-off factor determining unit 111, configured to determine, when the terminal device is in a screen-off state, a value of a screen-off feedback factor according to a task category currently processed; the screen-brightness factor determining unit 112 is configured to determine, when the terminal device is in a screen-brightness state, a value of the screen-brightness feedback factor according to a current user process requirement.
In one embodiment, the off-screen feedback factor includes: using a feedback factor; the screen factor determining unit 111 is configured to: judging the task category of the current processing when the terminal equipment is in the screen-off state; if the currently processed task is a user state task, determining that the value of the feedback factor is a first value of a non-negative number; if the currently processed task is a kernel-mode task, determining that the value of the feedback factor is 0; the adjusting unit 120 is configured to: depending on the magnitude of the value of the feedback factor used, the frequency of the processor is correspondingly reduced or maintained.
In one embodiment, the first value is determined in the following manner: a preset fixed value; or determining a first value according to the interactivity of the user-state task with the user, wherein the stronger the interactivity is, the lower the value of the corresponding screen-off feedback factor is.
In an embodiment, the off-screen feedback factor further comprises: memory clearing a first factor; the screen factor determining unit 111 is configured to: when the terminal equipment is in a screen-off state, if the currently processed task is a memory cleaning task, determining a value of a memory cleaning first factor according to the current memory occupancy rate, wherein the higher the occupancy rate is, the higher the corresponding value of the memory cleaning first factor is; the adjusting unit 120 is configured to: and correspondingly increasing or maintaining the frequency of the processor according to the value of the first factor of the memory cleaning.
In one embodiment, the bright screen feedback factor includes a load increase feedback factor or a load decrease feedback factor; the bright screen factor determining unit 112 is configured to: when the terminal equipment is in a bright screen state, judging the number of times that the process is preempted in non-active switching; if the number of times is greater than the first threshold, determining a value of a load increase feedback factor according to the running condition of the processor; if the number of times is smaller than a second threshold, determining a value of a load reduction feedback factor according to the running condition of the processor, wherein the second threshold is smaller than or equal to the first threshold; the adjusting unit 120 is configured to: increasing the frequency of the processor according to the value of the feedback factor of the load increase; or, reducing the frequency of the processor according to the value of the feedback factor of the load reduction.
In one embodiment, the value of the load increase feedback factor is determined according to processor operating conditions in the following manner: according to the current frequency of the processor and the current running queue, the predicted delay length of the running queue is obtained, and the longer the predicted delay is, the higher the value of the corresponding load increasing feedback factor is; and/or acquiring the number of the newly-added processes, wherein the larger the number of the newly-added processes is, the higher the corresponding load increase feedback factor value is.
In one embodiment, the value of the load reduction feedback factor is determined according to processor operating conditions in the following manner: and acquiring the predicted advance time of the running queue according to the current frequency of the processor and the current running queue, wherein the longer the predicted advance time is, the lower the value of the corresponding load reduction feedback factor is.
In an embodiment, the bright screen feedback factor further comprises: displaying the demand load factor; the bright screen factor determining unit 112 is configured to: when the terminal equipment is in a bright screen state, determining a value of a display demand load factor according to the resource demand of the current task on the screen display, wherein the higher the resource demand of the current task on the screen display is, the higher the value of the display demand load factor is; the adjusting unit 120 is configured to: the frequency of the processor is increased accordingly, based on the value of the display demand load factor.
In an embodiment, the bright screen feedback factor further comprises: memory clearing a second factor; the bright screen factor determining unit 112 is configured to: when the terminal equipment is in a bright screen state, if the current memory needs to be cleaned, determining a value of a memory cleaning second factor according to the occupancy rate of the current memory, wherein the higher the occupancy rate is, the higher the value of the corresponding memory cleaning second factor is; the adjusting unit 120 is configured to: and correspondingly increasing the frequency of the processor according to the value of the second factor of the memory cleaning.
With respect to the resource allocation apparatus 100 in the above-described embodiment, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment regarding the method, and will not be described in detail herein.
Fig. 5 is a schematic block diagram of any of the foregoing embodiment apparatus according to an example embodiment. For example, apparatus 300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 5, the apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the apparatus 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interactions between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
Memory 304 is configured to store various types of data to support operations at apparatus 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 304 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 300.
The multimedia component 308 includes a screen between the device 300 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 300 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the device 300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 further comprises a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 314 includes one or more sensors for providing status assessment of various aspects of the apparatus 300. For example, the sensor assembly 314 may detect the on/off state of the device 300, the relative positioning of the components, such as the display and keypad of the device 300, the sensor assembly 314 may also detect a change in position of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration/deceleration of the device 300, and a change in temperature of the device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate communication between the apparatus 300 and other devices, either wired or wireless. The device 300 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a computer-readable storage medium is also provided, such as memory 304, including instructions executable by processor 320 of apparatus 300 to perform the above-described method. For example, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 6 is a block diagram of an electronic device 400, according to an example embodiment. For example, the apparatus 400 may be provided as a server. Referring to fig. 6, the apparatus 400 includes a processing component 422 that further includes one or more processors, and memory resources represented by memory 432, for storing instructions, such as applications, executable by the processing component 422. The application program stored in memory 432 may include one or more modules each corresponding to a set of instructions. Further, the processing component 422 is configured to execute instructions to perform the above-described methods.
The apparatus 400 may also include a power component 426 configured to perform power management of the apparatus 300, a wired or wireless network interface 450 configured to connect the apparatus 400 to a network, and an input output (I/O) interface 458. The apparatus 400 may operate based on an operating system stored in memory 432, such as Windows Server, mac OSXTM, unixTM, linuxTM, freeBSDTM or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (20)

1. A resource allocation method, which is applied to a terminal device, wherein the terminal device comprises a display screen and a processor, and the method comprises:
determining a value of a sensitive factor based on a current equipment state of the terminal equipment and according to a task type or a process state of processing in a current processor, wherein the equipment state comprises a screen-off state and a screen-on state;
the sensitive factors comprise screen-extinguishing feedback factors;
if the terminal equipment is in the screen-off state, determining the value of the screen-off feedback factor according to the currently processed task type;
determining and adjusting the frequency of the processor according to the value of the sensitive factor;
the screen-off feedback factor includes: using a feedback factor;
judging the task category of the current processing when the terminal equipment is in the screen-off state;
if the task currently processed is a user state task, determining that the value of the feedback factor is a first value which is not negative;
If the currently processed task is a kernel-mode task, determining that the value of the feedback factor is 0;
and correspondingly reducing or maintaining the frequency of the processor according to the magnitude of the value of the using feedback factor.
2. The resource allocation method according to claim 1, wherein the sensitivity factor comprises a bright screen feedback factor;
the determining the value of the sensitivity factor based on the current equipment state of the terminal equipment and according to the task category or the process state of the processing in the current processor comprises the following steps:
and if the terminal equipment is in the bright screen state, determining the value of the bright screen feedback factor according to the current user process requirement.
3. The resource allocation method according to claim 2, wherein the first value is determined by:
a preset fixed value; or alternatively, the first and second heat exchangers may be,
and determining the first value according to the interactivity of the user-state task and the user, wherein the stronger the interactivity is, the lower the value of the corresponding screen-extinguishing feedback factor is.
4. A method of allocating resources according to claim 1 or 3, wherein the off-screen feedback factor further comprises: memory clearing a first factor;
The method further comprises the steps of: when the terminal equipment is in the screen-off state, if the currently processed task is a memory cleaning task, determining a value of a first memory cleaning factor according to the current memory occupancy rate, wherein the higher the occupancy rate is, the higher the corresponding value of the first memory cleaning factor is;
the determining and adjusting the frequency of the processor according to the value of the sensitive factor comprises the following steps: and correspondingly increasing or maintaining the frequency of the processor according to the value of the memory cleaning first factor.
5. The resource allocation method according to claim 2, wherein the bright screen feedback factor includes a load increase feedback factor or a load decrease feedback factor;
the method further comprises the steps of: when the terminal equipment is in the bright screen state, judging the number of times that the process is preempted and not actively switched; if the number of times is greater than a first threshold, determining a value of the load increase feedback factor according to the processor operating condition; if the number of times is smaller than a second threshold, determining a value of the load reduction feedback factor according to the running condition of the processor, wherein the second threshold is smaller than or equal to a first threshold;
The determining and adjusting the frequency of the processor according to the value of the sensitive factor comprises the following steps: increasing the frequency of the processor according to the value of the load increase feedback factor; or, according to the value of the load reduction feedback factor, correspondingly reducing the frequency of the processor.
6. The resource allocation method according to claim 5, wherein the determining the value of the load increase feedback factor according to the processor operation condition is performed by:
according to the current frequency of the processor and the current running queue, acquiring the expected time delay length of the running queue, wherein the longer the expected time delay is, the higher the corresponding value of the load increase feedback factor is; and/or the number of the groups of groups,
the method comprises the steps of obtaining the number of new processes, wherein the larger the number of the new processes is, the higher the corresponding value of the load increase feedback factor is.
7. The resource allocation method according to claim 5, wherein the determining the value of the load reduction feedback factor according to the processor operating condition is performed by:
and acquiring the expected advance time of the running queue according to the current frequency of the processor and the current running queue, wherein the longer the expected advance time is, the lower the corresponding value of the load reduction feedback factor is.
8. The resource allocation method according to claim 5, wherein the bright screen feedback factor further comprises: displaying the demand load factor;
the method further comprises the steps of: when the terminal equipment is in the bright screen state, determining the value of the display demand load factor according to the resource demand of the current task on the screen display, wherein the higher the resource demand of the current task on the screen display is, the higher the value of the display demand load factor is;
the determining and adjusting the frequency of the processor according to the value of the sensitive factor comprises the following steps: and correspondingly increasing the frequency of the processor according to the value of the display demand load factor.
9. The resource allocation method according to any one of claims 5 to 8, wherein the bright screen feedback factor further comprises: memory clearing a second factor;
the method further comprises the steps of: when the terminal equipment is in the bright screen state, if the current memory needs to be cleaned, determining a value of a memory cleaning second factor according to the occupancy rate of the current memory, wherein the higher the occupancy rate is, the higher the corresponding value of the memory cleaning second factor is;
the determining and adjusting the frequency of the processor according to the value of the sensitive factor comprises the following steps: and correspondingly increasing the frequency of the processor according to the value of the memory cleaning second factor.
10. A resource allocation apparatus, applied to a terminal device, the terminal device including a display screen and a processor, the apparatus comprising:
the factor determining unit is used for determining the value of the sensitive factor based on the current equipment state of the terminal equipment and according to the task type or the progress status of the processing in the current processor, wherein the equipment state is classified into a bright screen state or a screen-off state according to the brightness and the extinction of the display screen;
the sensitive factors comprise screen-extinguishing feedback factors;
the factor determination unit includes:
the screen-off factor determining unit is used for determining the value of the screen-off feedback factor according to the currently processed task category when the terminal equipment is in the screen-off state;
an adjusting unit for determining and adjusting the frequency of the processor according to the value of the sensitive factor
The screen-off feedback factor includes: using a feedback factor;
the screen-off factor determining unit is used for: judging the task category of the current processing when the terminal equipment is in the screen-off state; if the task currently processed is a user state task, determining that the value of the feedback factor is a first value which is not negative; if the currently processed task is a kernel-mode task, determining that the value of the feedback factor is 0;
The adjusting unit is used for: and correspondingly reducing or maintaining the frequency of the processor according to the magnitude of the value of the using feedback factor.
11. The resource allocation device of claim 10, wherein the sensitivity factor comprises a bright screen feedback factor;
the factor determination unit includes:
and the screen-brightness factor determining unit is used for determining the value of the screen-brightness feedback factor according to the current user process requirement when the terminal equipment is in the screen-brightness state.
12. The resource allocation device of claim 11, wherein the first value is determined by:
a preset fixed value; or alternatively, the first and second heat exchangers may be,
and determining the first value according to the interactivity of the user-state task with the user, wherein the stronger the interactivity is, the lower the value of the corresponding screen-extinguishing feedback factor is.
13. The resource allocation device according to claim 10 or 12, wherein the off-screen feedback factor further comprises: memory clearing a first factor;
the screen-off factor determining unit is used for: when the terminal equipment is in the screen-off state, if the currently processed task is a memory cleaning task, determining a value of a first memory cleaning factor according to the current memory occupancy rate, wherein the higher the occupancy rate is, the higher the corresponding value of the first memory cleaning factor is;
The adjusting unit is used for: and correspondingly increasing or maintaining the frequency of the processor according to the value of the memory cleaning first factor.
14. The resource allocation apparatus according to claim 11, wherein the bright screen feedback factor includes a load increase feedback factor or a load decrease feedback factor;
the bright screen factor determining unit is used for: when the terminal equipment is in the bright screen state, judging the number of times that the process is preempted and not actively switched; if the number of times is greater than a first threshold, determining a value of the load increase feedback factor according to the processor operating condition; if the number of times is smaller than a second threshold, determining a value of the load reduction feedback factor according to the running condition of the processor, wherein the second threshold is smaller than or equal to a first threshold;
the adjusting unit is used for: increasing the frequency of the processor according to the value of the load increase feedback factor; or, according to the value of the load reduction feedback factor, correspondingly reducing the frequency of the processor.
15. The resource allocation apparatus according to claim 14, wherein the determining the value of the load increase feedback factor according to the processor operating condition is performed by:
According to the current frequency of the processor and the current running queue, acquiring the expected time delay length of the running queue, wherein the longer the expected time delay is, the higher the corresponding value of the load increase feedback factor is; and/or the number of the groups of groups,
the method comprises the steps of obtaining the number of new processes, wherein the larger the number of the new processes is, the higher the corresponding value of the load increase feedback factor is.
16. The resource allocation apparatus according to claim 14, wherein said determining the value of the load reduction feedback factor according to the processor operating condition is performed by:
and acquiring the expected advance time of the running queue according to the current frequency of the processor and the current running queue, wherein the longer the expected advance time is, the lower the corresponding value of the load reduction feedback factor is.
17. The resource allocation device of claim 14, wherein the bright screen feedback factor further comprises: displaying the demand load factor;
the bright screen factor determining unit is used for: when the terminal equipment is in the bright screen state, determining the value of the display demand load factor according to the resource demand of the current task on the screen display, wherein the higher the resource demand of the current task on the screen display is, the higher the value of the display demand load factor is;
The adjusting unit is used for: and correspondingly increasing the frequency of the processor according to the value of the display demand load factor.
18. The resource allocation device according to any one of claims 14-17, wherein the bright screen feedback factor further comprises: memory clearing a second factor;
the bright screen factor determining unit is used for: when the terminal equipment is in the bright screen state, if the current memory needs to be cleaned, determining a value of a memory cleaning second factor according to the occupancy rate of the current memory, wherein the higher the occupancy rate is, the higher the corresponding value of the memory cleaning second factor is;
the adjusting unit is used for: and correspondingly increasing the frequency of the processor according to the value of the memory cleaning second factor.
19. An electronic device, comprising:
a memory for storing instructions; and
a processor for invoking instructions stored in said memory to perform a resource allocation method according to any of claims 1-9.
20. A computer readable storage medium storing instructions which, when executed by a processor, perform the resource allocation method of any of claims 1-9.
CN202010082956.6A 2020-02-07 2020-02-07 Resource allocation method and device, electronic equipment and computer readable storage medium Active CN111338789B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010082956.6A CN111338789B (en) 2020-02-07 2020-02-07 Resource allocation method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010082956.6A CN111338789B (en) 2020-02-07 2020-02-07 Resource allocation method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111338789A CN111338789A (en) 2020-06-26
CN111338789B true CN111338789B (en) 2024-02-13

Family

ID=71183611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010082956.6A Active CN111338789B (en) 2020-02-07 2020-02-07 Resource allocation method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111338789B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020844A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
WO2017206856A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Method for allocating processor resources and mobile terminal
CN108572717A (en) * 2018-04-11 2018-09-25 Oppo广东移动通信有限公司 Control method, apparatus, mobile terminal and the storage medium of mobile terminal
CN108628430A (en) * 2018-05-14 2018-10-09 努比亚技术有限公司 A kind of game electricity-saving control method, terminal and computer readable storage medium
CN109426712A (en) * 2017-08-28 2019-03-05 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020844A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
WO2017206856A1 (en) * 2016-05-31 2017-12-07 广东欧珀移动通信有限公司 Method for allocating processor resources and mobile terminal
CN109426712A (en) * 2017-08-28 2019-03-05 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and electronic equipment
CN108572717A (en) * 2018-04-11 2018-09-25 Oppo广东移动通信有限公司 Control method, apparatus, mobile terminal and the storage medium of mobile terminal
CN108628430A (en) * 2018-05-14 2018-10-09 努比亚技术有限公司 A kind of game electricity-saving control method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111338789A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
RU2632160C2 (en) Method, device and terminal for displaying application messages
CN108762839B (en) Interface display method and device of application program
CN105338409B (en) Network video preloading method and device
CN107193653B (en) Bandwidth resource allocation method, device and storage medium
US20190235745A1 (en) Method and device for displaying descriptive information
CN106528735B (en) Method and device for controlling browser to play media resources
CN112130940B (en) Terminal control method and device, storage medium and electronic equipment
CN106354504B (en) Message display method and device
CN110262692B (en) Touch screen scanning method, device and medium
US20220342706A1 (en) Method for data processing and apparatus, and electronic device
US9678868B2 (en) Method and device for optimizing memory
CN111552426A (en) Intelligent equipment operation method and device and storage medium
CN109062625B (en) Application program loading method and device and readable storage medium
CN111240835A (en) CPU working frequency adjusting method, CPU working frequency adjusting device and storage medium
CN113703937A (en) Animation switching method and device and storage medium
CN111601377B (en) Temperature control method, device and storage medium
CN111273979B (en) Information processing method, device and storage medium
US20170220401A1 (en) Method, device, and computer-readable storage medium for calling a process
CN111338789B (en) Resource allocation method and device, electronic equipment and computer readable storage medium
CN111290843A (en) Process management method and device
CN116089025A (en) Processor frequency control method, device and storage medium
CN107797645B (en) Resource control method and device
CN113655984A (en) Audio playback control method, audio playback control device, and computer storage medium
CN109976549B (en) Data processing method, device and machine readable medium
CN113778669A (en) System resource allocation method, system resource allocation device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant