Task processing method and task processing device
Through the LED display control equipment, the task requirements are evaluated and the computing power resource nodes are allocated to calculate large computing power tasks, which solves the problem of response performance degradation caused by cloud network failures and achieves efficient task processing.
Patent Information
- Application Number
- CN202010986316.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-18
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2040-09-18
AI Technical Summary
When the LED display control device fails to effectively calculate the large computing power tasks when the network connection with the cloud server is broken, it leads to a degradation of response performance.
The LED display control device evaluates the task's final power demand value, filters out redundant computing resource nodes, allocates computing power subtasks and collaborates to generate task processing results.
It improves the response performance of LED display control devices in the case of network failures and reduces the cost of large computing power tasks in cloud computing.
Smart Images

Figure CN114219189B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distributed computing and task processing, and in particular, to a task processing method and a task processing device. Background Art
[0002] With the development of the display industry, the screen size of display screens is getting larger and larger, and the requirement for the computing and processing power (also known as computing power) of LED display control devices connected to the display screens is also getting higher and higher.
[0003] In the prior art, after receiving a high-computing-power task, the LED display control device needs to rely on its own hardware computing power to consume a large amount of computing time to obtain the task result. Therefore, after receiving a high-computing-power task, the LED display control device sends the high-computing-power task to the cloud server, and the cloud server calculates the high-computing-power task and sends the obtained task result back to the LED display control device. However, when the network connection between the LED display control device and the cloud server fails or the current network of the LED display control device is an independent local area network, the cloud cannot provide computing power to calculate the high-computing-power task received by the LED display control device, resulting in too long time spent by the LED display control device in calculating the high-computing-power task, and at the same time, the response performance of the LED display control device will also become poor. Summary of the Invention
[0004] Therefore, in order to overcome the defects and deficiencies of the prior art, embodiments of the present invention propose a task processing method and a task processing device.
[0005] On the one hand, a task processing method proposed by an embodiment of the present invention is applicable to an LED display control device registered with at least one computing power resource node, and includes: receiving an input task; evaluating the total computing power requirement value of the input task; determining whether the input task is a high-computing-power task based on the total computing power requirement value and the redundant computing power value of the LED display control device; in response to the input task being a high-computing-power task, screening out one or more computing power resource nodes from the at least one computing power resource node as task allocation devices to be allocated based on the redundant computing power value screening condition and the redundant computing power state set; allocating computing power subtasks to the task allocation devices to be allocated based on the total computing power requirement value of the input task and the redundant computing power value of the task allocation devices to be allocated, so that the task allocation devices to be allocated process the computing power subtasks and generate computing power subtask processing results; and summarizing the computing power subtask processing results to obtain a task processing result corresponding to the input task.
[0006] In the prior art, the LED display control device sends the received high-computing-power tasks to the cloud server, and the cloud server calculates the high-computing-power tasks and sends the task results back to the LED display control device. When the network connection between the LED display control device and the cloud server fails, that is, when the cloud server cannot provide computing power to calculate the high-computing-power tasks, it causes the time taken by the LED display control device to calculate the high-computing-power tasks to be too long, and at the same time, the response performance of the control device also becomes poor. In the embodiment of the present invention, the LED display control device receives an input task, evaluates the total computing power demand value required by the input task, and then determines that the input task is a high-computing-power task. Then, according to the redundant computing power status set and the redundant computing power value screening condition, one or more computing power resource nodes are selected from at least one computing power resource node as the devices to be assigned tasks. Then, according to the redundant computing power value of the devices to be assigned tasks and the total computing power demand value, computing power subtasks are assigned to the one or more devices to be assigned tasks, and then the processing results of the obtained computing power subtasks are summarized. By the LED display control device coordinating and scheduling the redundant computing power of at least one computing power resource node to calculate the high-computing-power tasks received by the LED display control device, the problem that when the network between the LED display control device and the cloud server fails and the cloud server cannot provide computing power to calculate the high-computing-power tasks is solved, and at the same time, the response performance of the LED display control device is improved.
[0007] In an embodiment of the present invention, the method further includes: establishing a communication connection with at least one slave device; registering the at least one slave device that has established a communication connection with the LED display control device as the at least one computing power resource node; and receiving the redundant computing power values actively reported by the at least one computing power resource node to generate or update the redundant computing power status set.
[0008] In an embodiment of the present invention, the evaluating the total computing power demand value required by the input task includes: determining the total computing power demand value according to the task category and data volume of the input task.
[0009] In one embodiment of the present invention, allocating computing power subtasks to the task-assigning devices based on the total computing power demand value of the large computing power task and the redundant computing power value of the task-assigning devices, so that the task-assigning devices process the computing power subtasks and generate processing results of the computing power subtasks, includes: obtaining a remaining computing power demand value according to the total computing power demand value of the large computing power task and the redundant computing power value of the LED display control device itself; and allocating the computing power subtasks to the task-assigning devices according to the remaining computing power demand value and the redundant computing power value of the task-assigning devices; aggregating the processing results of the computing power subtasks to obtain a task processing result corresponding to the input task, includes: combining the processing results of the computing power subtasks and the target processing results of the computing power subtasks obtained by the LED display control device processing another computing power subtask other than the computing power subtasks in the input task, to obtain the task processing result corresponding to the input task.
[0010] In one embodiment of the present invention, allocating computing power subtasks to the task-assigning devices based on the total computing power demand value of the large computing power task and the redundant computing power value of the task-assigning devices, so that the task-assigning devices process the computing power subtasks and generate processing results of the computing power subtasks, includes: allocating the computing power subtasks to the task-assigning devices according to the total computing power demand value of the large computing power task and the redundant computing power value of the task-assigning devices, and ensuring that the sum of the redundant computing power values consumed by the task-assigning devices is equal to the total computing power demand value.
[0011] On the other hand, a task processing device proposed in an embodiment of the present invention is applicable to an LED display control device registered with at least one computing power resource node; the task processing device includes: a receiving module, configured to receive an input task; an evaluation module, configured to evaluate the total computing power demand value required for the input task; a determination module, configured to determine whether the input task is a large computing power task based on the total computing power demand value and the redundant computing power value of the control device; a screening module, configured to, in response to the input task being a large computing power task, screen one or more computing power resource nodes from the at least one computing power resource node as task-assigning devices based on a redundant computing power value screening condition and a redundant computing power status set; an allocation module, configured to allocate computing power subtasks to the task-assigning devices based on the total computing power demand value of the input task and the redundant computing power value of the task-assigning devices, so that the task-assigning devices process the computing power subtasks and generate processing results of the computing power subtasks; and an aggregation module, configured to aggregate the processing results of the computing power subtasks to obtain a task processing result corresponding to the input task.
[0012] In one embodiment of the present invention, the device further includes: a connection module for establishing a communication connection with at least one slave device; a registration module for registering the at least one slave device that has established a communication connection with the LED display control device as the at least one computing power resource node; and an acquisition module for receiving the redundant computing power values actively reported by the at least one computing power resource node at regular intervals to generate or update the redundant computing power status set.
[0013] In one embodiment of the present invention, the evaluation module is specifically configured to: determine the total computing power requirement value according to the task category and data volume of the input task.
[0014] In one embodiment of the present invention, the allocation module includes: a calculation unit for obtaining the remaining computing power requirement value according to the total computing power requirement value of the input task and the redundant computing power value of the LED display control device itself; and an allocation unit for allocating the computing power sub-task to the task device to be allocated according to the remaining computing power requirement value and the redundant computing power value of the task device to be allocated.
[0015] The summary module includes: a merging unit for merging the processing results of the computing power sub-tasks and the processing results of the computing power sub-tasks obtained by the LED display control device processing another computing power sub-task other than the computing power sub-task in the input task to obtain the task processing result corresponding to the input task.
[0016] In one embodiment of the present invention, the allocation module includes: an allocation unit for allocating the computing power sub-task to the task device to be allocated according to the total computing power requirement value of the input task and the redundant computing power value of the task device to be allocated, and ensuring that the sum of the redundant computing power values consumed by the task devices to be allocated is equal to the total computing power requirement value.
[0017] On the other hand, a control device proposed by an embodiment of the present invention includes a programmable logic device; an embedded processor electrically connected to the programmable logic device; wherein, the embedded processor is used to execute the task processing method described in any one of the foregoing embodiments, and the control device is an LED display controller and serves as the LED display control device.
[0018] On the other hand, an LED display system proposed by an embodiment of the present invention includes: an LED display controller; and a display screen including a module controller and an LED light board electrically connected to the module controller, wherein the module controller is electrically connected to the LED display controller; wherein, the LED display controller is used to execute the task processing method described in any one of the foregoing embodiments and serves as the LED display control device.
[0019] In one embodiment of the present invention, the LED display controller includes: a programmable logic device electrically connected to the module controller; and an embedded processor electrically connected to the programmable logic device and configured to execute the task processing method described in any of the foregoing embodiments.
[0020] In yet another aspect, a task processing system provided by an embodiment of the present invention includes: a processor and a memory connected to the processor; wherein the memory stores instructions executed by the processor, and the instructions cause the processor to perform operations to carry out the task processing method described in any of the foregoing embodiments.
[0021] In still another aspect, a computer-readable storage medium provided by an embodiment of the present invention is a non-volatile memory and stores program code that implements the task processing method described in any of the foregoing embodiments when the program code is executed by a computer.
[0022] As can be seen from the above, the above technical features of the present invention may have one or more of the following beneficial effects:
[0023] 1. In the embodiment of the present invention, the LED display control device receives an input task, evaluates the total computing power requirement value required by the input task, and then determines that the input task is a large computing power task. Then, one or more computing power resource nodes are selected from at least one computing power resource node as task allocation devices to be allocated according to the redundant computing power state set and the redundant computing power value screening condition. Then, computing power subtasks are allocated to the one or more task allocation devices to be allocated according to the redundant computing power value and the total computing power requirement value of the task allocation devices to be allocated, and then the processing results of the obtained computing power subtasks are summarized. By using the LED display control device to coordinately schedule the redundant computing power of at least one computing power resource node to calculate the large computing power task received by the LED display control device, the problem that the cloud cannot provide computing power to calculate the large computing power task when the LED display control device and the cloud network fail is solved. At the same time, the response performance of the LED display control device is improved, and the user experience is enhanced;
[0024] 2. It can effectively reduce the cost of using the cloud to calculate large computing power tasks. For example, using multiple computing power resource nodes with redundant computing power can achieve the response performance of the cloud in processing large computing power tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0026] Figure 1Flowchart of the steps of a task processing method according to the first embodiment of the present invention.
[0027] Figure 2 Flowchart of the steps of another task processing method according to the first embodiment of the present invention.
[0028] Figure 3 Specific flowchart of step S102 in a task processing method according to the first embodiment of the present invention.
[0029] Figure 4 Specific flowchart of step S105 in a task processing method according to the first embodiment of the present invention.
[0030] Figure 5 Another specific flowchart of step S105 in a task processing method according to the first embodiment of the present invention.
[0031] Figure 6A Schematic diagram of a redundant computing power status table related to a specific embodiment of the present invention.
[0032] Figure 6B Flowchart of the steps for generating a redundant computing power status set of a task processing method related to the first specific embodiment of the present invention.
[0033] Figure 6C Specific flowchart of a task processing method related to the second specific embodiment of the present invention.
[0034] Figure 7A Schematic diagram of the modules of a task processing device according to the second embodiment of the present invention.
[0035] Figure 7B Schematic diagram of the modules of another task processing device according to the second embodiment of the present invention.
[0036] Figure 7C Schematic diagram of a unit of the allocation module in the second embodiment of the present invention.
[0037] Figure 7D Schematic diagram of another unit of the allocation module in the second embodiment of the present invention.
[0038] Figure 8 Schematic diagram of the structure of an LED display control device according to the third embodiment of the present invention.
[0039] Figure 9 Schematic diagram of the structure of an LED display system according to the fourth embodiment of the present invention.
[0040] Figure 10 Schematic diagram of the structure of a task processing system according to the fifth embodiment of the present invention.
[0041] Figure 11 Structural schematic diagram of a computer-readable storage medium according to the sixth embodiment of the present invention.
[0042]
Explanation of attached drawing reference numerals
[0043] S101 - S106, S201 - S203, S301, S401 - S403, S501, S611 - S612, S621 - S624: Steps of the task processing method;
[0044] 600: Redundant computing power status table; 601: Unique identifier; 602: Redundant computing power value;
[0045] 700: Task processing device; 701: Receiving module; 702: Evaluation module; 703: Determination module; 704: Screening module; 705: Allocation module; 706: Summarization module; 707: Connection module; 708: Registration module; 709: Acquisition module; 7051: Calculation unit; 7052: Allocation unit; 7061: Merging unit; 7053: Allocation unit;
[0046] 800: LED display control device; 801: Programmable logic device; 802: Embedded processor;
[0047] 900: LED display system: 901: LED display screen controller; 902: Display screen; 90: Programmable logic device; 9012: Embedded processor; : Module controller; 9022: LED light board;
[0048] 1000: Task processing system; 1001: Processor; 1003: Memory;
[0049] 1100: Computer-readable storage medium. Specific implementation manners
[0050] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.
[0051] In an embodiment of the present invention, its applicable scenario is: the LED display control device establishes a communication connection with at least one slave device, and then registers the at least one slave device that establishes a communication connection with the LED display control device as the at least one computing power resource node. For example, the at least one computing power resource node and the LED display control device are in the same local area network. After the LED display control device receives the input task, when the input task is a large computing power task, the input task is collaboratively processed based on the task collaborative processing strategy to obtain a task processing result output, for example, output to a display screen such as an LED display screen for image display. Among them, the LED display control device and the at least one computing power resource node can form a local area network, a metropolitan area network, or a wide area network. The LED display control device and each device in the at least one computing power resource node can also be regarded as a server to form a server cluster, etc. Different regional networks can be set according to the actual scenario, and the specific details are not limited here.
[0052] [First embodiment]
[0053] like Figure 1 As shown, a task processing method provided by the first embodiment of the present invention is applicable to an LED display control device registered with at least one computing resource node, and the task processing method includes:
[0054] S101, receiving input tasks;
[0055] S102: Evaluate the total computing power required for the input task;
[0056] S103: Determine whether the input task is a high computing power task based on the total computing power requirement value and the redundant computing power value of the LED display control device;
[0057] S104: If yes, select one or more computing resource nodes from the at least one computing resource node as task devices to be assigned based on the redundant computing power value screening condition and the redundant computing power state set;
[0058] S105: Allocate a computing power subtask to the task device to be assigned based on the total computing power requirement value of the input task and the redundant computing power value of the task device to be assigned, so that the task device to be assigned processes the computing power subtask and generates a computing power subtask processing result;
[0059] S106. Summarize the computing power subtask processing results to obtain the task processing result corresponding to the input task.
[0060] In the prior art, an LED display control device sends a received high-computing-power task to a cloud server, and the cloud server calculates the high-computing-power task and sends the task result back to the LED display control device. When a network connection between the LED display control device and the cloud server fails, that is, when the cloud server cannot provide computing power to calculate the high-computing-power task, it causes the LED display control device to take too long to calculate the high-computing-power task, and at the same time, the response performance of the LED display control device becomes poor. In an embodiment of the present invention, the LED display control device receives an input task, evaluates the total computing power requirement value required by the input task, and then determines that the input task is a high-computing-power task. Then, according to the redundant computing power state set and the redundant computing power value screening condition, one or more computing power resource nodes are screened out from at least one computing power resource node as devices to be assigned tasks. Then, according to the redundant computing power value of the devices to be assigned tasks and the total computing power requirement value, computing power subtasks are assigned to the one or more devices to be assigned tasks, and then the processing results of the obtained computing power subtasks are summarized. By the LED display control device coordinating and scheduling the redundant computing power of at least one computing power resource node to calculate the high-computing-power task received by the LED display control device, the problem that when a network between the LED display control device and the cloud server fails and the cloud server cannot provide computing power to calculate the high-computing-power task is solved, and at the same time, the response performance of the LED display control device is improved.
[0061] Among them, the computing power resource node is an idle device (one or more other idle devices in the local area network except the LED display control device) that becomes a computing power resource node of the LED display control device by installing computing power coordination software (such as the XServer software independently developed by Xi'an Nova Nebula Co., Ltd.) or other software agents on itself.
[0062] Among them, in step S101, in this embodiment, the input task is, for example, a task of adjusting the display brightness of the display screen pixels; in other embodiments, the input task may be other adjustment tasks of the display screen pixels, such as gray scale adjustment or brightness and chromaticity adjustment, etc., which are not specifically limited here.
[0063] In another specific implementation, as Figure 2 shown, the task processing method further includes:
[0064] S201. Establish a communication connection with at least one slave device;
[0065] S202. Register the at least one slave device that has established a communication connection with the LED display control device as the at least one computing power resource node;
[0066] S203. Receive the redundant computing power values actively reported by the at least one computing power resource node to generate or update the redundant computing power status set.
[0067] In another specific embodiment, as Figure 3 shown, step S102 specifically includes:
[0068] S301. Determine the total computing power demand value according to the task category and data volume of the input task.
[0069] In another specific embodiment, as Figure 4 shown, a specific step flow of step S105 and step S106 includes:
[0070] S401. Obtain the remaining computing power demand value based on the total computing power demand value of the input task and the redundant computing power value of the LED display control device itself;
[0071] S402. Allocate the computing power sub - tasks to the task - to - be - allocated devices according to the remaining computing power demand value and the redundant computing power value of the task - to - be - allocated devices;
[0072] S403. Combine the processing results of the computing power sub - tasks and the processing results of the computing power sub - tasks obtained by the LED display control device processing another computing power sub - task other than the computing power sub - tasks in the input task to obtain the task processing result corresponding to the input task.
[0073] In another specific embodiment, as Figure 5 shown, another specific step flow of step S105 includes:
[0074] S501. Allocate the computing power sub - tasks to the task - to - be - allocated devices according to the total computing power demand value of the input task and the redundant computing power value of the task - to - be - allocated devices, and ensure that the sum of the redundant computing power values consumed by each of the task - to - be - allocated devices is equal to the total computing power demand value.
[0075] For the convenience of more clearly understanding this embodiment, the following will combine Figures 6A - 6C to detail two specific implementation manners of the task processing method of this embodiment.
[0076] In this embodiment, the LED display control device is communicatively connected to at least one slave device and registers the at least one slave device as at least one computing power resource node. Among them, the LED display control device and the at least one slave device (i.e., the computing power resource node) form a local area network, and the task processing method is applicable to the LED display control device in the local area network.
Specific Embodiment One
[0078] As shown Figure 6B in the figure, a process flow for generating a redundant computing power state set of a task processing method includes:
[0079] S611: Register at least one slave device that has established a communication connection with the LED display control device as at least one computing power resource node;
[0080] In this embodiment, the LED display control device is the main control device in the local area network that controls at least one slave device, such as an LED display controller. The slave device is other idle devices in the local area network except the LED display control device, such as a computer or other intelligent devices, etc., and specific details are not limited here. Since the LED display control device and the at least one computing power resource node form a local area network, and then the LED display control device is communicatively connected to the at least one computing power resource node. Among them, the communication connection between the LED display control device and the at least one computing power resource node can be established by setting a main computing power collaboration software on the LED display control device in the local area network, and then installing computing power collaboration software on the at least one computing power resource node. The main computing power collaboration software and the computing power collaboration software are, for example, the server version and the client version of the XServer software independently developed by Xi'an Nova Nebula Co., Ltd. (the server version of the XServer software is used to issue instructions or mobilize other client versions of the XServer software to execute relevant operations, and the client version of the XServer software is used to receive instructions issued by the server version of the XServer software and execute relevant operations). The computing power collaboration software on the at least one computing power resource node sends registration information to the main computing power collaboration software of the LED display control device, or the main computing power collaboration software on the LED display control device adds the at least one computing power resource node, so that a TCP (full English name: Transmission Control Protocol, full Chinese name: Transmission Control Protocol) communication connection is established between the LED display control device and the at least one computing power resource node in the local area network. This embodiment is not limited thereto. The communication connection between the LED display control device and the at least one computing power resource node can also be established by other means, such as by setting a router or a switch in the local area network to enable the LED display control device to communicate with the at least one computing power resource node, and specific details are not limited here.
[0081] The computing power resource node can be an idle machine in the local area network, such as a computer or other intelligent devices, etc., and specific details are not limited here.
[0082] S612. Receive the redundant computing power values actively reported by the at least one computing power resource node to generate or update the redundant computing power status set.
[0083] After the LED display control device is communicatively connected to the at least one computing power resource node, the at least one computing power resource node periodically and actively reports its own redundant computing power value. Herein, the redundant computing power value may refer to the currently idle computing power of the LED display control device and the computing power resource nodes in the local area network. For example, the LED display control device receives the redundant computing power values actively reported by 3 computing power resource nodes, and obtains the redundant computing power values of the 3 computing power resource nodes as 1000, 2000, 5000, etc.
[0084] Among them, when the LED display control device receives the redundant computing power values actively reported by the at least one computing power resource node periodically, when it first receives the redundant computing power values reported by the at least one computing power resource node, the LED display control device will generate a redundant computing power status set according to the unique identifier and the received redundant computing power values. The redundant computing power status set in the embodiment of the present invention is, for example, Figure 6A the redundant computing power status table shown, and in other embodiments, the redundant computing power status set may also be other forms of different tables, such as an array form, etc., or a tree diagram, etc. The embodiment of the present invention is not limited thereto. As Figure 6A shown, after the LED display control device generates the redundant computing power status table 600 according to the unique identifier 601 and the received redundant computing power value 602, when the LED display control device receives the redundant computing power values actively reported by the at least one computing power resource node again, the LED display control device can update the redundant computing power status table 600 to correctly reflect the current redundant computing power of each computing power resource node.
[0085] Among them, the redundant computing power status table 600 is used to record the redundant computing power values of at least one computing power resource node. The redundant computing power value of the LED display control device itself can be obtained after the LED display control device receives an input task. Since the redundant computing power value of each computing power resource node in at least one computing power resource node will change due to its working state, each computing power resource node in at least one computing power resource node needs to report its redundant computing power value periodically or in real time and record it in the redundant computing power status table 600. The period can be every 10 seconds or every 30 seconds or every 1 minute, etc. That is, the time period for each computing power resource node in at least one computing power resource node to actively report the redundant computing power value can be set by the user, or each computing power resource node in at least one computing power resource node automatically adjusts the time period and unifies the time period to a specific value and then reports the redundant computing power value, or each computing power resource node in at least one computing power resource node automatically adjusts the time period and then reports the redundant computing power value separately. Specifically, it is not limited here.
[0086] In this embodiment, the redundant computing power status table 600 is used to record the redundant computing power values of at least one computing power resource node. In other embodiments, the redundant computing power status table 600 can also be used to record the redundant computing power values of at least one computing power resource node and the redundant computing power value of the LED display control device itself. That is, the redundant computing power status table 600 can include the redundant computing power values of at least one computing power resource node and unique identifiers and the redundant computing power value of the LED display control device itself and unique identifiers. This embodiment is not limited thereto.
[0087] As Figure 6A shown, each of the at least one computing power resource nodes in the redundant computing power status table 600 has a unique identifier 601, and the values of different unique identifiers 601 correspond to different control devices. For example, as Figure 4 shown, the unique identifier is 1 or 2 or 3 or 4 or 5, where 1, 2, 3, 4, and 5 respectively correspond to the first computing power resource node, the second computing power resource node, the third computing power resource node, the fourth computing power resource node, and the fifth computing power resource node. Then the LED display control device generates the redundant computing power status table 600 according to the redundant computing power values 602 and the unique identifier 601 actively reported by at least one computing power resource node received for the first time; stores the redundant computing power status table 600 locally for the LED display control device to access at any time.
Specific Embodiment 2
[0089] In this embodiment, the redundant computing power status set is the redundant computing power status table 600 as Figure 6A shown.
[0090] As shown Figure 6C in the figure, a task processing method includes:
[0091] S621. Receiving an input task;
[0092] The LED display control device receives an input task. The input task includes the task category and data volume of the input task. For example, the input task is a task of adjusting the brightness of pixel points on the display screen, and its data volume is the data volume of 10,000 pixel points. The input task can also be other task categories, and different task types and different data volumes of the input task can be set according to actual needs, and specific details are not limited here.
[0093] The input task can be sent by a host computer communicatively connected to the LED display control device, or can be sent by other devices communicatively connected to the LED display control device, and specific details are not limited here.
[0094] S622. Determining the task device to be allocated;
[0095] After the LED display control device receives the input task, it evaluates the total computing power demand value required for the input task. For example, if the input task is a task of adjusting the brightness of pixel points on the display screen and its data volume is the data of 10,000 pixel points, the LED display control device evaluates the total computing power demand value required for the input task as 10,000 based on the task category of the input task and the data volume and the computing power consumption value required for a single data unit corresponding to the task category locally configured by the LED display control device, that is, the input task requires a computing power value of 10,000 to be processed.
[0096] Then, the total computing power demand value evaluated for the input task is compared with the redundant computing power value of the LED display control device. When the total computing power demand value does not exceed the redundant computing power value of the LED display control device itself, the LED display control device directly processes the input task to obtain a task processing result corresponding to the input task. For example, the total computing power demand value is evaluated as 1,000 computing power values, and the LED display control device obtains its own redundant computing power value as 1,500. The total computing power demand value is compared with the redundant computing power value of the LED display control device, and an evaluation result that the total computing power demand value does not exceed the redundant computing power value of the LED display control device is obtained. Then, the LED display control device directly processes the input task to obtain a task processing result.
[0097] When the total computing power demand value exceeds the LED display control device, for example, when the total computing power demand value is evaluated as 10,000 computing power values and the LED display control device obtains its redundant computing power value of 1,500, the total computing power demand value is compared with the redundant computing power value of the LED display control device, and an evaluation result that the total computing power demand value exceeds the redundant computing power value of the LED display control device is obtained, then the input task is determined as a high-computing-power task. The redundant computing power value threshold for determining the input task as a high-computing-power task is not limited to 1,500, and can also be other appropriate values, such as 80% of 1,500 (that is, a certain percentage of the redundant computing power value of the LED display control device itself).
[0098] After determining that the input task is a high-computing-power task, the LED display control device selects one or more computing power resource nodes from the at least one computing power resource node as the devices to be assigned tasks according to the redundant computing power value screening conditions and the redundant computing power status table 600. Among them, the redundant computing power value screening conditions are flexibly set by the user. For example, the user sets the redundant computing power value screening conditions to be not less than 40% of the total computing power demand value. For example, if the total computing power demand value is 10,000, then according to the rules set by the user, the redundant computing power value screening conditions are not less than 40% of the total computing power demand value, that is, the redundant computing power value screening conditions are not less than 4,000 (that is, 4,000 is used as the redundant computing power threshold for selecting the devices to be assigned tasks). Or the redundant computing power value screening conditions can also be automatically set or adjusted according to the situation collected by the LED display control device itself, and the specific details are not limited here. In addition, the redundant computing power value screening conditions can also sort the redundant computing power values in the redundant computing power status table 600 from large to small, and then select the devices to be assigned tasks from large to small in turn until the sum of the redundant computing power values of the selected devices to be assigned tasks is not less than the total computing power demand value; however, the embodiments of the present invention are not limited thereto.
[0099] Then, according to Figure 6A the redundant computing power status table 600 shown, select the computing power resource nodes that meet the redundant computing power value screening conditions from the redundant computing power status table 600 as the devices to be assigned tasks. For example, select the devices with redundant computing power values of the computing power resource nodes not less than the redundant computing power value threshold of 6,000 as the devices to be assigned tasks. Figure 6A Taking this as an example, the fourth computing power node and the fifth computing power resource node are used as the devices to be assigned tasks.
[0100] Among them, in this embodiment, the LED display control device can process a part of the input tasks according to its own redundant computing power value; the LED display control device can also not process the input tasks and directly allocate the large-computing-power input tasks to the task-to-be-allocated device for processing, and the specific details are not limited here.
[0101] S623. Based on the total computing power demand value of the input task and the redundant computing power value of the task-to-be-allocated device, allocate a computing power sub-task to the task-to-be-allocated device, so that the task-to-be-allocated device processes the computing power sub-task and generates a processing result of the computing power sub-task;
[0102] The LED display control device obtains the remaining computing power demand value based on the total computing power demand value of the input task and the redundant computing power value of the LED display control device. For example, if the total computing power demand value of the input task is 10,000 and the redundant computing power value of the LED display control device is 400, the remaining computing power demand value is obtained as 9,600 by subtracting the redundant computing power value of the LED display control device from the total computing power demand value of the input task. Then, the LED display control device decomposes the input task into computing power sub-tasks according to the remaining computing power demand value and the redundant computing power value of the task device to be allocated, and then allocates them to the task device to be allocated for processing. That is, the LED display control device decomposes the input task according to the total computing power demand value and the redundant computing power value of the LED display control device, and the remaining computing power demand value and the redundant computing power value of the task device to be allocated, into at least one computing power sub-task allocated to the task device to be allocated for processing and another computing power sub-task that the LED display control device can process except for the at least one computing power sub-task. For example, if the total computing power demand value of the input task is 10,000 and the redundant computing power value of the LED display control device is 400, and the fourth computing power resource node and the fifth computing power resource node are selected as the task devices to be allocated according to the redundant computing power value screening condition (for example, the redundant computing power value is not less than 4,000), then according to the total computing power demand value of the input task and the redundant computing power value of the LED display control device, another computing power sub-task allocated to itself by the LED display control device is 400, and the corresponding task processing result is obtained after processing the other computing power sub-task. Then, the remaining computing power demand value is obtained as 9,600 by subtracting the redundant computing power value of the LED display control device from the total computing power demand value of the input task. Then, according to the remaining computing power demand value and the redundant computing power value of the task device to be allocated, the remaining computing power demand value can be evenly distributed. Since there are 2 task devices to be allocated, the remaining computing power demand value is evenly divided into 2 computing power sub-tasks, and each computing power sub-task in the 2 computing power sub-tasks is 4,800, and they are sent to the fourth computing power resource node and the fifth computing power resource node for processing in a one-to-one manner to obtain the computing power sub-task processing results. Then, the computing power sub-task processing results and the other computing power sub-task processing results are merged.
[0103] Among them, there is also a situation in which the LED display control device evenly distributes computing power subtasks to the devices to be assigned tasks according to the remaining computing power demand value and the devices to be assigned tasks: after determining the devices to be assigned tasks, the computing power demand value of the evenly distributed computing power subtasks may be greater than the redundant computing power value of the devices to be assigned tasks. For example, the total computing power demand value is 14,000, and the redundant computing power value of the LED display control device itself is 2,000. According to the redundant computing power value screening condition (for example, the redundant computing power value is not less than 3,000), the devices to be assigned tasks selected are the third computing power resource node, the fourth computing power resource node, and the fifth computing power resource node. Then, the remaining computing power demand value is obtained as 12,000 according to the difference between the total computing power demand value of the input task and the redundant computing power value of the LED display control device. Then, according to the remaining computing power demand value and the redundant computing power value of the devices to be assigned tasks, the remaining computing power demand value can be evenly distributed. Since there are 3 devices to be assigned tasks, the remaining computing power demand value is evenly divided into 3 computing power subtasks, and the computing power demand value of each computing power subtask is 4,000. However, from Figure 6A it can be seen that the redundant computing power value of the third computing power resource node does not meet the condition of the computing power demand value for processing the computing power subtask, that is, the redundant computing power value of the third computing power resource node does not meet the processing condition of the computing power subtask. Therefore, it cannot be evenly distributed to 3 devices to be assigned tasks for processing. At this time, the LED display control device can perform dynamic adjustment. For example, the remaining computing power demand is changed from being evenly decomposed into 3 identical computing power subtasks to being evenly decomposed into 2 identical computing power subtasks until the number of computing power subtasks is the same as the number of devices to be assigned tasks that can process the computing power subtasks. The LED display control device can also perform arrangement and distribution according to the magnitude of the redundant computing power value of the devices to be assigned tasks. For example, as Figure 6A shown, when the remaining computing power demand value is 12,000, according to the Figure 6A redundant computing power status table shown, the redundant computing power of the fifth computing power resource node is the largest, which is 9,500. Then, the remaining computing power demand value can be decomposed into a computing power subtask with a computing power consumption value of 9,500 and a computing power subtask with a computing power consumption value of 2,500. Then, according to the distribution from the largest to the smallest redundant computing power, the computing power subtasks are assigned to the fifth computing power resource node and the fourth computing power resource node for processing respectively.
[0104] Among them, the rule for decomposing the input task into at least one computing power subtask can be distributed according to the magnitude of the redundant computing power value in the redundant computing power status table, or can be evenly distributed. That is, the rule for the LED display control device to decompose the input task into at least one computing power subtask can be dynamically adjusted according to the actual situation. As for the task decomposition rules and strategies, they are existing mature technologies and will not be elaborated here.
[0105] The LED display control device can also directly decompose the input task into computing power subtasks according to its own redundant computing power value and then allocate them to the devices to which the tasks are to be allocated for processing. For example, if the redundant computing power value of the LED display control device does not meet the redundant computing power value screening condition, it means that the LED display control device will not be allocated the computing power subtasks of the input task. Therefore, the input task will be distributed to the computing power resource nodes for processing subsequently. Or, regardless of whether its own redundant computing power value meets the redundant computing power value screening condition or not, the LED display control device decomposes the input task into at least one computing power subtask and then allocates it to the devices to which the tasks are to be allocated for processing. That is, the LED display control device decomposes the input task into at least one computing power subtask according to the total computing power demand value of the input task and the redundant computing power value of the devices to which the tasks are to be allocated, and sends the at least one computing power subtask to one or more computing power resource nodes in the devices to which the tasks are to be allocated for processing in a one-to-one manner. For example, the total computing power consumption value of the input task is 5000. According to the redundant computing power value screening condition (for example, the redundant computing power value is not less than 1000), the devices to which the tasks are to be allocated are selected, including the first computing power resource node, the second computing power resource node, the third computing power resource node, the fourth computing power resource node, and the fifth computing power resource node. Then, according to the total computing power consumption value and the redundant computing power value of the devices to which the tasks are to be allocated, the input task can be evenly distributed. For example, if it is evenly distributed to 5 devices to which the tasks are to be allocated, the input task is evenly decomposed into 5 identical computing power subtasks. If the total computing power consumption value of the input task is 5000, the computing power consumption value of the decomposed computing power subtask is 1000. Or it is distributed according to the magnitude of the redundant computing power value of the devices to which the tasks are to be allocated. For example, as Figure 6A shown, the total computing power consumption value of the input task is 10000. According to Figure 6A the redundant computing power status table shown, the redundant computing power value of the fifth computing power resource node is the largest, which is 9500. Then the input task can be decomposed into a computing power subtask with a computing power consumption value of 9500 and a computing power subtask with a computing power consumption value of 500. Then, it is distributed in descending order of the redundant computing power value to the fourth computing power resource node and the fifth computing power resource node. Then, each computing power resource node in the devices to which the tasks are to be allocated that receives the computing power subtask processes the received computing power subtask respectively to generate the processing results of the computing power subtasks.
[0106] S624. Summarize the processing results of the computing power subtasks to obtain the task processing result corresponding to the input task.
[0107] As described above, when the LED display control device has another computing power sub-task assigned to itself in addition to the computing power sub-task, the LED display control device combines the processing results of the computing power sub-task generated by each computing power resource node that receives the computing power sub-task and the processing result of another computing power sub-task received in addition to the computing power sub-task, and then obtains the task processing result corresponding to the input task.
[0108] Alternatively, when the LED display control device is unable to process the computing power sub-task or decomposes the input task into at least one computing power sub-task and allocates all of them to the task device to be allocated for processing regardless of whether the LED display control device itself can process the computing power sub-task, the LED display control device summarizes the computing power sub-task results obtained by the task device to be allocated to obtain the task processing result corresponding to the input task.
[0109] Then, the processing result corresponding to the input task is output. When the LED display control device is an LED display controller, the processing result corresponding to its input task can be output to the display screen for display. For example, if the input task is to increase the display brightness of the pixel points on the display screen, the output on the display screen shows the result of increasing the brightness of the pixel points in the display screen.
[0110] In summary, in the prior art, the LED display control device sends the received large computing power task to the cloud server, and the cloud server calculates the large computing power task and sends the task result back to the LED display control device. When the network connection between the LED display control device and the cloud server fails, that is, when the cloud server cannot provide computing power to calculate the large computing power task, it causes the LED display control device to spend too much time calculating the large computing power task, and at the same time, the response performance of the control device becomes poor. In the embodiment of the present invention, the LED display control device receives the input task, evaluates the total computing power requirement value required by the input task, and then determines that the input task is a large computing power task, and then selects one or more computing power resource nodes from at least one computing power resource node as the task device to be allocated according to the redundant computing power status table and the redundant computing power value screening conditions, and then allocates the computing power sub-task to the one or more task devices to be allocated according to the redundant computing power value and the total computing power requirement value of the task device to be allocated, and then summarizes the obtained processing results of the computing power sub-task. By the LED display control device coordinating and scheduling the redundant computing power of at least one computing power resource node to calculate the large computing power task received by the LED display control device, the problem that the cloud server cannot provide computing power to calculate the large computing power task when the network between the LED display control device and the cloud server fails is solved, and at the same time, the response performance of the LED display control device is improved.
[0111]
Second Embodiment
[0112] AsFigure 7A As shown in the figure, a task processing device 700 provided by the second embodiment of the present invention is applicable to an LED display control device registered with at least one computing power resource node, and includes: a receiving module 701, an evaluation module 702, a determination module 703, a screening module 704, an allocation module 705, and a summarization module 706.
[0113] Among them, the receiving module 701 is used to receive an input task; the evaluation module 702 is used to evaluate the total computing power demand value of the input task; the determination module 703 is used to determine whether the input task is a large computing power task based on the total computing power demand value and the redundant computing power value of the LED display control device; the screening module 704 is used to, in response to the input task being a large computing power task, screen out one or more computing power resource nodes from the at least one computing power resource node as task devices to be allocated based on the redundant computing power value screening condition and the redundant computing power status set; the allocation module 705 is used to allocate computing power subtasks to the task devices to be allocated based on the total computing power demand value of the input task and the redundant computing power value of the task devices to be allocated, so that the task devices to be allocated process the computing power subtasks and generate computing power subtask processing results; and the summarization module 706 is used to summarize the computing power subtask processing results to obtain a task processing result corresponding to the input task.
[0114] In a specific embodiment, as Figure 7B shown, the task processing device 700 of this embodiment further includes, for example: a connection module 707, used to establish a communication connection with at least one slave device; a registration module 708, used to register the at least one slave device that has established a communication connection with the LED display control device as the at least one computing power resource node; and an acquisition module 709, used to receive the redundant computing power values actively reported by the at least one computing power resource node at regular intervals to generate or update the redundant computing power status set.
[0115] In another specific embodiment, the evaluation module 702 is specifically used to: determine the total computing power demand value according to the task category and data volume of the input task.
[0116] In another specific embodiment, as Figure 7C shown, the allocation module 705 in this embodiment includes, for example: a calculation unit 7051, used to obtain a remaining computing power demand value according to the total computing power demand value of the input task and the redundant computing power value of the LED display control device itself; and an allocation unit 7052, used to allocate the computing power subtasks to the task devices to be allocated according to the remaining computing power demand value and the redundant computing power value of the task devices to be allocated;
[0117] The summarization module 706, for example, includes: a merging unit 7061, configured to merge the processing results of the computing power subtasks and the processing results of another computing power subtask obtained by the LED display control device when processing the input task except for the computing power subtasks, so as to obtain the task processing result corresponding to the input task.
[0118] In another specific embodiment, as Figure 7D shown, the allocation module 705 in this embodiment, for example, includes: an allocation unit 7053, configured to allocate the computing power subtasks to the task devices to be allocated according to the total computing power demand value of the input task and the redundant computing power values of the task devices to be allocated, and ensure that the sum of the redundant computing power values consumed by the task devices to be allocated respectively is equal to the total computing power demand value.
[0119] The task processing method implemented by the task processing device disclosed in this embodiment is as described in the foregoing first embodiment, so details will not be described herein again. Optionally, each module in the second embodiment and the above other operations or functions are respectively for implementing the method in the first embodiment of the present invention, and the beneficial effects of this embodiment are the same as those of the first embodiment. For the sake of brevity, they will not be repeated here.
[0120]
Third Embodiment
[0121] As Figure 8 shown, an LED display control device 800 provided in the third embodiment of the present invention includes: a programmable logic device 801 and an embedded processor 802, and the embedded processor 802 is electrically connected to the programmable logic device 801; wherein, the embedded processor 802 is configured to execute the task processing method as described in the first embodiment above. Among them, in this embodiment, the embedded processor 802 and the programmable logic device 801 cooperate with each other to execute the task processing method as described in the first embodiment above. For example, the programmable logic device 801 sends an input task to the embedded processor 802, and then the embedded processor 802 executes the task processing method as described in the first embodiment above.
[0122] It is worth mentioning that the programmable logic device 801 in this embodiment may be an FPGA (English full name: Field Programmable Gate Array, Chinese full name: Field Programmable Gate Array), or a PLD (English full name: programmable logic device, Chinese full name: Complex Programmable Logic Device). Different types of programmable logic devices 801 can be set according to actual needs, and specific details are not limited here.
[0123] The embedded processor 802 in this embodiment may be an ARM processor, which can install an embedded operating system such as the Linux operating system, and specific details are not limited here.
[0124]
Fourth Embodiment
[0125] As Figure 9 shown, a LED display system 900 provided by the fourth embodiment of the present invention includes: a LED display controller 901; and a display screen 902, including a module controller 9021 and a LED light board 9022 electrically connected to the module controller 9021, wherein the module controller 9021 is electrically connected to the LED display controller 901;
[0126] Among them, the LED display controller 901 is used to execute the task processing method described in the first embodiment above and serves as a LED display control device.
[0127] Among them, the LED display controller 901 includes: a programmable logic device 9011, electrically connected to the module controller 9021; an embedded processor 9012, electrically connected to the programmable logic device 9011 and used to execute the task processing method described in the first embodiment above.
[0128] Among them, the LED display controller 901 is, for example, a sending card, and the sending card is a sending card in the LED display screen control system, and for example, includes devices such as a video source input interface, an Ethernet interface, a programmable logic device, a microcontroller, etc. The video source input interface is, for example, an HDMI interface, etc., the Ethernet interface is, for example, an RJ45 interface, the programmable logic device is, for example, an FPGA, and the microcontroller is, for example, an MCU.
[0129] Among them, the module controller 9021 is, for example, a receiving card, and the receiving card is a receiving card in the LED display screen control system, and for example, includes devices such as an Ethernet interface, a programmable logic device, a microcontroller, and a pin header connector. The Ethernet interface is, for example, an RJ45 interface, the programmable logic device is, for example, an FPGA, the microcontroller is, for example, an MCU, and the pin header connector is used to connect the LED light board of the LED display screen.
[0130] It should be noted that the display screen 902 in this embodiment may be a LED display screen. The LED display screen here may, for example, include at least one LED light board or include at least one LED module as described above, and the at least one LED light board or LED module includes at least one LED lamp bead. Of course, the type of the display screen can also be determined according to actual needs, and specific details are not limited here.
[0131]
Fifth Embodiment
[0132] As Figure 10As shown in the figure, a task processing system 1000 provided by the fifth embodiment of the present invention includes: a processor 1001 and a memory 1003; wherein, the memory 1003 stores instructions executed by the processor 1001, and the instructions, for example, cause the processor 1001 to perform operations to carry out the task processing method described in the foregoing first embodiment.
[0133]
Sixth Embodiment
[0134] As Figure 11 shown in the figure, a computer-readable storage medium 1100 provided by the sixth embodiment of the present invention is a non-volatile memory and stores computer-readable instructions, which, when executed by one or more processors, for example, cause the one or more processors to perform the task processing method described in the foregoing first embodiment.
[0135] In addition, it can be understood that the foregoing various embodiments are only exemplary descriptions of the present invention. On the premise that the technical features do not conflict and do not violate the inventive purpose of the present invention, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.
[0136] In several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus, and / or method can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of the units / modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, indirect couplings or communication connections of devices or units, and can be in electrical, mechanical or other forms.
[0137] The units / modules described as separate components may or may not be physically separated. The components shown as units / modules may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units / modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0138] In addition, in each embodiment of the present invention, the functional units / modules can be integrated in one processing unit / module, or each unit / module exists physically alone, or two or more units / modules can be integrated in one unit / module. The above-mentioned integrated units / modules can be implemented in the form of hardware, or in the form of hardware plus software functional units / modules.
[0139] The integrated unit / module implemented in the form of software functional units / modules can be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium and include several instructions for causing one or more processors of a computer device (which can be a personal computer, a server, or a network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. However, such modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of various embodiments of the present invention.
Claims
1. A task processing method, characterized in that: Applicable to an LED display control device registered with at least one computing resource node; The task processing method includes: Receive input tasks; Evaluate the total computing power required for the input task; Determining whether the input task is a high-computing-power task based on the total computing power requirement value and the redundant computing power value of the LED display control device; In response to the input task being a large computing power task, one or more computing power resource nodes are selected from the at least one computing power resource node as task devices to be assigned based on a redundant computing power value screening condition and a redundant computing power state set; Allocating a computing power subtask to the task device to be assigned based on the total computing power requirement value of the input task and the redundant computing power value of the task device to be assigned, so that the task device to be assigned processes the computing power subtask and generates a computing power subtask processing result; and Summarizing the processing results of the computing power subtasks to obtain the task processing result corresponding to the input task; The method further comprises: establishing a communication connection with at least one slave device; Registering the at least one slave device that has established a communication connection with the LED display control device as the at least one computing power resource node; wherein the at least one computing power resource node and the LED display control device are in the same local area network; and Receive the redundant computing power value periodically and actively reported by the at least one computing power resource node to generate or update the redundant computing power status set; the redundant computing power status table is used to record the redundant computing power value and unique identifier of the at least one computing power resource node and the redundant computing power value of the LED display control device itself.
2. The task processing method according to claim 1, characterized in that: The total computing power requirement value of the input task is evaluated as follows: The total computing power requirement value is determined according to the task category and data volume of the input task.
3. The task processing method according to claim 1, characterized in that: The allocating a computing power subtask to the task device to be allocated based on the total computing power requirement value of the input task and the redundant computing power value of the task device to be allocated, so that the task device to be allocated processes the computing power subtask and generates a computing power subtask processing result, including: Obtaining a remaining computing power requirement value based on the total computing power requirement value of the input task and the redundant computing power value of the LED display control device itself; and Allocate the computing power subtask to the task device to be assigned according to the remaining computing power requirement value and the redundant computing power value of the task device to be assigned; Summarizing the processing results of the computing power subtasks to obtain the task processing result corresponding to the input task includes: The computing power subtask processing result and the computing power subtask processing result obtained by the LED display control device processing another computing power subtask in the input task other than the computing power subtask are combined to obtain the task processing result corresponding to the input task.
4. The task processing method according to claim 1, characterized in that: The allocating a computing power subtask to the task device to be allocated based on the total computing power requirement value of the input task and the redundant computing power value of the task device to be allocated, so that the task device to be allocated processes the computing power subtask and generates a computing power subtask processing result, including: The computing power subtask is allocated to the task device to be allocated according to the total computing power requirement value of the input task and the redundant computing power value of the task device to be allocated, and ensuring that the sum of the redundant computing power values consumed by each of the task devices to be allocated is equal to the total computing power requirement value.
5. A task processing device, characterized in that: Applicable to an LED display control device registered with at least one computing resource node; the task processing device includes: A receiving module, used for receiving input tasks; An evaluation module, configured to evaluate the total computing power requirement of the input task; A determination module, configured to determine whether the input task is a high computing power task based on the total computing power requirement value and the redundant computing power value of the LED display control device; a screening module configured to, in response to the input task being a large computing power task, screen one or more computing power resource nodes from the at least one computing power resource node as task devices to be assigned based on a redundant computing power value screening condition and a redundant computing power state set; an allocation module, configured to allocate computing power subtasks to the task device to be allocated based on the total computing power requirement value of the input task and the redundant computing power value of the task device to be allocated, so that the task device to be allocated processes the computing power subtasks and generates computing power subtask processing results; and A summarizing module, configured to summarize the processing results of the computing power subtasks to obtain a task processing result corresponding to the input task; A connection module, configured to establish a communication connection with at least one slave device; a registration module, configured to register the at least one slave device that establishes a communication connection with the LED display control device as the at least one computing power resource node; wherein the at least one computing power resource node and the LED display control device are in the same local area network; and An acquisition module is used to receive the redundant computing power value periodically and actively reported by the at least one computing power resource node to generate or update the redundant computing power status set; the redundant computing power status table is used to record the redundant computing power value and unique identifier of the at least one computing power resource node and the redundant computing power value of the LED display control device itself.
6. The task processing device according to claim 5, characterized in that: The evaluation module is specifically used for: The total computing power requirement value is determined according to the task category and data volume of the input task.
7. The task processing device according to claim 5, characterized in that: The allocation module includes: a calculation unit, configured to obtain a remaining computing power requirement value based on a total computing power requirement value of the input task and a redundant computing power value of the LED display control device itself; and an allocating unit, configured to allocate the computing power subtask to the task device to be allocated according to the remaining computing power requirement value and the redundant computing power value of the task device to be allocated; The summary module includes: A merging unit is used to merge the computing power subtask processing result and the computing power subtask processing result obtained by the LED display control device processing another computing power subtask in the input task other than the computing power subtask, so as to obtain the task processing result corresponding to the input task.
8. The task processing device according to claim 5, characterized in that: The allocation module includes: An allocation unit is used to allocate the computing power subtask to the task device to be allocated based on the total computing power requirement value of the input task and the redundant computing power value of the task device to be allocated, and to ensure that the sum of the redundant computing power values consumed by each of the task devices to be allocated is equal to the total computing power requirement value.
Citation Information
Patent Citations
A data processing method and device
CN109815011A