Task processing method and device, electronic equipment and storage medium

By connecting the user equipment to the mobile data processing equipment and dynamically allocating computing resources according to the device parameters, the problem of high computing load of the user equipment is solved, and more efficient task processing and equipment performance protection is achieved.

CN119088529APending Publication Date: 2024-12-06GUANGDONG HONGQIN COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411280057.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When user equipment processes a large number of data resources, the computing load increases, resulting in equipment lag, hot and power consumption too fast. Especially for equipment with relatively ordinary hardware performance, it is difficult for the prior art to effectively reduce computing load and improve processing efficiency.

Method used

By connecting the user equipment with the mobile data processing device, determine whether to allocate computing resources based on the device parameters of the user equipment (such as CPU occupancy rate, device temperature and battery capacity), and dynamically adjust the allocation ratio, and use the mobile data processing device to process the user equipment. tasks, thereby reducing the computing load of user equipment and improving task processing efficiency.

Benefits of technology

It effectively reduces the computing load of user equipment, improves task processing efficiency, extends the service life of the equipment, and improves the resource allocation intelligence and real-time of mobile data processing equipment through intelligent and dynamic resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088529A_ABST
    Figure CN119088529A_ABST
Patent Text Reader

Abstract

The invention provides a task processing method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving equipment parameters from first user equipment; the equipment parameters comprise at least one of the following items: the CPU occupancy rate, the equipment temperature and the battery power; determining a first resource proportion allocated to the first user equipment according to the equipment parameters of the first user equipment; allocating resources corresponding to the first resource proportion to the first user equipment based on the first resource proportion; and processing the task from the first user equipment on the resource corresponding to the first resource proportion. The method is used for achieving the effects of reducing the operation load of task processing of the user equipment and improving the task processing efficiency of the user equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing, and in particular to a task processing method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of Internet technology, the amount of data resources received by user devices from the network side has increased, and the computing load of user devices has gradually increased.

[0003] Typically, user devices use a central processing unit (CPU) to process data resources obtained from the Internet. Taking game task processing as an example, the user device uses the CPU to process game data resources sent back by the game server, and after computing and processing the game data resources, it renders and displays the game screen.

[0004] When the computing load of a user device is heavy, the user device may become stuck, overheat, or lose power quickly, especially for user devices with average hardware performance. Summary of the invention

[0005] The embodiments of the present application provide a task processing method, device, electronic device and storage medium, which utilize the computing power resources of a mobile data processing device to process the tasks of a user device, so as to reduce the computing load of the task processing of the user device and improve the task processing efficiency of the user device. In addition, the computing power resource ratio allocated by the mobile data processing device to the user device is adjusted based on the device parameters of the user device, so as to improve the intelligence and dynamics of the computing power resource allocation of the mobile data processing device.

[0006] In a first aspect, an embodiment of the present application provides a task processing method, including:

[0007] Receiving device parameters from the first user device; the device parameters include at least one of the following: CPU occupancy rate, device temperature, and battery power;

[0008] Determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment;

[0009] Based on the first resource ratio, allocating resources corresponding to the first resource ratio to the first user equipment;

[0010] The task from the first user equipment is processed on the resources corresponding to the first resource ratio.

[0011] In a possible implementation manner, determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment includes:

[0012] If the device parameter of the first user equipment meets the first preset condition, determining a first resource ratio allocated to the first user equipment according to the device parameter of the first user equipment;

[0013] The first preset condition includes at least one of the following: the CPU occupancy rate of the first user device is greater than or equal to the CPU occupancy rate threshold; the device temperature of the first user device is greater than or equal to the device temperature threshold; the battery power of the first user device is less than the battery power threshold.

[0014] In a possible implementation manner, determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment includes:

[0015] Determining a weight value of the first user equipment according to a device parameter of the first user equipment;

[0016] Obtaining a weight value of a second user device connected to the mobile data processing device, where the second user device is other user devices other than the first user device, whose device parameters meet the first preset condition;

[0017] A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the weight value of the second user equipment.

[0018] In a possible implementation, determining the first resource ratio allocated to the first user equipment according to the weight value of the first user equipment and the weight value of the second user equipment includes:

[0019] summing the weight values ​​of all second user devices to obtain the sum of the weight values ​​of the second user devices;

[0020] Adding the sum of the weight values ​​of the second user equipment to the weight value of the first user equipment to obtain a total weight value;

[0021] A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the total weight value.

[0022] In a possible implementation manner, determining a weight value of the first user equipment according to a device parameter of the first user equipment includes:

[0023] Determine a weight value of the first user equipment according to a CPU occupancy rate, a device temperature, and a battery level of the first user equipment; or

[0024] A weight value of the first user equipment is determined according to a CPU occupancy rate, a device temperature, a battery level, and priority information of the first user equipment.

[0025] In a possible implementation, the method further includes:

[0026] If the first resource ratio is greater than the resource ratio upper limit, determining that the resource ratio allocated to the first user equipment is the resource ratio upper limit;

[0027] Based on the resource proportion upper limit, allocating resources corresponding to the resource proportion upper limit to the first user equipment;

[0028] The task from the first user equipment is processed on the resources corresponding to the upper limit of the resource ratio.

[0029] In a second aspect, an embodiment of the present application provides a task processing device, including:

[0030] A receiving module, configured to receive a device parameter from a first user device; the device parameter includes at least one of the following: CPU occupancy rate, device temperature, and battery power;

[0031] A processing module, configured to determine a first resource ratio allocated to the first user equipment according to a device parameter of the first user equipment;

[0032] The processing module is further configured to allocate resources corresponding to the first resource ratio to the first user equipment based on the first resource ratio;

[0033] The processing module is further used to process the task from the first user equipment on the resources corresponding to the first resource ratio.

