WO2020133408A1 - 应用程序的优先级调整方法、装置、存储介质及电子设备 - Google Patents

应用程序的优先级调整方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2020133408A1
WO2020133408A1 PCT/CN2018/125597 CN2018125597W WO2020133408A1 WO 2020133408 A1 WO2020133408 A1 WO 2020133408A1 CN 2018125597 W CN2018125597 W CN 2018125597W WO 2020133408 A1 WO2020133408 A1 WO 2020133408A1
Authority
WO
WIPO (PCT)
Prior art keywords
priority
application program
electronic device
application
state information
Prior art date
Application number
PCT/CN2018/125597
Other languages
English (en)
French (fr)
Inventor
陆天洋
张寅祥
帅朝春
吴建文
戴堃
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/125597 priority Critical patent/WO2020133408A1/zh
Priority to CN201880099401.3A priority patent/CN112997152B/zh
Publication of WO2020133408A1 publication Critical patent/WO2020133408A1/zh

Links

Images

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/48Program initiating; Program switching, e.g. by interrupt

Definitions

  • This application belongs to the technical field of electronic equipment, and particularly relates to a method, device, storage medium, and electronic equipment for adjusting priority of application programs.
  • the terminal has gradually evolved from a simple provision of calling equipment to a platform for running general software.
  • the platform no longer aims to provide call management, but provides an operating environment including various application software such as call management, game entertainment, office notes, mobile payment, etc. All aspects of life and work.
  • the application standby grouping function includes the following groups, namely: active (in use), work (High frequency of use), common use (frequently used but not daily), rare, occasional use, in which applications in different groups have different priorities for calling device resources.
  • This application provides a method, device, storage medium, and electronic device for adjusting the priority of an application program, which can dynamically adjust the priority of the application according to different conditions and adjust the power planning reasonably.
  • an embodiment of the present application provides a method for adjusting priority of an application, including:
  • the priority of the application program is adjusted according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • an embodiment of the present application provides an application program priority adjustment device, including: a first acquisition module, a second acquisition module, a prediction module, and an adjustment module;
  • the first obtaining module is configured to obtain operating history information of an application program in an electronic device, where the operating history information includes historical state information corresponding to the electronic device when the application program is running;
  • the second obtaining module is used to obtain the current state information of the electronic device
  • the prediction module is configured to predict the use probability of the application program in the electronic device according to the current state information and the operation history information;
  • the adjustment module is configured to adjust the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is run on a computer, the computer is caused to execute the above-mentioned priority adjustment method of the application program.
  • an embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
  • the priority of the application program is adjusted according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • FIG. 1 is a schematic flowchart of a method for adjusting priority of an application program provided by an embodiment of the present application.
  • FIG. 2 is another schematic flowchart of a method for adjusting priority of an application program provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a scenario of a method for adjusting priority of an application program provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an apparatus for adjusting priority of an application program provided by an embodiment of the present application.
  • FIG. 5 is another schematic structural diagram of an apparatus for adjusting priority of an application program provided by an embodiment of the present application.
  • FIG. 6 is another schematic structural diagram of an apparatus for adjusting priority of an application program provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the computer execution referred to herein includes operations by a computer processing unit that represents electronic signals representing data in a structured form. This operation converts the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise alter the operation of the computer in a manner well known to testers in the art.
  • the data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format.
  • multiple applications can be run in the electronic device, and the electronic device can prioritize these applications according to the standby grouping function, so that these applications call the CPU or network and other device resources for different scheduling.
  • the priority level of the application in this way is fixed, and the applications at the same level are not in order, and the way of scheduling device resources is not smart and accurate.
  • An embodiment of the present application provides a method for adjusting the priority of an application program.
  • the execution subject of the method for adjusting the priority of the application program may be the apparatus for adjusting the priority of the application program provided in the embodiment of the present application, or the priority integrated with the application program.
  • the electronic device of the level adjustment device, wherein the priority adjustment device of the application program may be implemented in a hardware or software manner.
  • the embodiments of the present application will be described from the perspective of an application priority adjustment device, and the application priority adjustment device may be specifically integrated in an electronic device.
  • the method for adjusting the priority of the application program includes: acquiring operation history information of the application program in the electronic device, the operation history information including historical state information corresponding to the electronic device when the application program is running;
  • the priority of the application program is adjusted according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • predicting the use probability of the application program in the electronic device according to the current state information and the operation history information includes:
  • the use probability of the application program is calculated according to the first and second times.
  • the method before obtaining the running history information of the application program in the electronic device, the method further includes:
  • the priority of the application program is allocated according to the frequency of use.
  • adjusting the priority of the application according to the usage probability includes:
  • the priority of the application program is adjusted to the target priority.
  • determining the corresponding target priority according to the usage probability includes:
  • the corresponding target priority is determined according to the remaining power and the use probability.
  • adjusting the priority of the application to the target priority includes:
  • the priority of the application program is adjusted to the target priority.
  • the state information of the electronic device includes at least one of time information and location information
  • the device resource scheduling of the electronic device includes at least one of CPU scheduling, memory scheduling, and network speed scheduling.
  • FIG. 1 is a schematic flowchart of a method for adjusting a priority of an application program according to an embodiment of the present application.
  • the method for adjusting the priority of the application program provided in the embodiment of the present application is applied to an electronic device, and the specific process may be as follows:
  • Step 101 Obtain operation history information of an application program in an electronic device, where the operation history information includes historical state information corresponding to the electronic device when the application program is running.
  • the electronic device may record the state information of the electronic device corresponding to the application program running in real time to generate operation history information of the application program.
  • the operation history information of the application program of the electronic device in the past preset time period may be obtained, and the operation history information includes historical status information corresponding to the electronic device when the application program is running.
  • the above operation history information is used to predict the user's usage habits, so the operation history information for a long period of time before can be obtained to improve the accuracy of the prediction, for example, the preset time period can be six days or seven days, etc.
  • the first preset time period can also be set by the user according to requirements.
  • the above-mentioned status information may include at least one of time information and location information of the electronic device when the application is running, for example, the above-mentioned running history information may include every time the electronic device runs the application program in the past preset time period Time information and location information corresponding to electronic devices.
  • Step 102 Obtain the current state information of the electronic device.
  • the current state information of the electronic device is obtained to predict the use probability of each application on the electronic device at the current moment, and the state information of the electronic device can be obtained through a sensor on the electronic device to reduce the power consumption of the electronic device Value, the current state information of the electronic device can be obtained every preset time period, for example, the current state information of the electronic device is obtained every hour.
  • the current system time of the electronic device may be obtained, or may be obtained through a network, wherein the time information includes but is not limited to date, day of the week, hour, minute, and second, for example, the current time is 8:00 am on Monday.
  • the current position information of the electronic device can then be obtained through the GPS (Global Positioning System) module or the global navigation satellite system GNSS module in the electronic device.
  • GPS Global Positioning System
  • Step 103 Predict the use probability of the application program in the electronic device according to the current state information and the operation history information.
  • the electronic device after acquiring the current state information of the electronic device, can predict the probability of the application installed on the electronic device, for example, after acquiring the operating history information of the previous ten days, calculate each Probability of application usage in the current state.
  • the current state is Monday at 11:00 am and the location is XX office building
  • search the operation history information for the number of times to meet the above state, such as 10 times, and then obtain each time when the above state is met in the operation history information
  • the number of applications run by the electronic device is counted. For example, the statistics result shows that application A has run 8 times, application B has run 5 times, application C and application D have run 3 times, and other applications have not. Run, the calculation shows that in the current state, the use probability of application A is 80%, the use probability of application B is 50%, the use probability of application D and application D is 30%, and the use probability of other applications is Is 0.
  • Step 104 Adjust the priority of the application program according to the usage probability, where the priority of the application program is associated with the device resource scheduling of the electronic device.
  • the priority of the application is adjusted according to the usage probability. For example, it can be determined whether the above usage probability is greater than the first preset probability. If it is less, the priority of the application is reduced. If the usage probability is neither greater than the first preset probability nor less than the second preset probability, the current priority of the application is maintained.
  • the current priority is the lowest priority, and if so, the current priority is retained.
  • the number of the above application priorities may be 5, in other embodiments, it may be lower than 5 such as 3, or higher than 5 such as 7, etc., which is not further limited in this application.
  • the priority of the above application program is associated with the device resource scheduling of the electronic device.
  • Multiple priority groups are preset in the electronic device, and the system will have different restrictions on the scheduling of device resources for the applications in each priority group.
  • the device resource scheduling may include at least one of CPU scheduling, memory scheduling, and network speed scheduling, such as applications in a group with a low priority, and the system may restrict CPU scheduling or memory scheduling.
  • the method for adjusting the priority of an application program can obtain the operation history information of the application program in the electronic device.
  • the operation history information includes historical status information corresponding to the electronic device when the application program is running, and obtains the current status of the electronic device.
  • the state information predicts the use probability of the application program in the electronic device according to the current state information and the operation history information, and adjusts the priority of the application program according to the use probability, wherein the priority of the application program is associated with the device resource scheduling of the electronic device.
  • the method for adjusting the priority of the application provided in this embodiment can predict the usage probability of the application in the current state according to the user's habit of using the application in the past, and then adjust the priority of the application according to the usage probability to adjust the electronic
  • This application can dynamically adjust the priority of the application according to different conditions for the scheduling of the device resources of the application program, and adjust the power plan reasonably.
  • FIG. 2 is another schematic flowchart of a method for adjusting priority of an application program provided by an embodiment of the present application.
  • the method for adjusting priority of an application program includes:
  • Step 201 Acquire the use frequency of the application program in the electronic device.
  • the use frequency of all application programs of the electronic device within a preset time period is acquired, and the use frequency may be a running frequency or a start-up frequency of the application program.
  • Step 202 Assign the priority of the application program according to the frequency of use.
  • the electronic device includes a power management function, which can prioritize resource requests according to the frequency of use or the time of the last use of the application.
  • the priority group has a total of five groups, and the system will divide it into one of the five priority groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources. The higher the activity of the application, that is, the higher the frequency of use, the higher the priority of the group, and accordingly it is easier to obtain device resources.
  • the application priority grouping may include 5, which are active, work, frequently used, rarely, and occasionally used groups.
  • applications that have not been used once after installation can be divided into a special group of "never" and subject to very strict system restrictions.
  • Step 203 Obtain the running history information of the application program in the electronic device.
  • the running history information includes historical state information corresponding to the electronic device when the application program is running.
  • the above-mentioned status information may include at least one of time information and location information of the electronic device when the application is running, for example, the above-mentioned running history information may include every time the electronic device runs the application program in the past preset time period Time information and location information corresponding to electronic devices.
  • Step 204 Obtain the current state information of the electronic device.
  • the current system time of the electronic device may be obtained, or may be obtained through a network, wherein the time information includes but is not limited to date, day of the week, hour, minute, and second, for example, the current time is 8:00 am on Monday.
  • the current position information of the electronic device can then be obtained through the GPS (Global Positioning System) module or the global navigation satellite system GNSS module in the electronic device.
  • GPS Global Positioning System
  • Step 205 Acquire the first number of times that the historical state information satisfies the current state information in the operation history information.
  • Step 206 Acquire a second number of times in which the historical state information satisfies the current state information and runs the application program.
  • Step 207 Calculate the use probability of the application according to the first number and the second number.
  • the number of times that the above status is found in the operation history information is the first number, such as 10 times, and then running From the historical information, the number of applications that the electronic device runs each time the above state is met is the second number and statistics are made. For example, the statistical result is that application A has run 8 times, application B has run 5 times, and application C And application D have been run 3 times, but other applications are not running.
  • the use probability of application A is 80%
  • the use probability of application B is 50%
  • application D and application The use probability of D is 30%
  • the use probability of other applications is 0.
  • Step 208 Adjust the priority of the application program according to the usage probability, where the priority of the application program is associated with the device resource scheduling of the electronic device.
  • the priority of the above application program is associated with the device resource scheduling of the electronic device.
  • Multiple priority groups are preset in the electronic device, and the system will have different restrictions on the scheduling of device resources for the applications in each priority group.
  • the usage probability can be associated with the corresponding application priority, for example, including 5 priority groups, namely active, work, frequently used, rarely and occasionally used groups, and their corresponding usage probabilities are respectively It is 80%-100%, 60%-80%, 40%-60, 20%-40% and 0-20%. Then determine the corresponding priority group according to the predicted usage probability in the current state of the application. That is, the priority of the application program is adjusted according to the usage probability, including:
  • the priority of the application program is adjusted to the target priority.
  • FIG. 3 is a schematic diagram of a scenario of a method for adjusting priority of an application program provided by an embodiment of the present application.
  • the applications installed in the electronic device include application a, application b, application c, application d, application e, and application f
  • the electronic device includes the first priority, second priority, and third priority , Where the first priority is higher than the second priority, the second priority is higher than the third priority, and the priority is divided according to the frequency of use of the above applications: application a, application b belong to the first priority , Application c and application d belong to the second priority, and application e and application f belong to the third priority.
  • the electronic device obtains the current state and predicts the usage probabilities of the above applications respectively to obtain the corresponding target priority, wherein the target priority of the application b is the second priority, and the target priority of the application c is the first priority
  • the priority of the remaining applications has not changed.
  • the application b can be adjusted from the first priority to the second priority
  • the application c can be adjusted from the second priority to the first priority. Therefore, the electronic device allocates device resources to the electronic application according to the adjusted priority of the application program.
  • the priority adjustment method of the application program provided by itself can reduce the power consumption of the electronic device, thereby improving the endurance of the mobile phone.
  • the current remaining power of the electronic device can also be combined to determine the corresponding priority level. For example, when the remaining power is low (for example, less than 20%), the target priority of the application is appropriately reduced, and when the remaining power of the electronic device is large (for example, more than 80%), the target priority of the application is appropriately raised.
  • the initial power of the electronic device is predictable.
  • the electronic device consumes a certain amount of power by running multiple programs installed on the electronic device or using hardware.
  • the electronic device can obtain the remaining power of the electronic device according to various methods, such as : Directly use the remaining power of the power supply on the electronic device as the remaining power of the electronic device.
  • a fuel gauge is provided inside the power supply to indicate the remaining power of the power supply and the power supply can continue to supply power under specific working conditions. Time, the main detection methods used by the fuel gauge include the voltage test method, battery modeling method, coulomb counter, etc., not specifically limited here.
  • the remaining power of the power supply of the electronic device may be detected when acquiring the current state information of the electronic device, or the current remaining power of the electronic device may be obtained before determining the target priority. That is, the corresponding target priority is determined according to the usage probability, including:
  • the corresponding target priority is determined according to the remaining power and the use probability.
  • the priority of the application is adjusted to the target priority.
  • the priority of the application program is adjusted to the target priority.
  • some more important applications may be preset as preset applications, and then, before adjusting the priority, determine whether the application is a preset application. If not, continue to adjust the priority. step. In this way, you can avoid changing the priority settings of applications that are more important to users, resulting in missing information and data.
  • the above-mentioned preset application program can be added by the user or can be automatically set by the system, which is not further limited in this application.
  • the method for adjusting the priority of application programs provided in the embodiments of the present application can obtain the use frequency of the application programs in the electronic device, assign the priority of the application program according to the use frequency, and obtain the operation history information of the application programs in the electronic device.
  • the historical information includes the historical status information corresponding to the electronic device when the application is running, acquiring the current status information of the electronic device, acquiring the first time that the historical status information satisfies the current status information in the operating history information, and acquiring the historical status information satisfying the current status information
  • the current state information and the second number of times to run the application calculate the use probability of the application according to the first and second times, and adjust the priority of the application according to the use probability, where the priority of the application and the device of the electronic device Resource scheduling is associated.
  • the method for adjusting the priority of the application provided in this embodiment can predict the usage probability of the application in the current state according to the user's habit of using the application in the past, and then adjust the priority of the application according to the usage probability to adjust the electronic
  • This application can dynamically adjust the priority of the application according to different conditions for the scheduling of the device resources of the application program, and adjust the power plan reasonably.
  • FIG. 4 is a schematic structural diagram of an apparatus for adjusting priority of application programs according to an embodiment of the present application.
  • the priority adjustment device 300 of the application program includes a first acquisition module 301, a second acquisition module 302, a prediction module 303, and an adjustment module 304;
  • the first obtaining module 301 is configured to obtain running history information of an application program in an electronic device, where the running history information includes historical state information corresponding to the electronic device when the application program is running;
  • the second obtaining module 302 is configured to obtain the current state information of the electronic device
  • the prediction module 303 is configured to predict the use probability of the application program in the electronic device according to the current state information and the operation history information;
  • the adjustment module 304 is configured to adjust the priority of the application program according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • FIG. 5 is a schematic structural diagram of an apparatus for adjusting priority of an application program provided by an embodiment of the present application, wherein the prediction module 303 includes: a first acquisition sub-module 3031; Two acquisition submodule 3032 and calculation submodule 3033;
  • the first obtaining submodule 3031 is configured to obtain the first number of times that the historical state information satisfies the current state information among the operation history information;
  • the second obtaining submodule 3032 is configured to obtain a second number of times that the historical state information satisfies the current state information and runs the application among the running history information;
  • the calculation sub-module 3033 is configured to calculate the use probability of the application program according to the first and second times.
  • the device may further include: a third acquisition module 305 and an allocation module 306;
  • the third obtaining module 305 is used to obtain the use frequency of the application program in the electronic device before the first obtaining module 301 obtains the running history information of the application program in the electronic device;
  • the allocation module 306 is configured to allocate the priority of the application program according to the usage frequency.
  • the adjustment module 304 includes: a determination submodule 3041 and an adjustment submodule 3042;
  • the determining submodule 3041 is configured to determine the corresponding target priority according to the usage probability
  • the adjustment sub-module 3042 is used to adjust the priority of the application program to the target priority.
  • the determining submodule 3041 is specifically configured to obtain the current remaining power of the electronic device, and determine the corresponding target priority according to the remaining power and the use probability.
  • the apparatus for adjusting the priority of an application program can obtain the running history information of the application program in the electronic device.
  • the running history information includes historical status information corresponding to the electronic device when the application program is running, and obtains the current state of the electronic device.
  • Information predict the use probability of the application program in the electronic device according to the current state information and the operation history information, and adjust the priority of the application program according to the use probability, wherein the priority of the application program is associated with the device resource scheduling of the electronic device.
  • the method for adjusting the priority of the application provided in this embodiment can predict the usage probability of the application in the current state according to the user's habit of using the application in the past, and then adjust the priority of the application according to the usage probability to adjust the electronic
  • This application can dynamically adjust the priority of the application according to different conditions for the scheduling of the device resources of the application program, and adjust the power plan reasonably.
  • the application priority adjustment device and the application priority adjustment method in the above embodiments belong to the same concept, and the application priority adjustment method can be implemented on the application priority adjustment device.
  • the specific implementation process is described in detail in the embodiment of the method for adjusting the priority of the application program, which will not be repeated here.
  • module used herein can be regarded as a software object executed on the computing system.
  • the different components, modules, engines and services described in this article can be regarded as the implementation objects on the computing system.
  • the devices and methods described herein can be implemented in software, and of course can also be implemented in hardware, all within the scope of protection of this application.
  • An embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is run on the computer, the computer is allowed to execute the above-mentioned priority adjustment method of the application program.
  • An embodiment of the present application also provides an electronic device, such as a tablet computer, a mobile phone, and the like.
  • the processor in the electronic device loads the instructions corresponding to one or more application processes into the memory according to the following steps, and the processor runs the application stored in the memory to implement various functions:
  • the priority of the application program is adjusted according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • the processor when predicting the use probability of the application program in the electronic device according to the current state information and the operation history information, the processor is configured to perform the following steps:
  • the use probability of the application program is calculated according to the first and second times.
  • the processor before acquiring the running history information of the application program in the electronic device, the processor is further configured to perform the following steps:
  • the priority of the application program is allocated according to the frequency of use.
  • the processor when adjusting the priority of the application program according to the usage probability, is configured to perform the following steps:
  • the priority of the application program is adjusted to the target priority.
  • the processor when determining the corresponding target priority according to the usage probability, the processor is configured to perform the following steps:
  • the corresponding target priority is determined according to the remaining power and the use probability.
  • the processor when the priority of the application program is adjusted to a target priority, the processor is used to perform the following steps:
  • the priority of the application program is adjusted to the target priority.
  • the status information of the electronic device includes at least one of time information and location information
  • device resource scheduling of the electronic device includes at least one of CPU scheduling, memory scheduling, and network speed scheduling.
  • the electronic device 400 includes a processor 401 and a memory 402.
  • the processor 401 is electrically connected to the memory 402.
  • the processor 400 is the control center of the electronic device 400, and uses various interfaces and lines to connect the various parts of the entire electronic device. By running or loading the computer program stored in the memory 402 and calling the data stored in the memory 402, the electronic The various functions of the device 400 and processing of data, thereby performing overall monitoring of the electronic device 400.
  • the memory 402 can be used to store software programs and modules.
  • the processor 401 runs computer programs and modules stored in the memory 402 to execute various functional applications and data processing.
  • the memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, computer programs required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store Data created by the use of electronic devices, etc.
  • the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may further include a memory controller to provide the processor 401 with access to the memory 402.
  • the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs and stores the instructions in the memory 402
  • the computer program in order to achieve various functions, as follows:
  • the priority of the application program is adjusted according to the usage probability, wherein the priority of the application program is associated with device resource scheduling of the electronic device.
  • the electronic device 400 may further include: a display 403, a radio frequency circuit 404, an audio circuit 405, and a power supply 406.
  • the display 403, the radio frequency circuit 404, the audio circuit 405, and the power supply 406 are electrically connected to the processor 401, respectively.
  • the display 403 may be used to display information input by the user or provided to the user, and various graphical user interfaces, which may be composed of graphics, text, icons, video, and any combination thereof.
  • the display 403 may include a display panel.
  • the display panel may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
  • LCD liquid crystal display
  • OLED Organic Light-Emitting Diode
  • the radio frequency circuit 404 may be used to send and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and send and receive signals with network devices or other electronic devices.
  • the audio circuit 405 can be used to provide an audio interface between a user and an electronic device through a speaker and a microphone.
  • the power supply 406 may be used to power various components of the electronic device 400.
  • the power supply 406 may be logically connected to the processor 401 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system.
  • the electronic device 400 may further include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • the computer program can be stored in a computer-readable storage medium, such as stored in the memory of the electronic device, and executed by at least one processor in the electronic device, which may include For example, the flow of the embodiment of the priority adjustment method of the application program.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module .
  • the above integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, magnetic disk, or optical disk.

