A control method and device
By obtaining and analyzing the thread load parameters of the application process, accurately identifying the CPU requirements of the application process and adjusting the device operation mode, the problem of inaccurate error identification and inaccurate operation mode adjustment in the existing technology is solved, and the processing effect of the device and the user is improved Experience.
Patent Information
- Application Number
- CN202110185314.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-10
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2041-02-10
AI Technical Summary
The prior art has misidentified the situation when identifying the application's CPU performance requirements, making it difficult to accurately adjust the operating mode of the mobile device to achieve a balance between low power consumption and high performance.
By obtaining the first load parameters of each thread of the application process to be identified, the processor time consumed by the thread within a unit time is determined. If the load conditions are met, the application process is determined as the target application process, and the electronic device is adjusted according to the determined control strategy. operation mode.
It realizes accurate judgment of application process performance requirements and adjustment of operation mode, improves the processing effect and user experience of electronic devices, and ensures efficient operation of equipment under different load conditions.
Smart Images

Figure CN112799848B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and more particularly to a control method and device. Background Art
[0002] Nowadays, the hardware performance of mobile devices is quite powerful, but due to the limitation of battery capacity, the devices cannot always be kept in high-energy consumption operation mode. If you want to get a better standby and usage time, you need to face the problem of maintaining low power consumption while taking into account the performance of the device. Therefore, many mobile devices have prepared a variety of performance modes for users to choose from. Different performance modes will adjust the central processing unit (CPU) performance, screen brightness, vibration settings, sound settings and other different settings to achieve different user experiences.
[0003] When the application (APP) has a higher demand for the CPU, the mobile device runs in high-performance mode. When the APP has a relatively small demand for CPU performance, the device runs in low-performance mode, thereby maintaining low power consumption while ensuring the normal operation of the application.
[0004] In the related art, the performance requirements of an application are identified based on a whitelist, but misidentification may occur. Summary of the invention
[0005] In view of this, an embodiment of the present application provides a control method and device.
[0006] The technical solution of the embodiment of the present application is implemented as follows:
[0007] On the one hand, an embodiment of the present application provides a control method, including:
[0008] Obtaining a first load parameter of each thread of the application process to be identified, where the first load parameter is the time consumed by the thread in a target processor per unit time;
[0009] If the first load parameter meets the load condition, the application process to be identified is determined to be a target application process, and the operation mode of the electronic device is adjusted according to the determined control strategy.
[0010] On the one hand, an embodiment of the present application provides a control device, including:
[0011] An acquisition module, used for obtaining a first load parameter of each thread of the application process to be identified, wherein the first load parameter is the time consumed by the thread in a target processor per unit time;
[0012] The adjustment module is used to determine that the application process to be identified is a target application process if the first load parameter meets the load condition, and adjust the operation mode of the electronic device according to the determined control strategy.
[0013] On the one hand, an embodiment of the present application further provides an electronic device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of the above-mentioned control method when running the computer program.
[0014] On the one hand, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned control method is implemented.
[0015] In an embodiment of the present application, a first load parameter of each thread of the application process to be identified is obtained, wherein the first load parameter is the time that the thread consumes the target processor per unit time; if the first load parameter satisfies the load condition, the application process to be identified is determined to be the target application process, and the operation mode of the electronic device is adjusted according to the determined control strategy; thereby, the state of the application process is determined based on the time that the thread consumes the target processor per unit time, the performance requirements of the application process for the electronic device are accurately judged, and the operation mode of the electronic device is adjusted according to the state of the application process, so as to meet the performance requirements of the application process in a timely manner, improve the processing effect of the electronic device on the process, and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is an optional flow chart of the control method of the embodiment of the present application;
[0017] Figure 2 This is an optional flow chart of the control method of the embodiment of the present application;
[0018] Figure 3 This is an optional flow chart of the control method of the embodiment of the present application;
[0019] Figure 4 A schematic diagram of the relationship between threads and processors in an embodiment of the present application;
[0020] Figure 5 A schematic diagram of the relationship between threads and processors in an embodiment of the present application;
[0021] Figure 6 This is a diagram showing the relationship between threads and processors in an embodiment of the present application;
[0022] Figure 7 This is an optional structural diagram of the control device of the embodiment of the present application;
[0023] Figure 8It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] The present application will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the embodiments provided herein are only used to explain the present application and are not intended to limit the present application. In addition, the embodiments provided below are partial embodiments for implementing the present application, rather than providing all embodiments for implementing the present application. In the absence of conflict, the technical solutions recorded in the embodiments of the present application can be implemented in any combination.
[0025] In various embodiments of the present application: obtaining a first load parameter of each thread of the application process to be identified, wherein the first load parameter is the time consumed by the thread on the target processor per unit time;
[0026] If the first load parameter meets the load condition, the application process to be identified is determined to be a target application process, and the operation mode of the electronic device is adjusted according to the determined control strategy.
[0027] An embodiment of the present application provides a control method, which is applied to a control device. The functional modules in the control device can be collaboratively implemented by hardware resources of an electronic device (such as a terminal device, a server or a server cluster), such as computing resources such as processors, detection resources such as sensors, and communication resources.
[0028] The electronic device may be any electronic device with information processing capabilities. In one embodiment, the electronic device may be a smart terminal, such as a mobile terminal with wireless communication capabilities such as a notebook. In another embodiment, the electronic device may also be a terminal device with computing functions that is not easy to move, such as a desktop computer, a desktop computer, a server, etc.
[0029] In actual applications, a control application is running in the electronic device, and the control method provided in the embodiment of the present application can be implemented by the control application.
[0030] Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and there may be multiple implementation methods, such as being provided as a storage medium (storing instructions for executing the control method provided by the embodiments of the present application).
[0031] Figure 1 A schematic diagram of the implementation flow of the control method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the control method includes:
[0032] S101: Obtain a first load parameter of each thread of an application process to be identified.
[0033] The first load parameter is the time consumed by the thread on the target processor per unit time.
[0034] The electronic device obtains an application process list, where the application process list includes application processes currently running on the electronic device. One application corresponds to one application process, and different applications correspond to different application processes. Here, the application processes in the application process list may include application processes corresponding to the monitoring application.
[0035] The electronic device can monitor the creation and exit of application processes in the electronic device through a Windows Management Instrumentation (WMI) component, and update the application process list according to the monitoring result of the WMI component.
[0036] The application process to be identified may be all or part of the application processes in the application process list. After the electronic device determines the application process list, it may filter the application processes in the application process list to obtain the application process to be identified. The application process to be identified may be all or part of the application processes in the application process list. The application process to be identified includes one or more application processes.
[0037] The filtering strategy of the electronic device to filter the application process to be identified from the application process list includes at least one of the following:
[0038] Filtering strategy 1: Use the application process selected by the user as the application process to be identified;
[0039] Filtering strategy 2: Select the application process corresponding to the foreground application as the application process to be identified;
[0040] Filtering strategy three: Select the application process to be identified based on the identification list.
[0041] In filtering strategy 1, the electronic device may provide an application process selection page to be identified, output application processes in the application process list on the application process selection page, receive a user selection operation, and use the application process selected by the user selection operation as the application process to be identified.
[0042] In filtering strategy two, the electronic device can determine the application to which each application process in the application process list belongs, and judge whether each application is running in the foreground or in the background. When the application to which it belongs is running in the foreground, the application process is the foreground application process and is an application process to be identified. When the application to which it belongs is running in the background, the application process is the background application process and is not an application process to be identified.
[0043] Here, the foreground application is an application running on the display interface of the electronic device and interacting with the user.
[0044] In filtering strategy three, the electronic device provides an identification list, which includes applications to be identified. When an application process in the application process list is in the identification list, the application process is the application process to be identified, otherwise, it is not the application process to be identified.
[0045] In the embodiment of the present application, there is no limitation on the filtering strategy for filtering the application processes to be identified from the application processes currently running in the electronic device, and the user can set it according to actual needs.
[0046] After the electronic device determines the application process to be identified, it calculates the first load parameter of each thread in the application process to be identified. Here, the first load parameter is the time consumed by the thread in the target processor per unit time, and the first load parameter may include the load rate of the thread.
[0047] An application process includes one or more threads. For each thread, the electronic device can calculate the first load parameter of each thread respectively.
[0048] When an application process to be identified includes multiple threads, the first load parameter of each thread can be obtained separately, wherein different threads of the same application process may consume different or the same target processors. In one example, the application process to be identified includes three threads: thread 1, thread 2, and thread 3, and the electronic device includes two processors: processor 1 and processor 2, and the target processor consumed by threads 1 and 2 is processor 1, and the target processor consumed by thread 3 is processor 2. In one example, the application process to be identified includes three threads: thread 1, thread 2, and thread 3, and the electronic device includes two processors: processor 1 and processor 2, and the target processor consumed by threads 1, thread 2, and thread 3 is processor 1.
[0049] For a thread, the electronic device obtains the time that the thread consumes the target processor within a first set time period, and calculates a first load parameter based on the obtained time and the length of the first set time period, wherein the target processor is the processor consumed by the thread.
[0050] In one example, the target processor consumed by thread A is processor 1, and thread A consumes processor 1 for 5 seconds within 5 seconds, so the load rate of thread A is 100%, and the load rate of thread A can be recorded as 100.
[0051] In one example, the target processor consumed by thread B is processor 2, and thread A consumes processor 2 for 3 seconds within 5 seconds, so the load rate of thread B is 60%, and the load rate of thread B can be recorded as 60.
[0052] S102: If the first load parameter satisfies the load condition, determine the application process to be identified as a target application process, and adjust the operation mode of the electronic device according to the determined control strategy.
[0053] For the application process to be identified, after the electronic device obtains the first load parameter of the thread of the application process to be identified, it determines whether the first load parameter of the thread meets the load condition. When the first load parameter of the thread of the application process to be identified meets the load condition, the application process to be identified is determined to be the target application process. When the first load parameter of the thread of the application process to be identified does not meet the load condition, the application process to be identified is not the target application process.
[0054] In the embodiment of the present application, the load condition may be a condition set based on the first load parameter of the thread. In one example, the load condition is: the first load parameter of the thread meets the first threshold. In one example, the sum of the first load parameters of all threads of the same process meets the second threshold.
[0055] When an application process of an application is a target application process, it indicates that the application is an application with high requirements on processor resources.
[0056] In an embodiment of the present application, when there are one or more application processes to be identified as target application processes, the operation mode of the electronic device is adjusted according to a determined control strategy.
[0057] In one example, when there is an application process to be identified as a target application process, the operation mode of the electronic device is adjusted according to the determined control strategy.
[0058] In one example, when there are multiple target application processes to be identified, and the number of target application processes is greater than a reference value, the operation mode of the electronic device is adjusted according to the determined control strategy. The reference value may be 1, 2, etc., and the size of the reference value may be set according to actual needs.
[0059] The electronic device adjusts the operation mode of the electronic device according to the control strategy, which can improve the operation performance of the electronic device. In one example, the electronic device includes three performance modes: high performance mode, normal mode and quiet mode. When the electronic device is currently in normal mode, the electronic device is adjusted to high performance mode.
[0060] In one example, if a target application process exists, the operating parameters of the target components in the electronic device are adjusted, such as: increasing the brightness of the display screen, increasing the main frequency of the target processor, adjusting the vibration frequency of the vibration sensor, improving the sound effect of the audio processor, etc., and adjusting the heat dissipation mode of the heat dissipation component.
[0061] In one example, first attribute information of a target application process is obtained, and an operating parameter of a target component is adjusted according to the first attribute information.
[0062] In one example, the second load parameter of the application process to be identified running on different processors is determined to determine whether the second load parameter of the application process to be identified reaches the upper limit of the processing capacity of multiple processors. If so, the parameters of the target component are adjusted; if not, the threads to be identified processed by each processor are balanced.
[0063] In the embodiment of the present application, there is no limitation on the content of the control strategy, which can be set according to actual needs.
[0064] The control method provided in the embodiment of the present application can be applied to the following scenarios:
[0065] Application 1, application 2 and application 3 are running in the electronic device, and application 1 is the foreground application. The electronic device determines that application process 1 corresponding to application 1 is the application process to be identified, calculates the first load parameter of the thread of application process 1, and when the first load parameter of the thread of application process 1 meets the load condition, application process 1 is determined to be the target application process, and the operating parameters of the electronic device are adjusted to improve the processing performance of the electronic device, thereby improving the processing efficiency of application process 1.
[0066] In an embodiment of the present application, a first load parameter of each thread of the application process to be identified is obtained, wherein the first load parameter is the time that the thread consumes the target processor per unit time; if the first load parameter satisfies the load condition, the application process to be identified is determined to be the target application process, and the operation mode of the electronic device is adjusted according to the determined control strategy; thereby, the state of the application process is determined based on the time that the thread consumes the target processor per unit time, the performance requirements of the application process for the electronic device are accurately judged, and the operation mode of the electronic device is adjusted according to the state of the application process, so as to meet the performance requirements of the application process in a timely manner, improve the processing effect of the electronic device on the process, and enhance the user experience.
[0067] In one embodiment, if the first load parameter satisfies the load condition in S102, determining the application process to be identified as the target application process includes one of the following situations:
[0068] Case 1: if the first load parameter of the first thread of the to-be-identified application process meets the first threshold, the to-be-identified application process is determined to be the target application process;
[0069] Case 2: calculating a second load parameter of the application process to be identified according to the first load parameter of each thread of the application process to be identified, and determining that the application process to be identified is a target application process if the second load parameter meets a second threshold;
[0070] Case three: if the first load parameter of the second thread of the application process to be identified meets the third threshold, and the second load parameter of the application process to be identified meets the fourth threshold, the application process to be identified is determined to be the target application process.
[0071] In the above situation 1, the load condition is: the first load parameter satisfies the first threshold value, then when the first load parameter of the thread of the application process to be identified satisfies the first threshold value, the application process to be identified is determined to be the target application process.
[0072] Here, when there are one or more threads in the threads of the application process to be identified whose first load parameter is greater than the first threshold, the first load parameter of the thread meets the first threshold.
[0073] In one example, the first threshold is 90, application process 1 includes thread 1 and thread 2, and the first load parameter of thread 1 is 95, then application process 1 is the target application process.
[0074] In one example, the first threshold is 90, application process 1 includes thread 1 and thread 2, the first load parameter of thread 1 is 95, and the first load parameter of thread 2 is 92, then application process 1 is the target application process.
[0075] In the above situation 2, the load condition is: if the sum of the first load parameters of all threads of the same process, that is, the second load parameter, meets the second threshold, then the application process to be identified is determined to be the target application process.
[0076] For an application process to be identified, the second load parameter of the application process to be identified is the sum of the first load parameters of all threads of the application process to be identified. In practice, the second load parameter of the application process to be identified can be calculated by the first load parameters of all threads, or can be directly read.
[0077] In one example, the second threshold is 300. When the second load parameter of the application process to be identified is 260, the application process to be identified is not the target application process. When the second load parameter of the application process to be identified is 360, the application process to be identified is the target application process.
[0078] In actual applications, the second threshold may be related to the number of threads included in the application process to be identified, for example, when the number of threads included in the application process to be identified is less than 6, the second threshold is 300, and when the number of threads included in the application process to be identified is greater than 6, the second threshold is 400. The second threshold may be independent of the number of threads included in the application process to be identified, for example, the second threshold is 400.
[0079] In the above situation three, the load condition is: the first load parameter satisfies the first threshold, and the sum of the first load parameters of all threads of the process to which the thread belongs, that is, the second load parameter, satisfies the second threshold, then the application process to be identified is determined to be the target application process.
[0080] At this time, the process to be identified is judged from two dimensions: thread and process. When the second load parameter of the process to be identified meets the second threshold, and its threads include threads whose first load parameters meet the first threshold, the application process to be identified is the target application process.
[0081] In one example, the first threshold is 90, the second threshold is 350, when the second load parameter of the application process is 300, it includes 5 threads, and the first load parameters of each thread are 80, 90, 20, 50, and 60 respectively, then the application process is not the target application process.
[0082] In one example, the first threshold is 90, the second threshold is 350, when the second load parameter of the application process is 400, it includes 6 threads, and the first load parameters of each thread are 80, 90, 85, 55, 60, and 30 respectively, then the application process is not the target application process, then the application process is the target application process.
[0083] In one embodiment, the adjustment strategy for adjusting the operation mode of the electronic device according to the determined control strategy in S102 includes:
[0084] Adjustment method A1: if it is determined that the application process to be identified is a target application process, adjusting the operating parameters of the target component in the electronic device;
[0085] Adjustment method A2: obtaining first attribute information of the target application process and / or obtaining environmental parameters of the environment in which the electronic device is located, and adjusting the operating parameters of the target component in the electronic device according to the first attribute information and / or the environmental parameters.
[0086] In the above adjustment methods A1 and A2, the operating parameters of the target component are adjusted. The target component may include: a processor, a display, a speaker, a vibration sensor, a heat dissipation component, etc. When the target component includes a processor, the operating parameters may include: one or more of the main frequency, multiplier, external frequency, bus frequency, secondary cache, operating voltage, etc. When the target component includes a display, the operating parameters may include: one or more of the resolution, brightness, color temperature, etc. When the target component includes: a speaker, the operating parameters may include: one or more of the volume, sound effects, etc. When the target component includes: a vibration sensor, the operating parameters may include: one or more of the vibration frequency, vibration amplitude, etc.
[0087] The embodiments of the present application do not impose any limitation on the target component and the operating parameters of the target component.
[0088] In the above adjustment mode A2, the operating parameters of the target component are adjusted according to the first attribute information of the target application process and one or a combination of two of the environmental parameters of the environment in which the electronic device is located.
[0089] The first attribute information of the target application process includes: image name, user name, dependent processor, memory, description information, etc. Among them, the image name can indicate the application to which the target application process belongs, and whether the first attribute information includes the user name can indicate whether the target application process is a system process or a third-party application process. The environmental parameters of the environment in which the electronic device is located include: temperature, brightness, sound, etc.
[0090] In one example, the current target application process is determined to be a foreground application process according to the first attribute information of the target application process, and the operating parameters of the target component are adjusted.
[0091] In one example, an operating parameter of the target component is adjusted based on the temperature.
[0092] In one embodiment, in the above-mentioned adjustment method A1, adjusting the operating parameters of the target component in the electronic device includes: controlling the operating parameters of the target processor in the electronic device to be adjusted from a first operating parameter to a second operating parameter, wherein the processing capability of the target processor under the second operating parameter is stronger than its processing capability under the first operating parameter.
[0093] In adjustment strategy 1, the target component includes the target processor, that is, the processor consumed by the thread of the application process to be identified. At this time, the operating parameters may include: one or more of the main frequency, multiplier, external frequency, bus frequency, secondary cache, operating voltage, etc.
[0094] At this time, the operating parameters of the target processor are adjusted from the first operating parameters to the second operating parameters, so that the processing of the target processor can be improved.
[0095] In the above adjustment method A2, adjusting the operating parameters of the target component in the electronic device includes:
[0096] Control the target processor in the electronic device to adjust from the current operating parameters to the target operating parameters corresponding to the first attribute information and / or the environmental parameters, and / or control the target heat dissipation module in the electronic device to adjust from the current heat dissipation mode to the first target heat dissipation mode corresponding to the target operating parameters, or to the second target heat dissipation mode corresponding to the first attribute information and / or the environmental parameters.
[0097] Here, the target component includes a target processor and / or a heat dissipation module.
[0098] For the target processor, when adjusting the operating mode of the electronic device, the operating parameters of the target processor are adjusted, and the target operating parameters are adapted to the first attribute information and / or environmental parameters, so that the performance of the target processor is adapted to the first attribute information and / or environmental parameters of the target application process.
[0099] For the target heat dissipation module, the heat dissipation mode of the target heat dissipation module is adjusted to a first heat dissipation mode or a second heat dissipation mode, wherein the first heat dissipation mode is adapted to the target operating parameters of the target processor, and the second heat dissipation mode is adapted to the first attribute information and / or environmental parameters of the target application process. The heat dissipation effect, noise, etc. of the target heat dissipation component are different in different heat dissipation modes.
[0100] In the embodiment of the present application, when adjusting the target component, the target component is adjusted according to the first attribute information and / or environmental parameters of the target application process, so that the adjusted target component is adapted to the current target application process or the environment in which the electronic device is located.
[0101] In one embodiment, the adjustment method of adjusting the operation mode of the electronic device according to the determined control strategy in S102 includes adjustment method B, such as Figure 2 As shown, adjustment method B includes:
[0102] S1211, determining the target processor on which the application process to be identified depends;
[0103] S1212: If the first application process to be identified is running on the first target processor and the second application process to be identified is running on the second target processor, obtain a first sub-load parameter of the first application process to be identified and a second sub-load parameter of the second application process to be identified;
[0104] S1213: If the sum of the first sub-load parameter and the second sub-load parameter meets the load condition, adjust the operating parameters of the target component in the electronic device.
[0105] In one embodiment, in adjustment method B, if Figure 3 As shown, adjusting the operation mode of the electronic device according to the determined control strategy in S102 also includes:
[0106] S1214. If the sum of the first sub-load parameter and the second sub-load parameter does not satisfy the load condition, run some threads of the first application process to be identified on the second target processor, or run some threads of the second application process to be identified on the first target processor.
[0107] The electronic device determines the processor consumed by each application process to be identified, that is, determines the target processor corresponding to each application process to be identified. Here, the application processes to be identified can be grouped according to the target processor they depend on. For example: the electronic device runs application processes to be identified: process 1, process 2, process 3 and process 4, where the processor consumed by process 1 and process 2 is processor 1, and process 1 and process 2 are grouped together as the first application process to be identified, and the processor consumed by process 3 and process 4 is processor 2, and process 3 and process 4 are grouped together as the second application process to be identified.
[0108] The second load parameters of the first identified application process and the second identified application process are added together. When the added result meets the load condition, the operating parameters of the target component are adjusted. When the added result does not meet the load condition, the parameters of the target component are not adjusted. At this time, the identified application process processed by one of the processors is transferred to another processor. The second load parameter of the first identified application process is called the first sub-load parameter, and the second load parameter of the second identified application process is called the second sub-load parameter.
[0109] The load condition here is a condition set based on the second load parameter, such as: greater than the fifth threshold.
[0110] In one example, the fifth threshold is 500. Figure 4As shown, the processor consumed by process 1 and process 2 is processor 1, and the processor consumed by process 3 and process 4 is processor 2. When the second load parameter of process 1 is 100, the second load parameter of process 2 is 200, the second load parameter of process 3 is 100, and the second load parameter of process 4 is 150, then the sum of the second load parameters of process 1 and process 2, process 3 and process 4 is 550, which meets the fifth threshold, and the operating parameters of the target component are adjusted. When the second load parameter of process 1 is 50, the second load parameter of process 2 is 50, the second load parameter of process 3 is 100, and the second load parameter of process 2 is 150, then the sum of the second load parameters of process 1 and process 2, process 3 and process 4 is 350, which does not meet the fifth threshold, and process 3 processed by processor 2 is run on processor 1. The adjustment result is shown as follows: Figure 5 described.
[0111] Here, when the electronic device includes at least two processors, and the sum of the second load parameters (including the first load sub-parameter and the second load sub-parameter) of the application process to be identified that consumes different processors meets the load condition, the parameters of the target component are adjusted. When the load condition is not met, the parameters of the target component are not adjusted, but the target processor consumed by the thread processed by one of the processors is switched to another target processor, thereby balancing the processing resources of the electronic device and improving the processing capacity of the thread without adjusting the operating parameters.
[0112] In one embodiment, in S102, the operation mode of the electronic device is adjusted according to the determined control strategy, including adjustment mode C1 and / or adjustment mode C2, wherein:
[0113] Adjustment method C1, obtaining a second load parameter of the target application process, and adjusting the operating parameters of the target component in the electronic device according to the second load parameter;
[0114] Adjustment method C2: obtaining a third load parameter of the target processor, and adjusting the running parameters of the background application process in the electronic device according to the third load parameter.
[0115] In adjustment mode C1, the operating parameters of the target component in the electronic device are adjusted according to the second load parameter of the target application process, wherein one or more of the type of the adjusted target component, the type of the operating parameter, and the size of the operating parameter can be determined according to the size of the second load parameter.
[0116] In one example, when the second load parameter is within the first load range, the target component is determined to be a processor, when the second load parameter is within the second load range, the target component is determined to be a heat dissipation component, and when the second load parameter is within the third load range, the target component is determined to be a display. The first load range, the second load range, and the third load range are continuous in value.
[0117] In one example, the target component is a processor, and when the second load parameter is within the first load range, the operating parameter is determined to be the main frequency, and when the second load parameter is less than the first load range, the operating parameter is determined to be the voltage.
[0118] In one example, when the type of the target component and the type of the operating parameter are determined, the size of the operating parameter can be determined according to the second load parameter.
[0119] In adjustment mode C2, a third load parameter of the target processor is determined, wherein the third load parameter represents the operation time of the target processor per unit time. When multiple target processors are included, the sum of the third load parameters of each target processor may be determined.
[0120] Here, the operating parameters of the background application process are adjusted according to the third load parameter of a target processor or the sum of the third load parameters of multiple target processors to control the operation of the background application process. The background application process is an application process corresponding to the background application program. The operating parameters of the background application process may include: operating state, number of running threads, consumed processors, etc.
[0121] In one example, when the sum of the third load parameters of the target processor meets a sixth threshold, the running state of the background application process is adjusted to stop running.
[0122] In one embodiment, the adjustment method C2 includes: adjusting the processor core on which the background application process depends according to the total usage rate of the target processor.
[0123] The third load parameters of each target processor are added together to obtain the total utilization rate of the target processor. When the total utilization rate of the target processor meets the adjustment conditions, the processor core on which the background application process depends is adjusted. If the total utilization rate of the target processor does not meet the adjustment conditions, the processor core on which the background application process depends is not adjusted.
[0124] Here, the adjustment condition may be that the total usage rate of the target processor is less than the usage rate threshold, then it is determined that the usage of the current processor target processor has not reached the usage upper limit of the target processor, and the processor core on which the background application process depends can be adjusted to free up processor resources for the target application process and improve the processing efficiency of the target application process.
[0125] In one embodiment, the adjustment method of adjusting the processor core on which the background application process depends according to the total usage rate of the target processor includes: monitoring the total usage rate of the target processor, and if it is determined that the adjustment condition is met according to the total usage rate, adjusting the processor core on which the background application process depends through adjustment sub-mode one or adjustment sub-mode two, wherein:
[0126] Adjustment sub-mode 1: running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor;
[0127] Adjustment sub-mode two: obtaining second attribute information of the background application process, and running the target background application process in a second target processor core set of the target processor according to the second attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
[0128] In adjustment mode 1, all background application processes are run in the first target processor core set, thereby limiting the background application processes to the processor cores in the first target processor core set.
[0129] For example: the target processor is an 8-core processor: core 1, core 2 to core 8, and the first target processor core set includes: core 1, core 2, to core 4. Then all background application processes run in core 1, core 2, to core 4, so that the background application processes do not occupy processor cores outside the first target processor core set.
[0130] In the second adjustment method, the background non-system application process is searched according to the second attribute information of the background application program, and the background non-system application process is limited to the processor cores in the second target processor core set.
[0131] For example: the target processor is an 8-core processor: core 1, core 2 to core 8, the first target processor core set includes: core 1, core 2, to core 3, then the background non-system application process runs in core 1, core 2, and core 3, so that the background application process does not occupy the processor cores outside the second target processor core set.
[0132] In an embodiment of the present application, the processor cores on which all background application processes or background non-system application processes depend are limited to fixed processor cores, so that the background application processes or background non-system application processes will not occupy other processor cores outside the fixed processor cores, so that these processor cores can be fully used for processing the target application process, thereby improving the processing performance of the target application process.
[0133] Below, taking the load parameter as the load rate as an example, the control method provided in the embodiment of the present application is further described.
[0134] In order to provide users with more appropriate performance and power consumption solutions, many devices support multiple setting levels. Different setting levels provide different device performance levels and consume different power consumption. For example: device support levels: high performance mode, normal mode, and quiet mode. Among them, for device performance, the device performance of high performance mode, normal mode, and quiet mode decreases in turn. For power consumption, the power consumption required for high performance mode, normal mode, and quiet mode decreases in turn. When the APP running in the foreground has a higher demand for the CPU, the device runs in high performance mode. When the APP running in the foreground has a relatively small demand for CPU performance, the device runs in quiet mode. How to identify the foreground application as a Creator APP, an APP that consumes relatively high energy and has high demands on CPU computing performance, that is, a Creator APP, is a key technical point.
[0135] Currently, a whitelist approach is used to identify whether an app is a Creator app. For an app, its energy consumption and performance requirements change dynamically, so there is a possibility of misjudgment when judging in this way.
[0136] In the related art, there is also a method of judging by the CPU usage rate of the process corresponding to the APP. The CPU usage rate is generally the ratio of the CPU time or cycle time (Cycle Times) of the process per unit time to the total CPU time or CycleTimes of the device.
[0137] However, different CPUs have different logical processors, which directly affect the total CPU Times or Cycle Times per unit time, resulting in large differences in CPU usage for the same APP in devices with different CPUs. In addition, when an application has only one thread and the thread is running at full load (running at full capacity without any pause), the CPU usage is lower than the following situation: an application corresponds to multiple threads but the load rate is not very high (each thread does not need to run at full capacity and has more sleep waiting time). Therefore, the CPU usage cannot accurately reflect the program's demand for CPU performance.
[0138] In the present application, the following definitions are made:
[0139] Load rate, the CPU time consumed by a process or thread per unit time. The load rate does not depend on the CPU logical processor.
[0140] Process load rate, the CPU time consumed by the process per unit time.
[0141] Thread load rate, the CPU time consumed by the thread per unit time.
[0142] The load rate is the CPU time consumed per unit time, and the CPU utilization rate is the ratio of the CPU time consumed per unit time to the total CPU time. The utilization rate is closely related to the parallel capability provided by the CPU. For example, a CPU with 8 cores and 16 threads can provide 16 seconds of parallel computing in one second. For example, if the thread runs at full load, the thread load rate is 100, and the CPU utilization rate of the thread is 1 / 16 = 6.25%. For another example, if a fully loaded thread runs in a machine with 2 cores and 4 threads, the thread load rate is 100, and the CPU utilization rate of the thread is 1 / 4 = 25%.
[0143] The CPU usage rate is closely related to the specific CPU. The CPU usage rate of the same APP on different machines varies greatly. For example, in the actual test of an APP with only one thread running at full capacity, the CPU usage rate in a dual-core CPU is 22.5%, and the CPU usage rate in a 16-core CPU is 5.6%. In addition, the number of threads in the APP also affects the CPU usage rate. It is impossible to accurately judge whether the APP is running at full capacity and whether it needs faster or more CPU resources.
[0144] Taking the thread load rate as an example to measure the APP's demand for the CPU, when the thread load rate of the thread in the process is greater than the preset threshold, it means that the thread is running at full capacity and has a high demand for the CPU's execution speed. At this time, the CPU performance is improved to improve the thread's execution efficiency per unit time. Conversely, if the thread load rate is relatively low, it means that the thread is idle per unit time, and the high CPU speed does not significantly improve the APP's execution efficiency, so there is no need to improve the CPU's performance.
[0145] When the thread load rate and process load rate are combined to measure the current APP's demand for CPU resources per unit time, it can more accurately reflect the APP's demand for CPU performance. Here, the thread load rate can be used as the core condition and the process load rate can be used as an auxiliary condition.
[0146] In the embodiment of the present application, when the current Creator APP is running, if the CPU usage rate of the system is too high, the thread of the Creator APP may not be scheduled in time. Here, the programs that occupy high CPU resources in the background non-system processes are limited to run in a fixed CPU core, thereby reducing the CPU occupancy rate of these processes, ensuring that the foreground Creator APP has sufficient CPU resources, and guaranteeing the available CPU resources of the foreground Creator APP.
[0147] The control method provided in the embodiment of the present application is as follows: Figure 6 As shown, including:
[0148] S601, initialize the process list and thread list.
[0149] Control application startup, initialize the process list, and obtain all current processes and threads of each process in the system.
[0150] S602: Filter the process list.
[0151] Here, filter out the foreground process from the process list.
[0152] S603: Update the process list based on the creation or exit of the process.
[0153] The electronic device uses the event method of WMI600 to monitor the process creation and exit of the system, and updates the current process list according to the monitoring results.
[0154] S604: Update the thread list based on the creation or release of the thread.
[0155] The electronic device uses the event method of WMI600 to monitor the creation and release of system threads, and updates the current thread list according to the monitoring results.
[0156] S605: Calculate the load rate of the process.
[0157] When the process load rate is greater than a certain process threshold, execute S607, otherwise, continue to execute S605
[0158] S606: Calculate the thread load rate.
[0159] When the thread load rate is greater than a certain thread threshold, it is determined that the process is the target process, and S607 is executed; otherwise, S605 is continued to be executed.
[0160] In actual applications, S606 may be executed after the thread load rate is greater than a certain threshold.
[0161] S607: Determine whether the process is a target application process.
[0162] Here, whether the process is the target application process can be determined when the thread load rate is greater than a certain thread threshold. Whether the process is the target application process can be determined when the process load rate is greater than a certain process threshold. Whether the process is the target application process can also be determined when the thread load rate is greater than a certain thread threshold and the process load rate is greater than a certain process threshold.
[0163] Here, the application to which the target process belongs is Creator APP.
[0164] S608, monitoring the CPU usage of the background APP;
[0165] S609, limit the background apps with high CPU usage;
[0166] S610. Set the CPU to high performance mode.
[0167] In one example, the process is considered to be a target process when the following conditions exist:
[0168] When the load of one thread in the process is greater than the threshold threshold1=98, and the process load is greater than 198;
[0169] When the load of two threads in the process is greater than the threshold threshold2=88, and the process load is greater than 276;
[0170] When the load of three threads in the process is greater than the threshold threshold3=80, and the process load is greater than 340;
[0171] When the load of four threads in the process is greater than the threshold threshold4=70, and the process load is greater than 380;
[0172] When the load of five threads in the process is greater than the threshold threshold5=60, and the process load is greater than 400;
[0173] When the load of six threads in the process is greater than the threshold value threshold6=50, and the process load is greater than 400.
[0174] The control method provided in the embodiment of the present application has the following technical features:
[0175] 1. Combining thread load rate and process load rate to identify Creator APP, rather than CPU usage of thread or process, more accurately reflects the APP's demand for CPU capabilities.
[0176] 2. The Creator APP's demand for CPU resources can be obtained in real time and accurately.
[0177] 3. After identifying the Creator APP, adjust the operating mode of the electronic device, manage the CPU usage, improve system fluency, reduce the risk of high power consumption, and provide sufficient CPU resources.
[0178] Figure 7 Schematic diagram of the structure of a control device according to an embodiment of the present application. Figure 7 As shown, the apparatus 700 includes:
[0179] An acquisition module 701 is used to obtain a first load parameter of each thread of the application process to be identified, where the first load parameter is the time consumed by the thread in a target processor per unit time;
[0180] The adjustment module 702 is configured to determine that the application process to be identified is a target application process if the first load parameter satisfies the load condition, and adjust the operation mode of the electronic device according to the determined control strategy.
[0181] In some embodiments, the adjustment module 702 is further configured to:
[0182] If the first load parameter of the first thread of the to-be-identified application process meets the first threshold, determining that the to-be-identified application process is the target application process; or,
[0183] Calculate a second load parameter of the application process to be identified according to the first load parameter of each thread of the application process to be identified, and determine that the application process to be identified is a target application process if the second load parameter meets a second threshold; or,
[0184] If the first load parameter of the second thread of the application process to be identified meets the third threshold and the second load parameter of the application process to be identified meets the fourth threshold, the application process to be identified is determined to be the target application process.
[0185] In some embodiments, the adjustment module 702 is further configured to:
[0186] If it is determined that the application process to be identified is a target application process, adjusting the operating parameters of the target component in the electronic device; or,
[0187] The first attribute information of the target application process and / or the environmental parameters of the environment in which the electronic device is located are obtained, and the operating parameters of the target component in the electronic device are adjusted according to the first attribute information and / or the environmental parameters.
[0188] In some embodiments, the adjustment module 702 is further configured to:
[0189] Controlling an operating parameter of a target processor in an electronic device to be adjusted from a first operating parameter to a second operating parameter, wherein the processing capability of the target processor under the second operating parameter is stronger than the processing capability under the first operating parameter; or,
[0190] Control the target processor in the electronic device to adjust from the current operating parameters to the target operating parameters corresponding to the first attribute information and / or the environmental parameters, and / or control the target heat dissipation module in the electronic device to adjust from the current heat dissipation mode to the first target heat dissipation mode corresponding to the target and the target operating parameters, or the second target heat dissipation mode corresponding to the first attribute information and / or the environmental parameters.
[0191] In some embodiments, the adjustment module 702 is further configured to:
[0192] Determine the target processor on which the identified application process depends;
[0193] If the first application process to be identified is running on the first target processor and the second application process to be identified is running on the second target processor, obtaining a first sub-load parameter of the first application process to be identified and a second sub-load parameter of the second application process to be identified;
[0194] If the sum of the first sub-load parameter and the second sub-load parameter meets the load condition, the operating parameters of the target component in the electronic device are adjusted.
[0195] In some embodiments, the adjustment module 702 is further configured to:
[0196] If the sum of the first sub-load parameter and the second sub-load parameter does not meet the load condition, some threads of the first application process to be identified are run on the second target processor, or some threads of the second application process to be identified are run on the first target processor.
[0197] In some embodiments, the adjustment module 702 is further configured to:
[0198] Obtaining a second load parameter of the target application process, and adjusting an operating parameter of a target component in the electronic device according to the second load parameter; and / or,
[0199] A third load parameter of the target processor is obtained, and the operating parameters of the background application process in the electronic device are adjusted according to the third load parameter.
[0200] In some embodiments, the adjustment module 702 is further configured to:
[0201] The processor core on which the background application process depends for running is adjusted according to the total usage rate of the target processor.
[0202] In some embodiments, the adjustment module 702 is further configured to:
[0203] monitoring the total usage rate of the target processor, and if it is determined that the adjustment condition is met according to the total usage rate, running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor; or,
[0204] The second attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the second attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
[0205] It should be noted that the control device provided in the embodiment of the present application includes the various modules included, which can be implemented by a processor in an electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) or a field programmable gate array (FPGA, Field-Programmable Gate Array), etc.
[0206] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0207] An embodiment of the present application provides an electronic device, Figure 8 Schematic diagram of the structure of the electronic device according to the embodiment of the present application. Figure 8 As shown, the device 800 includes: a processor 801, at least one communication bus 802, at least one external communication interface 804 and a memory 805. The communication bus 802 is configured to realize the connection and communication between these components. The device 800 may also include a user interface 803, which may include an API interface, and the external communication interface 804 may include a standard wired interface and a wireless interface.
[0208] The processor 801 is configured to execute a computer program stored in the memory to implement the following steps:
[0209] Obtaining a first load parameter of each thread of the application process to be identified, where the first load parameter is the time consumed by the thread in a target processor per unit time;
[0210] If the first load parameter meets the load condition, the application process to be identified is determined to be a target application process, and the operation mode of the electronic device is adjusted according to the determined control strategy.
[0211] Accordingly, an embodiment of the present application further provides a storage medium, namely, a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned control method are implemented.
[0212] The description of the above electronic device, storage system and computer-readable storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the electronic device, storage system and computer-readable storage medium embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0213] In the embodiment of the present application, if the above-mentioned control method 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. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM, Read Only Memory), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0214] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0215] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0216] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0217] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0218] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0219] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0220] Alternatively, if the above-mentioned integrated unit of the present application 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. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0221] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A control method, the method comprising: Obtaining a first load parameter of each thread of the application process to be identified, where the first load parameter is the time consumed by the thread in a unit time for the corresponding target processor; If the first load parameter satisfies the load condition, determining the application process to be identified as a target application process, and adjusting the operation mode of the electronic device according to the determined control strategy; The step of adjusting the operation mode of the electronic device according to the determined control strategy includes: Obtaining first attribute information of the target application process and obtaining environmental parameters of the environment in which the electronic device is located, and adjusting operating parameters of a target component in the electronic device according to the first attribute information and the environmental parameters; the first attribute information is used to indicate that the target application process is a system process or a third-party application process; If the first load parameter satisfies a first condition, determining that the application process to be identified is a target application process includes: taking the sum of the first load parameters of the threads of the application process to be identified as the second load parameter of the application process to be identified; If each of the first load parameters of the application process to be identified meets a first threshold and the second load parameter meets a second threshold, the application process to be identified is determined to be a target application process; wherein the second threshold is related to the number of threads included in the application process to be identified.
2. The method according to claim 1, wherein: Adjusting the operating parameters of target components in electronic equipment, including: Controlling an operating parameter of a target processor in an electronic device to be adjusted from a first operating parameter to a second operating parameter, wherein the processing capability of the target processor under the second operating parameter is stronger than the processing capability under the first operating parameter; or, Control the target processor in the electronic device to adjust from the current operating parameters to the target operating parameters corresponding to the first attribute information and / or the environmental parameters, and / or control the target heat dissipation module in the electronic device to adjust from the current heat dissipation mode to the first target heat dissipation mode corresponding to the target operating parameters, or to the second target heat dissipation mode corresponding to the first attribute information and / or the environmental parameters.
3. The method according to any one of claims 1 to 2, wherein: Adjusting the operation mode of the electronic device according to the determined control strategy also includes: Determine the target processor on which the identified application process depends; If the first application process to be identified is running on the first target processor and the second application process to be identified is running on the second target processor, obtaining a first sub-load parameter of the first application process to be identified and a second sub-load parameter of the second application process to be identified; If the sum of the first sub-load parameter and the second sub-load parameter meets the load condition, the operating parameters of the target component in the electronic device are adjusted.
4. The method according to claim 3, wherein: If the sum of the first sub-load parameter and the second sub-load parameter does not meet the load condition, some threads of the first application process to be identified are run on the second target processor, or some threads of the second application process to be identified are run on the first target processor.
5. The method according to claim 1, wherein: Adjusting the operation mode of the electronic device according to the determined control strategy also includes: adjusting the operating parameters of the target component in the electronic device according to the second load parameter; and / or, A third load parameter of the target processor is obtained, and the operating parameters of the background application process in the electronic device are adjusted according to the third load parameter.
6. The method according to claim 5, wherein: Adjusting the operating parameters of the background application process in the electronic device according to the third load parameter includes: The processor core on which the background application process depends for running is adjusted according to the total usage rate of the target processor.
7. The method according to claim 6, wherein adjusting the processor core on which the background application process depends according to the total usage rate of the target processor comprises: monitoring the total usage rate of the target processor, and if it is determined according to the total usage rate that an adjustment condition is met, running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor; or, The second attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the second attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
8. A control device comprising: An acquisition module, used for obtaining a first load parameter of each thread of the application process to be identified, wherein the first load parameter is the time consumed by the thread in a unit time for the corresponding target processor; an adjustment module, configured to determine that the application process to be identified is a target application process if the first load parameter satisfies a load condition, and adjust an operation mode of the electronic device according to a determined control strategy; The adjustment module is also used to use the sum of the first load parameters of each thread of the application process to be identified as the second load parameter of the application process to be identified, and if each of the first load parameters of the application process to be identified meets a first threshold and the second load parameter meets a second threshold, determine that the application process to be identified is a target application process; wherein the second threshold is related to the number of threads included in the application process to be identified; obtain first attribute information of the target application process and obtain environmental parameters of the environment in which the electronic device is located, and adjust the operating parameters of the target component in the electronic device according to the first attribute information and the environmental parameters; the first attribute information is used to indicate that the target application process is a system process or a third-party application process.
Citation Information
Patent Citations
Load balancing method and device, cluster and many-core processor
CN105528330A
Resource management method and device, mobile terminal and computer readable storage medium
CN107526640A
Thread distribution method and device of application program, equipment and readable storage medium
CN110347508A
Method for configuring resources, electronic equipment and computer program product
CN110609743A
Load statistics method and device, storage medium and electronic equipment
CN110795323A