[0034] In a possible implementation, determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment, the processing module is configured to:

[0035] If the device parameter of the first user equipment meets the first preset condition, determining a first resource ratio allocated to the first user equipment according to the device parameter of the first user equipment;

[0036] The first preset condition includes at least one of the following: the CPU occupancy rate of the first user device is greater than or equal to the CPU occupancy rate threshold; the device temperature of the first user device is greater than or equal to the device temperature threshold; the battery power of the first user device is less than the battery power threshold.

[0037] In a possible implementation, determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment, the processing module is configured to:

[0038] Determining a weight value of the first user equipment according to a device parameter of the first user equipment;

[0039] Obtaining a weight value of a second user device connected to the mobile data processing device, where the second user device is other user devices other than the first user device, whose device parameters meet the first preset condition;

[0040] A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the weight value of the second user equipment.

[0041] In a possible implementation manner, determining a first resource ratio allocated to the first user equipment according to a weight value of the first user equipment and a weight value of the second user equipment, the processing module is configured to:

[0042] summing the weight values ​​of all second user devices to obtain the sum of the weight values ​​of the second user devices;

[0043] Adding the sum of the weight values ​​of the second user equipment to the weight value of the first user equipment to obtain a total weight value;

[0044] A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the total weight value.

[0045] In a possible implementation manner, the weight value of the first user equipment is determined according to the device parameter of the first user equipment, and the processing module is configured to:

[0046] Determine a weight value of the first user equipment according to a CPU occupancy rate, a device temperature, and a battery level of the first user equipment; or

[0047] A weight value of the first user equipment is determined according to a CPU occupancy rate, a device temperature, a battery level, and priority information of the first user equipment.

[0048] In a possible implementation manner, the processing module is further configured to:

[0049] If the first resource ratio is greater than the resource ratio upper limit, determining that the resource ratio allocated to the first user equipment is the resource ratio upper limit;

[0050] Based on the resource proportion upper limit, allocating resources corresponding to the resource proportion upper limit to the first user equipment;

[0051] The task from the first user equipment is processed on the resources corresponding to the upper limit of the resource ratio.

[0052] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0053] Memory stores computer-executable instructions;

[0054] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0055] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0056] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0057] The task processing method, device, electronic device and storage medium provided in the embodiments of the present application connect the user device to the mobile data processing device, determine whether the mobile data processing device needs to allocate computing resources to the user device according to the device parameters of the user device, and determine what proportion of computing resources should be allocated to the user device. The mobile data processing device allocates all computing resources to the user device in proportion, and uses this part of computing resources to process the tasks of the user device, thereby reducing the computational load of the task processing of the user device and improving the task processing efficiency of the user device. In addition, the proportion of computing resources allocated by the mobile data processing device to the user device is adjusted based on the device parameters of the user device, thereby improving the intelligence and dynamism of the mobile data processing device in allocating computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0059] Figure 1 A schematic diagram of a scenario for the task processing method provided in this application;

[0060] Figure 2 Schematic diagram of the task processing method provided for this application Figure 1 ;

[0061] Figure 3 Schematic diagram of the task processing method provided for this application Figure 2 ;

[0062] Figure 4 Schematic diagram of the task processing method provided for this application Figure 3 ;

[0063] Figure 5 A schematic diagram of an exemplary priority setting interface;

[0064] Figure 6 A schematic diagram of the structure of the task processing device provided in this application;

[0065] Figure 7A schematic diagram of the structure of the electronic device provided in this application.

[0066] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0067] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0068] First, the terms involved in this application are explained:

[0069] Mobile data processing device: refers to a hardware device that can use computing resources for data storage, task processing and application running, and usually has networking capabilities. Allows user devices to access the network so that the user devices can use computing resources. In one possible example, the user device accesses the mobile data processing device through the local area network and uses the computing resources on the mobile data processing device. This allows the mobile data processing device to use its own computing resources to process the tasks of the user device.

[0070] Local Area Network (LAN): refers to a computer network that covers a relatively small geographical area, such as an office, a building or a campus, and is usually managed within an organization.

[0071] User equipment: refers to the smart terminals held by various users, which can be connected to mobile data processing devices through the network. For example, the smart terminals held by users include but are not limited to: smart phones, tablet computers, personal desktop computers, personal laptops, smart wearable devices, game consoles, and workstations.

[0072] With the rapid development of Internet technology, the amount of computing and processing of data resources has gradually increased. On the one hand, the richness of the information carried is improved; correspondingly, the computing load of the user device processor is gradually increasing, which also puts higher requirements on the hardware capabilities of the user device.

[0073] In some embodiments, the user device is configured with a processor and a network communication module, the processor and the network communication module are connected, connected to the Internet through the network communication module, and the data resources are downloaded to the local storage using the network protocol. The stored data resources are directly processed by the CPU of the user device. Among them, the processor can be a central processing unit CPU; the network protocol includes but is not limited to: Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP); local storage includes but is not limited to: storage in a memory, and storage in a processor cache (Cache).

[0074] In the scheme of the above embodiment, the CPU of the user device directly performs task processing, the CPU has a large computing load, the CPU's hardware performance cannot match the requirements of task processing, and the task processing efficiency is low, which may cause the user device to have one or more of the following adverse conditions: the device temperature of the user device increases, the power consumption of the user device increases, and the fluency of the user device decreases.

[0075] In some embodiments, a user device accesses a server in a data center via the Internet, and a cloud computing device is integrated on the server in the data center to use computing resources of the cloud computing device.

[0076] In the above-mentioned embodiments, if a user device wants to use the cloud computing resources of the cloud computing device integrated on the data center server, it needs to pay a usage fee to the data center, and the cost of using the cloud computing resources is high.