Abstract

本申请公开了一种应用程序的优先级调整方法,包括:获取应用程序的运行历史信息,运行历史信息包括应用程序运行时电子设备的历史状态信息,获取电子设备当前的状态信息,并预测电子设备中的应用程序的使用概率,根据使用概率调整应用程序的优先级。本申请还提供一种应用程序的优先级调整装置、存储介质和电子设备。

Description

应用程序的优先级调整方法、装置、存储介质及电子设备 技术领域
本申请属于电子设备技术领域,尤其涉及一种应用程序的优先级调整方法、装置、存储介质及电子设备。
背景技术
随着终端技术的发展,终端已经开始从以前简单地提供通话设备渐渐变成一个通用软件运行的平台。该平台不再以提供通话管理为主要目的,而是提供一个包括通话管理、游戏娱乐、办公记事、移动支付等各类应用软件在内的运行环境,随着大量的普及,已经深入至人们的生活、工作的方方面面。
安卓9.0新增了应用待机分组功能,让系统根据用户对应用的使用情况而限制应用调用CPU或网络等设备资源,应用待机分组功能中包含如下分组,分别为:活跃(正在被使用)、工作(使用频率很高)、常用(经常用但不是每天)、极少、偶尔使用,其中不同分组当中的应用程序调用设备资源的优先级也不相同。
发明内容
本申请提供一种应用程序的优先级调整方法、装置、存储介质及电子设备,能够根据不同的条件来动态调节应用的优先级,合理调节电量规划。
第一方面,本申请实施例提供一种应用程序的优先级调整方法,包括:
获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
获取所述电子设备当前的状态信息;
根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
第二方面,本申请实施例提供一种应用程序的优先级调整装置,包括:第一获取模块、第二获取模块、预测模块以及调整模块;
所述第一获取模块,用于获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
所述第二获取模块,用于获取所述电子设备当前的状态信息;
所述预测模块,用于根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
所述调整模块,用于根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的应用程序的优先级调整方法。
第四方面,本申请实施例提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
获取所述电子设备当前的状态信息;
根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的应用程序的优先级调整方法的一种流程示意图。
图2为本申请实施例提供的应用程序的优先级调整方法的另一流程示意图。
图3为本申请实施例提供的应用程序的优先级调整方法的场景示意图。
图4为本申请实施例提供的应用程序的优先级调整装置的结构示意图。
图5为本申请实施例提供的应用程序的优先级调整装置的另一结构示意图。
图6为本申请实施例提供的应用程序的优先级调整装置的又一结构示意图。
图7为本申请实施例提供的电子设备的结构示意图。
图8为本申请实施例提供的电子设备的另一结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。
现有技术当中,电子设备当中能够运行多个应用程序,电子设备可以根据待机分组功能对这些应用程序划分优先级,使这些应用程序调用CPU或网络等设备资源的调度不同。然而这种方式应用的优先级级别是固定的,同一层级的应用程序没有顺序先后,其设备资源调度的方式不够智能和准确。
本申请实施例提供一种应用程序的优先级调整方法,该应用程序的优先级调整方法的执行主体可以是本申请实施例提供的应用程序的优先级调整装置,或者集成了该应用程序的优先级调整装置的电子设备,其中该应用程序的优先级调整装置可以采用硬件或者软件的方式实现。
本申请实施例将从应用程序的优先级调整装置的角度进行描述,该应用程序的优先级调整装置具体可以集成在电子设备中。该应用程序的优先级调整方法包括:获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
获取所述电子设备当前的状态信息;
根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优 先级与所述电子设备的设备资源调度相关联。
一实施例中,根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率,包括:
获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息的第一次数;
获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息且运行所述应用程序的第二次数;
根据所述第一次数和第二次数计算所述应用程序的使用概率。
一实施例中,在获取电子设备当中应用程序的运行历史信息之前,所述方法还包括:
获取所述电子设备当中应用程序的使用频率;
根据所述使用频率分配所述应用程序的优先级。
一实施例中,根据所述使用概率调整所述应用程序的优先级,包括:
根据所述使用概率确定对应的目标优先级;
将所述应用程序的优先级调整为目标优先级。
一实施例中,根据所述使用概率确定对应的目标优先级,包括:
获取所述电子设备当前的剩余电量;
根据所述剩余电量和所述使用概率确定对应的目标优先级。
一实施例中,将所述应用程序的优先级调整为目标优先级,包括:
判断所述应用程序的优先级与所述目标优先级是否相同;
若否,则将所述应用程序的优先级调整为目标优先级。
一实施例中,所述电子设备的状态信息包括时间信息和位置信息中的至少一个,所述电子设备的设备资源调度包括CPU调度、内存调度以及网速调度中的至少一个。
请参阅图1,图1为本申请实施例提供的应用程序的优先级调整方法的流程示意图。本申请实施例提供的应用程序的优先级调整方法应用于电子设备,具体流程可以如下:
步骤101,获取电子设备当中应用程序的运行历史信息,运行历史信息包括应用程序运行时电子设备对应的历史状态信息。
在一实施例中,电子设备可以实时记录其中的应用程序运行时对应的电子设备的状态信息,以生成应用程序的运行历史信息。当需要执行本申请的应用程序的优先级调整方法时,可以获取电子设备在过去预设时间段内应用程序的运行历史信息,该运行历史信息包括应用程序运行时电子设备对应的历史状态信息。上述运行历史信息用于对用户的使用习惯进行预测,因此可以获取此前 较长一段时间的运行历史信息,以提高预测的准确性,比如上述预设时间段可以为六天或者七天等等,该第一预设时间段也可以由用户根据需求自行设定。
在一实施例中,上述状态信息可以包括运行应用程序时电子设备的时间信息和位置信息中的至少一个,比如,上述运行历史信息可以包括电子设备在过去预设时间段内应用程序每次运行时电子设备对应的时间信息和位置信息。
步骤102,获取电子设备当前的状态信息。
其中,获取电子设备当前的状态信息是为了预测在当前时刻电子设备上各个应用程序的使用概率,而获取电子设备的状态信息可以通过电子设备上的传感器来进行获取,为减少电子设备的功耗值,可以每隔一预设时间段获取一次电子设备当前的状态信息,比如每隔一个小时获取电子设备当前的状态信息。
在一实施例中,可以获取电子设备当前系统的时间,也可以通过联网获取,其中,时间信息包括但不限于日期、星期、时、分、秒,比如当前时间为周一上午8:00。然后可以通过电子设备中的GPS(Global Positioning System,全球定位系统)模块或者全球导航卫星系统GNSS模块获取电子设备的当前位置信息。
步骤103,根据当前状态信息和运行历史信息预测电子设备中的应用程序的使用概率。
在一实施例中,在获取电子设备当前的状态信息后,电子设备可以对其上安装的应用程序是使用概率进行预测,比如,在获取到之前十天的运行历史信息后,分别计算每个应用程序在当前状态下的使用概率。
举例来说,比如当前状态为周一上午11:00,位置为XX写字楼,则在运行历史信息当中查找满足上述状态的次数,比如为10次,然后在运行历史信息中获取每次满足上述状态时电子设备运行的应用程序的次数并进行统计,比如统计结果为应用程序A运行了8次,应用程序B运行了5次,应用程序C和应用程序D分别运行了3次,其他应用程序则没有运行,计算可知在当前状态下,应用程序A的使用概率为80%,应用程序B的使用概率为50%,应用程序D和应用程序D的使用概率为30%,其他应用程序的使用概率则为0。
步骤104,根据使用概率调整应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联。
其中,根据使用概率调整应用程序的优先级可以有多种方法,比如,可以判断上述使用概率是否大于第一预设概率,若不大于,则继续判断使用概率是否小于第二预设概率,若小于,则将该应用程序的优先级进行降低,若使用概率既不大于第一预设概率,也不小于第二预设概率,则保持该应用程序当前的 优先级。
进一步的,在降低应用程序的优先级之前,也可以判断当前的优先级是否为最低优先级,若是,则保留当前的优先级。其中,上述应用程序优先级的数量可以为5个,在其他实施例中,也可以低于5个比如3个,或者高于5个比如7个等等,本申请对此不做进一步限定。
其中,上述应用程序的优先级与电子设备的设备资源调度相关联。电子设备当中预设多个优先级分组,系统会针对每个优先级分组中的应用程序对设备资源的调度各有不同的限制。在一实施例中,该设备资源调度可以包括CPU调度、内存调度以及网速调度中的至少一个,比如优先级低的分组中的应用程序,系统会限制其CPU调度或内存调度等等。
由上可知,本申请实施例提供的应用程序的优先级调整方法可以获取电子设备当中应用程序的运行历史信息,运行历史信息包括应用程序运行时电子设备对应的历史状态信息,获取电子设备当前的状态信息,根据当前状态信息和运行历史信息预测电子设备中的应用程序的使用概率,根据使用概率调整应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联。本实施例提供的应用程序的优先级调整方法可以根据用户过去一段时间使用应用程序的习惯预测在当前状态下应用程序的使用概率,然后根据使用概率对应用程序的优先级进行调整,以调整电子设备对于应用程序的设备资源的调度,本申请可以根据不同的条件来动态调节应用的优先级,合理调节电量规划。
下面将在上述实施例描述的方法基础上,对本申请的清理方法做进一步介绍。参阅图2,图2为本申请实施例提供的应用程序的优先级调整方法的另一流程示意图,该应用程序的优先级调整方法包括:
步骤201,获取电子设备当中应用程序的使用频率。
比如,获取电子设备在一预设时间段内所有应用程序的使用频率,该使用频率可以为运行频率,也可以为应用程序的启动频率。
步骤202,根据使用频率分配应用程序的优先级。
在一实施例中,电子设备包括电量管理功能,它能根据应用的使用频率或者最近一次使用时间,对其资源请求进行优先级排序。该优先级分组一共有五个分组,系统会根据每个应用的使用情况,将其划分至五个优先分组中的一个,而每个分组对设备资源的调度各有不同的限制。应用活跃度越高也即使用频率越高,所处分组的优先级就越高,也就相应地更容易获取设备资源。
在一实施例中,应用程序优先级分组可以包括5个,分别为活跃、工作、常用、极少以及偶尔被使用分组。可选的,安装后一次都未被使用过的应用程序可以被划分至“从不”这一特殊群组,并受到十分严格的系统限制。
步骤203,获取电子设备当中应用程序的运行历史信息,运行历史信息包括应用程序运行时电子设备对应的历史状态信息。
在一实施例中,上述状态信息可以包括运行应用程序时电子设备的时间信息和位置信息中的至少一个,比如,上述运行历史信息可以包括电子设备在过去预设时间段内应用程序每次运行时电子设备对应的时间信息和位置信息。
步骤204,获取电子设备当前的状态信息。
在一实施例中,可以获取电子设备当前系统的时间,也可以通过联网获取,其中,时间信息包括但不限于日期、星期、时、分、秒,比如当前时间为周一上午8:00。然后可以通过电子设备中的GPS(Global Positioning System,全球定位系统)模块或者全球导航卫星系统GNSS模块获取电子设备的当前位置信息。
步骤205,获取运行历史信息当中历史状态信息满足当前状态信息的第一次数。
步骤206,获取运行历史信息当中历史状态信息满足当前状态信息且运行应用程序的第二次数。
步骤207,根据第一次数和第二次数计算应用程序的使用概率。
举例来说,举例来说,比如当前状态为周一上午11:00,位置为XX写字楼,则在运行历史信息当中查找满足上述状态的次数即为第一次数,比如为10次,然后在运行历史信息中获取每次满足上述状态时电子设备运行的应用程序的次数即为第二次数并进行统计,比如统计结果为应用程序A运行了8次,应用程序B运行了5次,应用程序C和应用程序D分别运行了3次,其他应用程序则没有运行,计算可知在当前状态下,应用程序A的使用概率为80%,应用程序B的使用概率为50%,应用程序D和应用程序D的使用概率为30%,其他应用程序的使用概率则为0。
步骤208,根据使用概率调整应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联。
其中,上述应用程序的优先级与电子设备的设备资源调度相关联。电子设备当中预设多个优先级分组,系统会针对每个优先级分组中的应用程序对设备资源的调度各有不同的限制。
在一实施例当中,可以将使用概率与对应的应用程序优先级进行关联,比如包括5个优先级分组,分别为活跃、工作、常用、极少以及偶尔被使用分组,其对应的使用概率分别为80%-100%、60%-80%、40%-60、20%-40%以及0-20%。然后根据应用程序当前状态下预测的使用概率确定对应的优先级分组。也即根据所述使用概率调整所述应用程序的优先级,包括:
根据所述使用概率确定对应的目标优先级;
将所述应用程序的优先级调整为目标优先级。
在本申请实施例中,应用程序的优先级只能够调低而不能调高,在其他实施例中应用程序的优先级可以降低也可以提升。如图3所示,图3为本申请实施例提供的应用程序的优先级调整方法的场景示意图。电子设备当中安装的应用程序包括应用程序a、应用程序b、应用程序c、应用程序d、应用程序e以及应用程序f,电子设备当中包括第一优先级、第二优先级以及第三优先级,其中第一优先级高于第二优先级,第二优先级高于第三优先级,根据上述应用程序的使用频率对其划分优先级为:应用程序a、应用程序b属于第一优先级,应用程序c、应用程序d属于第二优先级,应用程序e、应用程序f属于第三优先级。电子设备获取当前状态并分别对上述应用程序的使用概率进行预测后得到对应的目标优先级,其中应用程序b的目标优先级为第二优先级,应用程序c的目标优先级为第一优先级,其余应用程序的优先级均未发生变化,此时就可以将应用程序b由第一优先级调整至第二优先级,将应用程序c由第二优先级调整至第一优先级。从而使电子设备根据上述应用程序调整后的优先级对其分配设备资源。
在实际使用当中,本身请提供的应用程序的优先级调整方法可以降低电子设备的功耗,从而提升手机的续航能力,在一实施例中还可以结合电子设备当前的剩余电量来确定对应的优先级。比如在剩余电量较少时(例如小于20%),适当降低应用程序的目标优先级,而在电子设备的剩余电量较多时(例如大于80%),则适当的提升应用程序的目标优先级。
其中,电子设备的初始电量是预知的,电子设备通过运行安装在电子设备上的多个程序或者使用硬件等方式消耗一定的电量,则电子设备可以根据多种方式获取电子设备的剩余电量,例如:直接将电子设备上电源的剩余电量作为电子设备的剩余电量,在实际应用中,在电源的内部设置有电量计,用于指示电源的剩余电量以及在特定工作条件下电源还能持续供电的时间,其中电量计主要运用的检测方式有电压测试法,电池建模法,库仑计等,此处不做具体限定。
在一实施例中,可以在获取电子设备当前的状态信息时检测电子设备的电源的剩余电量,也可以在确定目标优先级之前获取电子设备当前的剩余电量等等。也即根据所述使用概率确定对应的目标优先级,包括:
获取所述电子设备当前的剩余电量;
根据所述剩余电量和所述使用概率确定对应的目标优先级。
在一实施例中,若该应用程序当前的优先级与通过预测得到的目标优先级 相同,则不必对其优先级分组进行调整,也即将所述应用程序的优先级调整为目标优先级,可以包括:
判断所述应用程序的优先级与所述目标优先级是否相同;
若否,则将所述应用程序的优先级调整为目标优先级。
在一实施例中,还可以预先设置一些比较重要的应用程序为预设应用程序,然后在调整优先级之前先判断该应用程序是否为预设应用程序,若否,则继续执行调整优先级的步骤。这样可以避免更改对用户较为重要的应用程序的优先级设置,从而造成错失信息数据等。其中,上述预设应用程序可以由用户自行添加也可以由系统自动设置,本申请对此不做进一步限定。
由上可知,本申请实施例提供的应用程序的优先级调整方法可以获取电子设备当中应用程序的使用频率,根据使用频率分配应用程序的优先级,获取电子设备当中应用程序的运行历史信息,运行历史信息包括应用程序运行时电子设备对应的历史状态信息,获取电子设备当前的状态信息,获取运行历史信息当中历史状态信息满足当前状态信息的第一次数,获取运行历史信息当中历史状态信息满足当前状态信息且运行应用程序的第二次数,根据第一次数和第二次数计算应用程序的使用概率,根据使用概率调整应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联。本实施例提供的应用程序的优先级调整方法可以根据用户过去一段时间使用应用程序的习惯预测在当前状态下应用程序的使用概率,然后根据使用概率对应用程序的优先级进行调整,以调整电子设备对于应用程序的设备资源的调度,本申请可以根据不同的条件来动态调节应用的优先级,合理调节电量规划。
请参阅图4,图4为本申请实施例提供的应用程序的优先级调整装置的一种结构示意图。其中该应用程序的优先级调整装置300包括第一获取模块301、第二获取模块302、预测模块303以及调整模块304;
所述第一获取模块301,用于获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
所述第二获取模块302,用于获取所述电子设备当前的状态信息;
所述预测模块303,用于根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
所述调整模块304,用于根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
在一实施例中,请参阅图5,图5为本申请实施例提供的应用程序的优先级调整装置的一种结构示意图,其中,所述预测模块303包括:第一获取子模 块3031、第二获取子模块3032以及计算子模块3033;
所述第一获取子模块3031,用于获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息的第一次数;
所述第二获取子模块3032,用于获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息且运行所述应用程序的第二次数;
所述计算子模块3033,用于根据所述第一次数和第二次数计算所述应用程序的使用概率。
在一实施例中,如图6所述,所述装置还可以包括:第三获取模块305和分配模块306;
所述第三获取模块305,用于在所述第一获取模块301获取电子设备当中应用程序的运行历史信息之前,获取所述电子设备当中应用程序的使用频率;
所述分配模块306,用于根据所述使用频率分配所述应用程序的优先级。
在一实施例中,所述调整模块304包括:确定子模块3041和调整子模块3042;
所述确定子模块3041,用于根据所述使用概率确定对应的目标优先级;
所述调整子模块3042,用于将所述应用程序的优先级调整为目标优先级。
在一实施例中,所述确定子模块3041,具体用于获取所述电子设备当前的剩余电量,根据所述剩余电量和所述使用概率确定对应的目标优先级。
由上述可知,本申请实施例的应用程序的优先级调整装置可以获取电子设备当中应用程序的运行历史信息,运行历史信息包括应用程序运行时电子设备对应的历史状态信息,获取电子设备当前的状态信息,根据当前状态信息和运行历史信息预测电子设备中的应用程序的使用概率,根据使用概率调整应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联。本实施例提供的应用程序的优先级调整方法可以根据用户过去一段时间使用应用程序的习惯预测在当前状态下应用程序的使用概率,然后根据使用概率对应用程序的优先级进行调整,以调整电子设备对于应用程序的设备资源的调度,本申请可以根据不同的条件来动态调节应用的优先级,合理调节电量规划。
本申请实施例中,应用程序的优先级调整装置与上文实施例中的应用程序的优先级调整方法属于同一构思,在应用程序的优先级调整装置上可以运行应用程序的优先级调整方法实施例中提供的任一方法,其具体实现过程详见应用程序的优先级调整方法的实施例,此处不再赘述。
本文所使用的术语“模块”可看作为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看作为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行 实施,均在本申请保护范围之内。
本申请实施例还提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的应用程序的优先级调整方法。
本申请实施例还提供一种电子设备,如平板电脑、手机等。电子设备中的处理器会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能:
获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
获取所述电子设备当前的状态信息;
根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
在一实施例中,根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率时,所述处理器用于执行以下步骤:
获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息的第一次数;
获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息且运行所述应用程序的第二次数;
根据所述第一次数和第二次数计算所述应用程序的使用概率。
在一实施例中,在获取电子设备当中应用程序的运行历史信息之前,所述处理器还用于执行以下步骤:
获取所述电子设备当中应用程序的使用频率;
根据所述使用频率分配所述应用程序的优先级。
在一实施例中,根据所述使用概率调整所述应用程序的优先级时,所述处理器用于执行以下步骤:
根据所述使用概率确定对应的目标优先级;
将所述应用程序的优先级调整为目标优先级。
在一实施例中,根据所述使用概率确定对应的目标优先级时,所述处理器用于执行以下步骤:
获取所述电子设备当前的剩余电量;
根据所述剩余电量和所述使用概率确定对应的目标优先级。
在一实施例中,将所述应用程序的优先级调整为目标优先级时,所述处理器用于执行以下步骤:
判断所述应用程序的优先级与所述目标优先级是否相同;
若否,则将所述应用程序的优先级调整为目标优先级。
在一实施例中,所述电子设备的状态信息包括时间信息和位置信息中的至少一个,所述电子设备的设备资源调度包括CPU调度、内存调度以及网速调度中的至少一个。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
请参阅图7,电子设备400包括处理器401以及存储器402。其中,处理器401与存储器402电性连接。
处理器400是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能并处理数据,从而对电子设备400进行整体监控。
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。
在本申请实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:
获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
获取所述电子设备当前的状态信息;
根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
请一并参阅图8,在一些实施方式中,电子设备400还可以包括:显示器403、射频电路404、音频电路405以及电源406。其中,其中,显示器403、射频电路404、音频电路405以及电源406分别与处理器401电性连接。
显示器403可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器403可以包括显示面板,在一些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。
射频电路404可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
音频电路405可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。
电源406可以用于给电子设备400的各个部件供电。在一些实施例中,电源406可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图8中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本申请实施例的应用程序的优先级调整方法而言,本领域普通测试人员可以理解实现本申请实施例应用程序的优先级调整方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如应用程序的优先级调整方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
对本申请实施例的应用程序的优先级调整装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可 以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,存储介质譬如为只读存储器,磁盘或光盘等。
以上对本申请实施例所提供的一种应用程序的优先级调整方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种应用程序的优先级调整方法,其中,所述方法包括以下步骤:
    获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
    获取所述电子设备当前的状态信息;
    根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
    根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
  2. 根据权利要求1所述的应用程序的优先级调整方法,其中,根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率,包括:
    获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息的第一次数;
    获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息且运行所述应用程序的第二次数;
    根据所述第一次数和第二次数计算所述应用程序的使用概率。
  3. 根据权利要求1所述的应用程序的优先级调整方法,其中,在获取电子设备当中应用程序的运行历史信息之前,所述方法还包括:
    获取所述电子设备当中应用程序的使用频率;
    根据所述使用频率分配所述应用程序的优先级。
  4. 根据权利要求3所述的应用程序的优先级调整方法,其中,根据所述使用概率调整所述应用程序的优先级,包括:
    根据所述使用概率确定对应的目标优先级;
    将所述应用程序的优先级调整为目标优先级。
  5. 根据权利要求4所述的应用程序的优先级调整方法,其中,根据所述使用概率确定对应的目标优先级,包括:
    获取所述电子设备当前的剩余电量;
    根据所述剩余电量和所述使用概率确定对应的目标优先级。
  6. 根据权利要求4所述的应用程序的优先级调整方法,其中,将所述应用程序的优先级调整为目标优先级,包括:
    判断所述应用程序的优先级与所述目标优先级是否相同;
    若否,则将所述应用程序的优先级调整为目标优先级。
  7. 根据权利要求1所述的应用程序的优先级调整方法,其中,所述电子设备的状态信息包括时间信息和位置信息中的至少一个,所述电子设备的设备资源调度包括CPU调度、内存调度以及网速调度中的至少一个。
  8. 一种应用程序的优先级调整装置,其中,所述装置包括:第一获取模块、第二获取模块、预测模块以及调整模块;
    所述第一获取模块,用于获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
    所述第二获取模块,用于获取所述电子设备当前的状态信息;
    所述预测模块,用于根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
    所述调整模块,用于根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
  9. 根据权利要求8所述的应用程序的优先级调整装置,其中,所述预测模块包括:第一获取子模块、第二获取子模块以及计算子模块;
    所述第一获取子模块,用于获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息的第一次数;
    所述第二获取子模块,用于获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息且运行所述应用程序的第二次数;
    所述计算子模块,用于根据所述第一次数和第二次数计算所述应用程序的使用概率。
  10. 根据权利要求8所述的应用程序的优先级调整装置,其中,所述装置还包括:第三获取模块和分配模块;
    所述第三获取模块,用于在所述第一获取模块获取电子设备当中应用程序的运行历史信息之前,获取所述电子设备当中应用程序的使用频率;
    所述分配模块,用于根据所述使用频率分配所述应用程序的优先级。
  11. 根据权利要求10所述的应用程序的优先级调整装置,其中,所述调整模块包括:确定子模块和调整子模块;
    所述确定子模块,用于根据所述使用概率确定对应的目标优先级;
    所述调整子模块,用于将所述应用程序的优先级调整为目标优先级。
  12. 根据权利要求11所述的应用程序的优先级调整装置,其中,
    所述确定子模块,具体用于获取所述电子设备当前的剩余电量,根据所述剩余电量和所述使用概率确定对应的目标优先级。
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至7任一项所述的应用程序的优先级调整方法。
  14. 一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,其中,所述处理器加载所述存储器中的指令用于执行以下步骤:
    获取电子设备当中应用程序的运行历史信息,所述运行历史信息包括所述应用程序运行时所述电子设备对应的历史状态信息;
    获取所述电子设备当前的状态信息;
    根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率;
    根据所述使用概率调整所述应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联。
  15. 根据权利要求14所述的电子设备,其中,根据当前状态信息和所述运行历史信息预测所述电子设备中的应用程序的使用概率时,所述处理器用于执行以下步骤:
    获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息的第一次数;
    获取所述运行历史信息当中所述历史状态信息满足所述当前状态信息且运行所述应用程序的第二次数;
    根据所述第一次数和第二次数计算所述应用程序的使用概率。
  16. 根据权利要求14所述的电子设备,其中,在获取电子设备当中应用程序的运行历史信息之前,所述处理器还用于执行以下步骤:
    获取所述电子设备当中应用程序的使用频率;
    根据所述使用频率分配所述应用程序的优先级。
  17. 根据权利要求16所述的电子设备,其中,根据所述使用概率调整所述应用程序的优先级时,所述处理器用于执行以下步骤:
    根据所述使用概率确定对应的目标优先级;
    将所述应用程序的优先级调整为目标优先级。
  18. 根据权利要求17所述的电子设备,其中,根据所述使用概率确定对应的目标优先级时,所述处理器用于执行以下步骤:
    获取所述电子设备当前的剩余电量;
    根据所述剩余电量和所述使用概率确定对应的目标优先级。
  19. 根据权利要求17所述的电子设备,其中,将所述应用程序的优先级调整为目标优先级时,所述处理器用于执行以下步骤:
    判断所述应用程序的优先级与所述目标优先级是否相同;
    若否,则将所述应用程序的优先级调整为目标优先级。
  20. 根据权利要求14所述的电子设备,其中,所述电子设备的状态信息包括时间信息和位置信息中的至少一个,所述电子设备的设备资源调度包括CPU调度、内存调度以及网速调度中的至少一个。