[0077] In response to the above problems, the present application provides a task processing method, device, electronic device and storage medium, which connects a user device to a mobile data processing device, and determines whether the mobile data processing device needs to allocate computing resources to the user device, and what proportion of computing resources should be allocated, based on the device parameters of the user device. The mobile data processing device allocates all computing resources to the user device in proportion, and uses this part of computing resources to process the tasks of the user device. It is used to reduce the computing load of the user device processor, improve the efficiency of user device task processing, and intelligently and dynamically allocate computing resources to the user device based on the device parameters sent by the user device in real time, thereby improving the intelligence and real-time performance of resource allocation of the mobile data processing device.

[0078] In order to facilitate the understanding of the technical solution provided by this application, first combine Figure 1 The application scenarios of the task processing method provided in the embodiments of the present application are introduced.

[0079] Figure 1 A schematic diagram of a scenario of the task processing method provided in this application. Figure 1 As shown, the specific application scenario of the present application includes: a mobile data processing device 101, and one or more user devices 102 connected to the mobile data processing device 101. The user devices may include but are not limited to Figure 1 Smartphones, laptop computers, desktop computers, gaming consoles, etc. are shown in the figure.

[0080] The user device accesses the mobile data processing device through the local area network and uses the computing resources of the mobile data processing device.

[0081] Furthermore, the scenario of the task processing method provided by the present application is explained in combination with the actual application process. In actual application, a user can run a large game on a smart phone, or test and run a large-scale program code on a personal laptop.

[0082] In one possible scenario, a user runs a large game on a smartphone. The gaming experience of a large game mainly includes whether the image quality is high-definition and whether the image is smooth. Whether the image quality is high-definition depends on factors such as resolution and pixel density; whether the image is smooth depends on factors such as frame rate (Frames Per Second, FPS). Generally, higher image quality or smoother image requires higher image processing and higher performance requirements for smartphones. Therefore, the processor of the smartphone has a large computing load, which may cause the smartphone to heat up and reduce the smoothness of the game. The user can connect the smartphone to a mobile data processing device through a wireless network (Wi-Fi network). The mobile data processing device can be configured with a graphics processing unit (GPU), which is used to process image data, including but not limited to image computing, three-dimensional image rendering, etc. Part or all of the image processing tasks are processed by the mobile data processing device and returned to the smartphone, which is directly presented by the smartphone, reducing the computing load of the smartphone processor.

[0083] In another possible scenario, users test and run large-scale program codes on personal laptops. Taking model training as an example, the amount of sample data involved is relatively large. Directly executing the model training code on a personal laptop may cause the CPU usage of the personal laptop to be too high, thereby affecting other system processes of the personal laptop. Users can connect their personal laptops to mobile data processing devices through a wireless network (Wi-Fi network). The mobile data processing device can configure a CPU. The CPU of the mobile data processing device can divide part of the computing power resources to configure a virtual machine, so that the mobile data processing device takes over the execution of the model training code through the configured virtual machine, thereby reducing the CPU usage of the personal laptop.

[0084] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0085] Figure 2 Schematic diagram of the task processing method provided for this application Figure 1 The execution subject of the task processing method provided in the embodiment of the present application is a mobile data processing device. Figure 2 As shown, the method includes:

[0086] Step 201: The mobile data processing device receives device parameters from a first user device.

[0087] The device parameters include at least one of the following: CPU occupancy rate, device temperature, and battery power.

[0088] Exemplarily, the user device can monitor the device parameters of the user device in real time. For example, for a personal desktop computer and a personal laptop computer, the CPU occupancy rate and battery power can be monitored through the kernel of the operating system, and the device temperature can be monitored through a temperature sensor configured on or near the processor. The mobile data processing device can allow one or more user devices to connect, and the user devices are connected through a Wi-Fi network. The user device sends the device parameters of the user device to the mobile data processing device through the Wi-Fi network. Accordingly, the mobile data processing device receives the device parameters sent by the user device.

[0089] Step 202: The mobile data processing device determines a first resource ratio allocated to the first user equipment according to a device parameter of the first user equipment.

[0090] A plurality of user devices can be connected to the mobile data processing device, and the device parameters of the user device can be judged by setting a first preset condition to determine whether the user device requires computing power resource allocation.

[0091] In an example, if a device parameter of the first user equipment meets a first preset condition, the mobile data processing device determines a first resource ratio allocated to the first user equipment according to the device parameter of the first user equipment.

[0092] Among them, the first preset condition includes at least one of the following: the CPU occupancy rate of the first user device is greater than or equal to the CPU occupancy rate threshold; the device temperature of the first user device is greater than or equal to the device temperature threshold; the battery power of the first user device is less than the battery power threshold.

[0093] Exemplarily, the mobile data processing device receives device parameters of the first user device, and parses and obtains the CPU occupancy rate of the first user device, the device temperature of the first user device, and the battery power of the first user device.

[0094] If the CPU occupancy rate of the first user device is greater than or equal to the CPU occupancy rate threshold, or the device temperature of the first user device is greater than or equal to the device temperature threshold, or the battery power of the first user device is less than the battery power threshold, it is determined that the first user device needs the mobile data processing device to allocate computing resources.

[0095] It should be noted that the specific values ​​of the CPU occupancy rate threshold, the device temperature threshold, and the battery power threshold are not limited in this embodiment and can be changed according to actual conditions. For example, the CPU occupancy rate threshold can be set to 50%, the device temperature threshold can be set to 40°C, and the battery power threshold can be set to 30%.

[0096] In actual applications, the execution entity for determining whether the first preset condition is met may be a user device or a mobile data processing device.

[0097] In one example, when a user device is connected to a mobile data processing device, the processor of the user device determines whether the device parameters of the user device meet a first preset condition. If the processor of the user device determines that the device parameters of the user device meet the first preset condition, the user device sends a computing power allocation request to the mobile data processing device. The mobile data processing device responds to the computing power allocation request and performs calculation of the computing power resource allocation ratio. Specifically, the user device periodically sends the device parameters of the user device to the mobile data processing device so that the mobile data processing device dynamically adjusts the allocation ratio of the computing power resources allocated to the user device according to the device parameters of the user device. The mobile data processing device allocates computing power resources to the user device according to the allocation ratio to process the tasks sent by the user device.

[0098] In another example, when the user device is connected to the mobile data processing device, the user device sends the device parameters of the user device to the mobile data processing device in real time. The mobile data processing device receives the device parameters of the user device and determines whether the device parameters meet the first preset condition. If the mobile data processing device determines that the device parameters meet the first preset condition, the calculation of the allocation ratio of the computing power resources is performed. The mobile data processing device allocates computing power resources to the user device according to the allocation ratio to process the task sent by the user device.

[0099] In the above example, by determining whether the user device needs the mobile data processing device to allocate computing resources through the first preset condition, the performance and hardware status of the user device can be monitored dynamically in real time. When the hardware status of the user device indicates that the current computing load of the user device is large, the mobile data processing device determines that the user device needs to be allocated computing resources. The intelligence and real-time performance of the mobile data processing device in allocating computing resources are improved.

[0100] After determining through the first preset condition that computing power resources need to be allocated to the current first user device, the proportion of computing power resources that the mobile data processing device should allocate to the first user device can be determined based on the device parameters of the current first user device.

[0101] In one example, the mobile data processing device determines a weight value of the first user equipment according to a device parameter of the first user equipment.

[0102] The weight value can be calculated based on the device parameters of the first user device. When the weight value is larger, it means that the performance and hardware status of the current first user device are worse, that is, the computing load is greater. Correspondingly, the specific calculation method of the weight value can refer to the description of the embodiment shown below.

[0103] The mobile data processing device obtains a weight value of a second user device connected to the mobile data processing device, where the second user device is other user equipment except the first user equipment, whose device parameters meet the first preset condition.

[0104] In actual applications, there may be multiple user devices connected to the mobile data processing device. It is understandable that in addition to the first user device, there may be one or more other user devices that also meet the first preset condition, and the mobile data processing device also needs to allocate computing resources to these one or more other user devices that meet the first preset condition.

[0105] Therefore, the mobile data processing device also needs to calculate weight values ​​for these other user equipments that meet the first preset condition.

[0106] The mobile data processing device determines a first resource ratio allocated to the first user equipment according to a weight value of the first user equipment and a weight value of the second user equipment.

[0107] Based on the above example, it can be seen that the larger the weight value, the worse the performance and hardware status of the current first user device, that is, the greater the computing load. Accordingly, the mobile data processing device should allocate more computing resources to the first user device, that is, the larger the proportion of the first resource allocated to the first user device.

[0108] The first resource ratio may be calculated by the ratio of the weight value of the first user equipment to the sum of the weight values ​​of all user equipments.

[0109] In the above example, the weight value of the first user device and the weight value of the second user device are obtained by calculation, and then the first resource ratio allocated to the first user device is determined based on the weight value of the first user device and the weight value of the second user device. It is possible to dynamically determine the ratio of computing power resources to be allocated in real time based on the performance and hardware status of the first user device, thereby improving the intelligence of resource allocation of the mobile data processing device.

[0110] Step 203: The mobile data processing device allocates resources corresponding to the first resource ratio to the first user equipment based on the first resource ratio.

[0111] Step 204: The mobile data processing device processes the task from the first user equipment on the resources corresponding to the first resource ratio.

[0112] The mobile data processing device allocates computing resources to the first user device according to the first resource ratio. On the mobile data processing device, the computing resources corresponding to the first resource ratio are used to process tasks from the first user device. The tasks of the first user device include but are not limited to: data calculation, image processing, code testing, and code running.

[0113] After the mobile data processing device completes the task processing of the first user device, it obtains the task result. The task result is returned to the first user device via the Wi-Fi network so that the first user device receives the task result. Optionally, for the image processing task, after the first user device receives the task result, the display device configured on the first user device displays the task result.

[0114] The task processing method provided in the embodiment of the present application connects the user device to the mobile data processing device via a Wi-Fi network. The mobile data processing device determines whether computing resources need to be allocated to the user device and what proportion of computing resources should be allocated based on the device parameters of the user device. All computing resources are allocated to the user device in proportion, and this part of computing resources is used to process the tasks of the user device. This can reduce the computing load of the user device processor and improve the efficiency of task processing of the user device. Furthermore, based on the device parameters sent by the user device, the weight value of the user device is determined in real time and dynamically, and the computing resource allocation ratio is determined based on the weight value, thereby improving the real-time and intelligent nature of the mobile data processing device in allocating computing resources.

[0115] Based on the above embodiments, it can be known that the mobile data processing device can calculate the weight values ​​of all user devices that meet the first preset condition, and determine the proportion of computing resources allocated by the mobile data processing device to the first user device based on the weight values. This embodiment further explains step 202 in the above embodiments, that is, how to determine the weight value through device parameters, and how to determine the first resource ratio through the weight value.

[0116] Figure 3 Schematic diagram of the task processing method provided for this application Figure 2 ,like Figure 3 As shown, as an example, the method may determine the weight value of the first user equipment through the following steps:

[0117] Step 301: The mobile data processing device determines a weight value of the first user equipment according to the CPU occupancy rate, device temperature and battery power of the first user equipment.

[0118] Exemplarily, the weight value of the first user equipment can be calculated using the following formula (1).

[0119] V1 user =R userCPU ×70%+(T user / T usermax )×20%-R userbattery ×