PCT/CN2018/125597 2018-12-29 2018-12-29 应用程序的优先级调整方法、装置、存储介质及电子设备 WO2020133408A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/125597 WO2020133408A1 (zh) 2018-12-29 2018-12-29 应用程序的优先级调整方法、装置、存储介质及电子设备
CN201880099401.3A CN112997152B (zh) 2018-12-29 2018-12-29 应用程序的优先级调整方法、装置、存储介质及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125597 WO2020133408A1 (zh) 2018-12-29 2018-12-29 应用程序的优先级调整方法、装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2020133408A1 true WO2020133408A1 (zh) 2020-07-02

Family

ID=71128517

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125597 WO2020133408A1 (zh) 2018-12-29 2018-12-29 应用程序的优先级调整方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN112997152B (zh)
WO (1) WO2020133408A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612517A (zh) * 2020-12-18 2021-04-06 深圳市思为软件技术有限公司 数据获取方法及相关设备
CN113094158A (zh) * 2021-03-15 2021-07-09 国政通科技有限公司 服务的驱动调用方法、调用装置、电子设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143791A1 (en) * 2012-11-19 2014-05-22 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies
CN105517129A (zh) * 2015-11-28 2016-04-20 广东欧珀移动通信有限公司 一种通信终端中的网络制式切换方法及通信终端
CN107402809A (zh) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 应用程序的管控方法、装置、存储介质及电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3975703B2 (ja) * 2001-08-16 2007-09-12 日本電気株式会社 情報処理システムにおける優先実行制御方法及びその装置並びにプログラム
CN103164269B (zh) * 2011-12-08 2017-05-03 中兴通讯股份有限公司 一种多窗口显示应用程序的方法及终端
US9154840B2 (en) * 2012-07-31 2015-10-06 Sony Corporation Reception apparatus, reception method, transmission apparatus, and transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140143791A1 (en) * 2012-11-19 2014-05-22 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies
CN105517129A (zh) * 2015-11-28 2016-04-20 广东欧珀移动通信有限公司 一种通信终端中的网络制式切换方法及通信终端
CN107402809A (zh) * 2017-07-31 2017-11-28 广东欧珀移动通信有限公司 应用程序的管控方法、装置、存储介质及电子设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612517A (zh) * 2020-12-18 2021-04-06 深圳市思为软件技术有限公司 数据获取方法及相关设备
CN112612517B (zh) * 2020-12-18 2024-04-05 深圳市思为软件技术有限公司 数据获取方法及相关设备
CN113094158A (zh) * 2021-03-15 2021-07-09 国政通科技有限公司 服务的驱动调用方法、调用装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN112997152A (zh) 2021-06-18
CN112997152B (zh) 2023-02-28