[0120] 10% (1)

[0121] Where V1 user represents the weight value of the first user equipment, R userCPU represents the CPU occupancy rate of the first user equipment, T user represents the device temperature of the first user device, T usermax represents the upper temperature limit of the first user device, R userbattery represents the battery power of the first user device. Wherein, the upper limit of the device temperature of the first user device is T usermax It may change according to different user device types. For example, for smartphones, the upper temperature limit of the device can be set to 50°C; for personal laptops, the upper temperature limit of the device can be set to 60°C; for game consoles, the upper temperature limit of the device can be set to 60°C.

[0122] It should be noted that in actual calculation, the battery power of the first user device is substituted into R using the remaining battery power percentage of the first user device. userbattery calculate.

[0123] Step 302: The mobile data processing device obtains a weight value of the second user equipment.

[0124] Exemplarily, the mobile data processing device determines whether the device parameters of other user devices except the first user device meet the first preset condition. The other user devices except the first user device whose device parameters meet the first preset condition are called second user devices. And the weight value of each second user device is calculated according to the device parameters of each second user device.

[0125] Taking the i-th second user equipment connected to the mobile data processing device as an example, the weight value of the i-th second user equipment can be calculated by the following formula (2), where i is a positive integer.

[0126]

[0127] In the formula, represents the weight value of the i-th second user equipment, represents the CPU occupancy rate of the i-th second user equipment, represents the device temperature of the i-th second user device, represents the upper limit of the device temperature of the i-th second user device, Represents the battery level of the i-th second user equipment.

[0128] It should be noted that, in actual calculation, the battery power of the i-th second user device is substituted by the remaining battery power percentage of the i-th second user device. calculate.

[0129] By traversing all second user equipments, a weight value corresponding to each second user equipment can be obtained.

[0130] Step 303: The mobile data processing device determines a first resource ratio allocated to the first user equipment according to the weight value of the first user equipment and the weight value of the second user equipment.

[0131] Exemplarily, the first resource ratio allocated to the first user equipment may be determined by the following steps:

[0132] Step 3031: sum the weight values ​​of all second user devices to obtain the sum of the weight values ​​of the second user devices.

[0133] First, the weight values ​​corresponding to all second user devices are summed to obtain the sum of the weight values ​​of all second user devices. Specifically, if there are a total of N second user devices, the sum of the weight values ​​of all second user devices can be calculated by the following formula (3), where N is a positive integer greater than 1.

[0134]

[0135] Where V1other represents the sum of weight values ​​of all second user equipments, represents the weight value of the i-th second user equipment.

[0136] Step 3032: Add the sum of the weight values ​​of the second user equipment to the weight value of the first user equipment to obtain a total weight value.

[0137] Step 3033: Determine a first resource ratio allocated to the first user equipment according to the weight value of the first user equipment and the total weight value.

[0138] The first resource ratio allocated to the first user equipment is determined based on the sum of the weight values ​​of all the second user equipments and the weight value of the first user equipment. Specifically, the first resource ratio can be calculated by the following formula (4).

[0139]

[0140] Where R1 source Indicates the first resource ratio allocated to the first user equipment, V1 user +V1 other Represents the total weight value. It can be understood that the first resource ratio is calculated based on the ratio of the weight value of the first user device to the sum of the weight values ​​of all user devices that meet the first preset condition. It can also be understood that when the weight value of the first user device is higher, the first resource ratio allocated to the first user device by the mobile data processing device is higher.

[0141] In the above embodiment, the weight value of the first user device is determined based on the device parameters of the first user device, and the sum of the weight values ​​of all the second user devices is determined based on the device parameters of the second user device, and the first resource ratio allocated to the first user device is determined based on the weight value of the first user device and the sum of the weight values ​​of all the second user devices. On the one hand, the allocated resource ratio is determined according to the performance and hardware status of the user device, which improves the rationality of the mobile data processing device in allocating computing resources; on the other hand, since the user device will send the device parameters to the mobile data processing device in real time, the mobile data processing device can determine the allocated resource ratio in real time according to the real-time device parameters of the user device, which improves the real-time performance of the mobile data processing device in allocating resource ratios, and further improves the intelligence and rationality of the mobile data processing device in allocating computing resources.

[0142] In the case where multiple user devices are connected to the mobile data processing device, the proportion of allocated computing resources can also be modified according to the priority of the user device. Based on the above embodiment, the priority information of the user device can be introduced.

[0143] Figure 4Schematic diagram of the task processing method provided for this application Figure 3 ,like Figure 4 As shown, the method includes:

[0144] Step 401: The mobile data processing device receives device parameters from a first user device.

[0145] The specific description of step 401 can refer to the description of step 201 in the above embodiment, which will not be repeated here.

[0146] Step 402: If the device parameters of the first user device meet the first preset condition, the mobile data processing device determines the weight value of the first user device according to the CPU occupancy rate, device temperature, battery power of the first user device and priority information of the first user device.

[0147] The priority information of the user device can be set in a variety of ways. The ways of setting the priority information include but are not limited to: the mobile data processing device pre-stores the correspondence between the identification information of the user device and the priority information; the mobile data processing device intelligently sets the priority information based on various indicators in the device information; the user holding the mobile data processing device manually sets the priority information.

[0148] In one example, the mobile data processing device is configured with a database, and the database pre-stores the correspondence between the identification information of the user equipment and the priority information. Accordingly, when the first user equipment is connected to the mobile data processing device, the device parameters sent to the mobile data processing device may also include the identification information of the first user equipment. The mobile data processing device determines the priority information corresponding to the first user equipment from the database according to the identification information of the first user equipment.

[0149] For example, the identification information of device A corresponds to the first priority, the identification information of device B corresponds to the second priority, and the identification information of device C corresponds to the third priority.

[0150] In another example, the mobile data processing device sets priority information through various indicators in the device information. Based on the foregoing embodiment, it can be known that the device parameters of the first user device include: CPU occupancy, device temperature, and battery power. Correspondingly, the first preset condition is that the CPU occupancy of the first user device is greater than or equal to the CPU occupancy threshold, or the device temperature of the first user device is greater than or equal to the device temperature threshold, or the battery power of the first user device is less than the battery power threshold. In actual applications, one or more judgment logics may be met. Therefore, the priority information can be set based on the number of items that the judgment logic meets.

[0151] For example, in the device parameters of device A, if the CPU usage is greater than the CPU usage threshold, the device temperature is greater than the device temperature threshold, and the battery power is less than the battery power threshold, then device A is set to the first priority; in the device parameters of device B, if the CPU usage is greater than the CPU usage threshold, the device temperature is greater than the device temperature threshold, and the battery power is greater than the battery power threshold, then device B is set to the second priority; in the device parameters of device C, if the CPU usage is greater than the CPU usage threshold, the device temperature is less than the device temperature threshold, and the battery power is greater than the battery power threshold, then device C is set to the third priority.

[0152] In another example, the priority information is manually set by a user holding a mobile data processing device. The mobile data processing device is equipped with a display device, and a priority setting interface is displayed on the display device of the mobile data processing device. Figure 5 FIG. 1 is a schematic diagram of an exemplary priority setting interface. Figure 5 As shown in [a] of FIG. 1 , on the priority setting interface, all user devices connected to the mobile data processing device, device A to device D, are displayed; and the current priority information corresponding to each user device is displayed respectively. If the user wants to change the priority information of device B, click the priority information change button corresponding to device B. In response to the operation of clicking the priority information change button, the priority information list corresponding to device B is displayed, and the priority setting interface switches to the following example: Figure 5 If the user wants to change the priority information of device B from the second priority to the first priority, click the "first priority" option in the priority information list corresponding to device B. In response to the operation of clicking the "first priority" option in the priority information list, the priority setting interface switches to the following interface: Figure 5 In the interface shown in [c], the priority information of device B is changed to the first priority.

[0153] In the above examples, the priority of the user device is determined according to different methods, so that the holder of the mobile data processing device can allocate resources to the user device, which improves the freedom of the holder of the mobile data processing device to control resource allocation and indirectly improves the intelligence of the mobile data processing device in allocating computing resources.

[0154] After the priority information of the first user equipment is determined, a weight value of the first user equipment may be determined according to the priority information.

[0155] In one example, the priority information of the first user equipment includes a priority coefficient.

[0156] A weight value of the first user equipment is determined based on a device parameter of the first user equipment and a priority coefficient of the first user equipment.

[0157] Exemplarily, the weight value of the first user equipment can be calculated using the following formula (5).

[0158] V1 user =(R userCPU ×70%+(T user / T usermax )×20%-R userbattery ×10%)

[0159] ×priority user (5)

[0161] Where V1 user Indicates the weight value of the first user equipment, priority user Indicates the priority coefficient of the first user equipment.

[0162] It should be noted that, in addition to the priority coefficient, the priority information also includes the correspondence between the priority and the priority coefficient, that is, different priorities correspond to different priority coefficients. For example, the priority coefficient of the first priority may be 1.5, the priority coefficient of the second priority may be 1.2, and the priority coefficient of the third priority may be 0.7.

[0163] In practical applications, the specific value of the priority coefficient is not limited, and can be set according to the principle that the higher the priority, the larger the priority coefficient.

[0164] Taking the priority information of the first user equipment as the first priority as an example, the priority coefficient corresponding to the first priority is 1.5. The weight value of the first user equipment obtained by calculation is multiplied by the priority coefficient. It can be understood that the weight value of the first user equipment should be higher than the weight value of the second user equipment.

[0165] Step 403: The mobile data processing device obtains the weight value of the second user equipment.

[0166] The second user equipment is other user equipment except the first user equipment, and the device parameters of the other user equipment meet the first preset condition.

[0167] Exemplarily, the priority information of the second user equipment includes a priority coefficient, and a weight value of the second user equipment is determined based on a device parameter of the second user equipment and the priority coefficient of the second user equipment.

[0168] In one example, taking the i-th second user equipment connected to the mobile data processing device as an example, the weight value of the i-th second user equipment can be calculated by the following formula (6), where i is a positive integer.

[0169]

[0170] In the formula, represents the weight value of the i-th second user equipment, represents the priority coefficient of the i-th second user equipment.

[0171] By traversing all second user equipments, a weight value corresponding to each second user equipment can be obtained.

[0172] It should be noted that the priority coefficients in formula (5) and formula (6) are determined based on the user's priority information on the basis of the above embodiment. In this embodiment, if the user equipment is not set with priority information, the priority coefficients in formula (5) and formula (6) can be set to 1.

[0173] Step 404: The mobile data processing device determines a first resource ratio allocated to the first user equipment according to the weight value of the first user equipment and the weight value of the second user equipment.

[0174] The specific description of step 404 can refer to the description of step 303 in the above embodiment, which will not be repeated here.

[0175] After the first resource ratio is calculated, due to the existence of the priority coefficient, the first resource ratio of some higher priority user devices may be too high. In order to prevent higher priority user devices from taking up too much computing power resources, it is necessary to set a boundary limit on the upper limit of resource ratio allocation.

[0176] In one example, the resource ratio allocated to the first user equipment is determined by comparing the first resource ratio with an upper limit of the resource ratio.

[0177] Step 405: If the first resource ratio is greater than the resource ratio upper limit, determine that the resource ratio allocated to the first user equipment is the resource ratio upper limit.