Similar Documents

Publication Publication Date Title
US10628216B2 (en) I/O request scheduling method and apparatus by adjusting queue depth associated with storage device based on hige or low priority status
US10437639B2 (en) Scheduler and CPU performance controller cooperation
AU2022200464B2 (en) Method for reducing power consumption of terminal, and terminal
JP5839119B2 (ja) 情報処理装置、電池残量通知方法および電池残量通知プログラム
US20180267839A1 (en) Controlled Energy Utilization In A Computing Device
US20170212581A1 (en) Systems and methods for providing power efficiency via memory latency control
WO2020133408A1 (zh) 应用程序的优先级调整方法、装置、存储介质及电子设备
CN108924337A (zh) 一种唤醒性能的控制方法和装置
JP7272694B2 (ja) 端末の電力消費を低減するための方法、および端末
US10275007B2 (en) Performance management for a multiple-CPU platform
WO2020206688A1 (zh) 视频播放方法、装置、存储介质及电子设备
CN108038050B (zh) 性能调整方法、装置、存储介质及电子设备
WO2020206690A1 (zh) 应用清理方法、装置、存储介质及电子设备
WO2017166036A1 (zh) 一种资源统计方法、装置及终端
WO2020133413A1 (zh) 应用分组调整方法、装置、存储介质及电子设备
CN112997150B (zh) 应用程序的管理方法、装置、存储介质及电子设备
CN112052096A (zh) 资源处理方法、装置、服务器及终端
WO2020133455A1 (zh) 应用程序的管理方法、装置、存储介质及电子设备
US20230100163A1 (en) Allocating computing device resources
CN117590880A (zh) 温度控制方法、装置、终端设备及存储介质
WO2019000469A1 (zh) 应用控制方法、装置、存储介质及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18944426

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.11.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18944426

Country of ref document: EP

Kind code of ref document: A1