[0178] The upper limit of the resource ratio may be associated with the priority coefficient in the priority information, or may be preset by the mobile data processing device. For example, the upper limit of the resource ratio is associated with the priority coefficient in the priority information.

[0179] It can be understood that the priority information includes the correspondence between the priority and the priority coefficient, and the correspondence between the priority coefficient and the corresponding upper limit of the resource ratio. That is, different priorities correspond to different priority coefficients, and different priority coefficients correspond to different upper limits of the resource ratio. For example, the priority coefficient of the first priority can be 1.5, and the corresponding upper limit of the resource ratio is 50%; the priority coefficient of the second priority is 1.2, and the corresponding upper limit of the resource ratio is 30%; the priority coefficient of the third priority is 0.7, and the corresponding upper limit of the resource ratio is 10%.

[0180] Taking the priority information of the first user equipment as the first priority as an example, the priority coefficient corresponding to the first priority is 1.5, and the corresponding upper limit of the resource ratio is 50%.

[0181] For example, the current device parameters of device A, which is at the first priority level, are: CPU usage is 80%, device temperature is 50.3°C, and battery power is 28%. For device A, the upper limit of the device temperature is 55°C. First, it is determined that device A meets the first preset condition. By using formula (5), it can be calculated that the weight value of device A is 1.068.

[0182] Devices B and C are also connected to the same mobile data processing device. Device B is at the second priority and its current device parameters are: CPU occupancy is 35%, device temperature is 48°C, and battery power is 50%. For device B, the upper limit of the device temperature is 55°C. First, it is determined that device B meets the first preset condition. By using formula (5), it can be calculated that the weight value of device B is 0.378.

[0183] The current device parameters of device C, which is at the third priority level, are: CPU usage is 30%, device temperature is 38°C, and battery power is 10%. For device B, the upper limit of the device temperature is 50°C. First, it is determined that device C meets the first preset condition. By using formula (5), it can be calculated that the weight value of device C is 0.246.

[0184] According to formula (3), it can be calculated that the sum of the weight values ​​of all second devices is 0.624. According to formula (4), it can be calculated that the proportion of the first resource allocated to device A is 63.12%.

[0185] The upper limit of the resource ratio corresponding to the device A at the first priority is 50%. If the first resource ratio is greater than the upper limit of the resource ratio, the upper limit of the resource ratio corresponding to the device A is determined as the resource ratio allocated by the mobile data processing device to the device A. That is, the resource ratio allocated by the mobile data processing device to the device A is 50%.

[0186] Step 406: The mobile data processing device allocates resources corresponding to the resource proportion upper limit to the first user equipment based on the resource proportion upper limit.

[0187] Step 407: The mobile data processing device processes the task from the first user equipment on the resources corresponding to the upper limit of the resource ratio.

[0188] The mobile data processing device allocates computing resources to the first user device according to the upper limit of the resource ratio. On the mobile data processing device, the computing resources corresponding to the first resource ratio are used to process tasks from the first user device.

[0189] Correspondingly, it can be understood that if the calculated first resource ratio of device A does not exceed the upper limit of the resource ratio corresponding to device A, the calculated first resource ratio of device A is used as the resource ratio allocated to device A by the mobile data processing device.

[0190] For example, if the calculated first resource ratio allocated to device A is 49%, the upper limit of the resource ratio corresponding to device A at the first priority is 50%, and the first resource ratio is less than the upper limit of the resource ratio, then the first resource ratio of device A is determined as the resource ratio allocated by the mobile data processing device to device A. That is, the resource ratio allocated by the mobile data processing device to device A is 49%.

[0191] The operations to be performed can be found in the description of step 203 and step 204 in the above embodiment, which will not be repeated here.

[0192] The task processing method provided in the embodiment of the present application introduces priority information on the basis of the above-mentioned embodiment. By assigning different priority information to the user equipment connected to the mobile data processing device, the weight value of the user equipment is determined based on the device parameters and priority coefficient of the user equipment, and the first resource ratio of the user equipment is calculated; then, according to the upper limit of the resource ratio and the second resource ratio of the user equipment, the resource ratio allocated by the mobile data processing device to the user equipment is determined; all computing power resources are allocated to the user equipment in proportion, and this part of the computing power resources is applied to process the tasks of the user equipment. On the one hand, the device parameters and priority information of the user equipment are considered in real time and dynamically, the resource ratio of the user equipment is adjusted, and the rationality and intelligence of the allocation of computing power resources by the mobile data processing device are improved; on the other hand, considering the multiple user equipment of the mobile data processing device, the maximum computing power resource ratio allocated to the user equipment is limited by the upper limit of the resource ratio, further improving the rationality of the allocation of computing power resources of the mobile data processing device, while preventing all computing power resources from being divided by the user equipment, and ensuring the smooth operation of the mobile data processing device itself.

[0193] The present application provides a task processing device, which can divide the task processing device into functional modules according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation. The following is an example of dividing each functional module according to each function.

[0194] Figure 6 A schematic diagram of the structure of the task processing device provided in this application, such as Figure 6As shown, the task processing device 60 provided in this embodiment includes:

[0195] The receiving module 601 is used to receive device parameters from the first user equipment; the device parameters include at least one of the following: CPU occupancy rate, device temperature, and battery power.

[0196] The processing module 602 is configured to determine a first resource ratio allocated to the first user equipment according to a device parameter of the first user equipment.

[0197] The processing module 602 is further configured to allocate resources corresponding to the first resource ratio to the first user equipment based on the first resource ratio.

[0198] The processing module 602 is further configured to process a task from the first user equipment on the resources corresponding to the first resource ratio.

[0199] In a possible implementation manner, determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment, the processing module 602 is configured to:

[0200] If the device parameter of the first user equipment meets the first preset condition, determining a first resource ratio allocated to the first user equipment according to the device parameter of the first user equipment;

[0201] The first preset condition includes at least one of the following: the CPU occupancy rate of the first user device is greater than or equal to the CPU occupancy rate threshold; the device temperature of the first user device is greater than or equal to the device temperature threshold; the battery power of the first user device is less than the battery power threshold.

[0202] In a possible implementation manner, determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment, the processing module 602 is configured to:

[0203] Determining a weight value of the first user equipment according to a device parameter of the first user equipment;

[0204] Obtaining a weight value of a second user device connected to the mobile data processing device, where the second user device is other user devices other than the first user device, whose device parameters meet the first preset condition;

[0205] A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the weight value of the second user equipment.

[0206] In a possible implementation manner, the processing module 602 is used to determine the first resource ratio allocated to the first user equipment according to the weight value of the first user equipment and the weight value of the second user equipment:

[0207] summing the weight values ​​of all second user devices to obtain the sum of the weight values ​​of the second user devices;

[0208] Adding the sum of the weight values ​​of the second user equipment to the weight value of the first user equipment to obtain a total weight value;

[0209] A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the total weight value.

[0210] In a possible implementation manner, the weight value of the first user equipment is determined according to the device parameter of the first user equipment, and the processing module 602 is configured to:

[0211] Determine a weight value of the first user equipment according to a CPU occupancy rate, a device temperature, and a battery level of the first user equipment; or

[0212] A weight value of the first user equipment is determined according to a CPU occupancy rate, a device temperature, a battery level, and priority information of the first user equipment.

[0213] In a possible implementation, the processing module 602 is further configured to:

[0214] If the first resource ratio is greater than the resource ratio upper limit, determining that the resource ratio allocated to the first user equipment is the resource ratio upper limit;

[0215] Based on the resource proportion upper limit, allocating resources corresponding to the resource proportion upper limit to the first user equipment;

[0216] The task from the first user equipment is processed on the resources corresponding to the upper limit of the resource ratio.

[0217] It should be noted that the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment.

[0218] The task processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0219] The present application provides an electronic device, Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the electronic device 70 further includes a communication component 703. The processor 701, the memory 702 and the communication component 703 are connected via a bus 704.

[0220] In a specific implementation process, at least one processor 701 executes the computer-executable instructions stored in the memory 702, so that at least one processor 701 executes the above method.

[0221] The specific implementation process of the processor 701 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0222] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0223] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0224] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0225] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0226] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0227] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0228] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0229] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0230] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0231] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application, are not limited to the precise structures described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A task processing method, characterized in that: Applied to a mobile data processing device, the method comprises: Receiving device parameters from a first user device; the device parameters include at least one of the following: CPU occupancy rate, device temperature, and battery power; Determining, according to a device parameter of the first user equipment, a first resource ratio allocated to the first user equipment; Based on the first resource ratio, allocating resources corresponding to the first resource ratio to the first user equipment; The task from the first user equipment is processed on resources corresponding to the first resource ratio.

2. The method according to claim 1, characterized in that The determining, according to the device parameter of the first user equipment, a first resource ratio allocated to the first user equipment includes: If the device parameter of the first user equipment meets the first preset condition, determining a first resource ratio allocated to the first user equipment according to the device parameter of the first user equipment; The first preset condition includes at least one of the following: the CPU occupancy rate of the first user device is greater than or equal to a CPU occupancy rate threshold; the device temperature of the first user device is greater than or equal to a device temperature threshold; the battery power of the first user device is less than a battery power threshold.

3. The method according to claim 1 or 2, characterized in that: The determining, according to the device parameter of the first user equipment, a first resource ratio allocated to the first user equipment includes: Determining a weight value of the first user equipment according to a device parameter of the first user equipment; Acquire a weight value of a second user equipment connected to the mobile data processing device, where the second user equipment is other user equipment except the first user equipment, and whose equipment parameters meet a first preset condition; A first resource ratio allocated to the first user equipment is determined according to the weight value of the first user equipment and the weight value of the second user equipment.

4. The method according to claim 3, characterized in that The determining, according to the weight value of the first user equipment and the weight value of the second user equipment, a first resource ratio allocated to the first user equipment includes: summing the weight values ​​of all second user devices to obtain the sum of the weight values ​​of the second user devices; Adding the sum of the weight values ​​of the second user equipment and the weight value of the first user equipment to obtain a total weight value; Determine a first resource ratio allocated to the first user equipment according to the weight value of the first user equipment and the total weight value.

5. The method according to claim 3, characterized in that: The determining, according to the device parameter of the first user equipment, a weight value of the first user equipment includes: determining a weight value of the first user equipment according to a CPU occupancy rate, a device temperature, and a battery level of the first user equipment; or A weight value of the first user equipment is determined according to a CPU occupancy rate, a device temperature, a battery level, and priority information of the first user equipment.

6. The method according to claim 1, characterized in that The method further comprises: If the first resource ratio is greater than the resource ratio upper limit, determining that the resource ratio allocated to the first user equipment is the resource ratio upper limit; Based on the resource proportion upper limit, allocating resources corresponding to the resource proportion upper limit to the first user equipment; The task from the first user equipment is processed on the resources corresponding to the upper limit of the resource ratio.

7. A task processing device, characterized in that: include: A receiving module, configured to receive a device parameter from a first user device; the device parameter includes at least one of the following: CPU occupancy rate, device temperature, and battery power; a processing module, configured to determine a first resource ratio allocated to the first user equipment according to a device parameter of the first user equipment; The processing module is further configured to allocate resources corresponding to the first resource ratio to the first user equipment based on the first resource ratio; The processing module is further configured to process tasks from the first user equipment on resources corresponding to the first resource ratio.

8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.