CN114220383A - Task processing method and device, control equipment and LED display system - Google Patents

Task processing method and device, control equipment and LED display system Download PDF

Info

Publication number
CN114220383A
CN114220383A CN202010986481.3A CN202010986481A CN114220383A CN 114220383 A CN114220383 A CN 114220383A CN 202010986481 A CN202010986481 A CN 202010986481A CN 114220383 A CN114220383 A CN 114220383A
Authority
CN
China
Prior art keywords
task
idle
calculation
control device
force
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010986481.3A
Other languages
Chinese (zh)
Inventor
陈纪周
韦桂锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202010986481.3A priority Critical patent/CN114220383A/en
Publication of CN114220383A publication Critical patent/CN114220383A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]

Abstract

The invention relates to a task processing method and device, a control device and an LED display system, wherein the method comprises the following steps: receiving an input task; evaluating the total calculation power consumption value of the input task; determining whether the input task is a high calculation power task or not based on the total calculation power consumption value and the idle calculation power value of the target control device; when the input task is a high-calculation-force task, determining task equipment to be distributed from an idle calculation force state set based on an idle calculation force value screening condition; decomposing the input task into subtasks based on the total calculation power consumption value and the idle calculation power value of the task equipment to be distributed; sending the subtasks to at least one control device in the task devices to be distributed for processing to generate a subtask processing result; the invention decomposes the high-computation input task into the subtasks and sends the subtasks to at least one control device for processing, thereby improving the response performance of the device and improving the user experience.

Description

Task processing method and device, control equipment and LED display system
Technical Field
The present invention relates to the field of distributed computing and task processing technologies, and in particular, to a task processing method, a task processing device, a control device, and an LED display system.
Background
With the development of the display industry, the screen size of the display screen is larger and larger, and the requirement on the computing processing capacity (also called computing power) of the control device connected with the display screen is higher and higher.
In the prior art, the control device relies on the hardware effort of the device itself to obtain results by consuming a large amount of computing time. In this case, the hardware configuration of the device is a critical decision factor, and when the hardware configuration of the device is higher (critical hardware such as a processor and a memory), the calculation power of the device is stronger, and the time spent on calculation with large calculation power is shorter; on the contrary, when the hardware configuration of the equipment is lower, the self computing power of the equipment is weaker, and the time spent on computing with large computing power is longer; thus, hardware cost is a critical factor. Generally, in order to ensure a certain performance, relatively good hardware must be used, there is no cost advantage, and if relatively poor hardware is used, the response performance of the control device is poor, which affects the user experience.
Disclosure of Invention
Therefore, to overcome the defects and shortcomings of the prior art, embodiments of the present invention provide a task processing method, a task processing device, a control apparatus, and an LED display system.
In one aspect, a task processing method provided in an embodiment of the present invention is applicable to a target control device in a plurality of control devices that are communicatively connected to each other, and includes: receiving an input task; evaluating a total computing power consumption value required by the input task; determining whether the input task is a big calculation power task based on the total calculation power consumption value and an idle calculation power value of the target control device; and in response to the input task being a calculation-force task, performing the steps of: determining one or more control devices in the plurality of control devices as task devices to be allocated from an idle computing force state set based on an idle computing force value screening condition, wherein the idle computing force state set is used for recording idle computing force values of the plurality of control devices; decomposing the input task into at least one subtask based on the total computing power consumption value and the idle computing power value of the task equipment to be distributed; sending the at least one subtask to at least one control device in the task device to be distributed in a one-to-one mode, so that the at least one control device respectively processes the at least one subtask and generates a subtask processing result; and summarizing the subtask processing results generated by the at least one control device to obtain the processing results corresponding to the input tasks.
In the prior art, the hardware configuration of the control device is fixed, and when the control device has no cost advantage, the more time is spent on calculation, the poorer the response performance of the control device is, and the user experience is affected. In the embodiment of the application, the target control device receives an input task, evaluates a total computing power consumption value required by the input task, determines task devices to be allocated according to an idle computing power state set and an idle computing power value screening condition when the input task is determined to be a large computing power task, decomposes the input task into subtasks according to the idle computing power value of the task devices to be allocated, sends the subtasks to one or more devices of the task devices to be allocated in a one-to-one mode to be processed simultaneously, summarizes processing results of the obtained subtasks, and solves the problem that the target control device is insufficient in computing power when receiving the large computing power task by cooperatively scheduling idle computing power of other control devices, so that the response performance of the control device is improved, and the user experience is improved.
In an embodiment of the present invention, the task processing method further includes: periodically carrying out force calculation state communication with other control equipment except the target control equipment in the plurality of control equipment to obtain idle force calculation values of the other control equipment; and generating the idle force calculation state set based on the idle force calculation value and the unique identifier of the other control equipment and the idle force calculation value and the unique identifier of the target control equipment.
In one embodiment of the present invention, the evaluating the total power consumption value required for the input task includes: and determining the total calculation power consumption value according to the task category and the data volume of the input task.
In an embodiment of the present invention, the target control device belongs to the at least one control device in the task devices to be allocated, the plurality of control devices are located in the same local area network, and even the input task is, for example, a task of adjusting brightness of pixel points of a display screen.
On the other hand, a task processing apparatus provided in an embodiment of the present invention is applicable to a target control device among a plurality of control devices that are communicatively connected to each other, and includes: the receiving module is used for receiving an input task; the evaluation module is used for evaluating a total calculation power consumption value required by the input task; the determining module is used for determining whether the input task is a high calculation power task or not based on the total calculation power consumption value and the idle calculation power value of the target control device; and a response module comprising: the determining unit is used for responding to the input task as a calculation force task, and determining one or more control devices in the plurality of control devices as task devices to be distributed from an idle calculation force state set based on an idle calculation force value screening condition, wherein the idle calculation force state set is used for recording idle calculation force values of the plurality of control devices; the decomposition unit is used for decomposing the input task into at least one subtask based on the total computing power consumption value and the idle computing power value of the task equipment to be distributed; the sending unit is used for sending the at least one subtask to at least one control device in the to-be-distributed task device in a one-to-one mode so that the at least one control device can process the at least one subtask respectively and generate a subtask processing result; and the summarizing unit is used for summarizing the subtask processing results generated by the at least one control device to obtain the processing results corresponding to the input tasks.
In one embodiment of the present invention, the task processing apparatus further includes: the acquisition module is used for periodically carrying out force calculation state communication with other control equipment except the target control equipment in the plurality of control equipment so as to acquire idle force calculation values of the other control equipment; and the generating module is used for generating the idle calculation force state set based on the idle calculation force values and the unique identifiers of the other control devices and the idle calculation force values and the unique identifiers of the target control device.
In an embodiment of the present invention, the evaluation module is specifically configured to: and determining the total calculation power consumption value according to the task category and the data volume of the input task.
In another aspect, a control device provided in an embodiment of the present invention includes a programmable logic device; the embedded processor is electrically connected with the programmable logic device; the embedded processor is configured to execute the task processing method according to any one of the foregoing embodiments, and the control device is an LED display controller and serves as the target control device.
In another aspect, an embodiment of the present invention provides an LED display system, including: an LED display controller; the display screen comprises a module controller and an LED lamp panel electrically connected with the module controller, wherein the module controller is electrically connected with the display controller; the LED display controller is used for executing the task processing method of any one of the preceding embodiments and is used as the target control device.
In one embodiment of the present invention, the LED display controller includes: the programmable logic device is electrically connected with the module controller; and the embedded processor is electrically connected with the programmable logic device and is used for executing the task processing method in the embodiment.
In still another aspect, a task processing system provided in an embodiment of the present invention includes: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform the method of task processing as described in any of the preceding embodiments.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, which is a non-volatile memory and stores program codes, and when the program codes are executed by a computer, the method for processing tasks according to any of the foregoing embodiments is implemented.
As can be seen from the above, the above technical features of the present invention may have one or more of the following advantages:
1. the method comprises the steps that an input task is received through a target control device, a total computing power consumption value required by the input task is evaluated, then when the input task is determined to be a high computing power task, a task device to be distributed is determined according to an idle computing power state set and an idle computing power value screening condition, the input task is decomposed into subtasks according to the idle computing power value of the task device to be distributed, the subtasks are sent to one or more devices of the task device to be distributed in a one-to-one mode to be processed simultaneously, then obtained subtask processing results are collected, and the target control device solves the problem that when the target control device receives the high computing power task, the computing power of the target control device is insufficient through cooperatively scheduling the idle computing power of other control devices, so that the response performance of the control device is improved, and the user experience is improved;
2. the hardware cost of the control device can be effectively reduced, and for example, the response performance of a single high-computing-power control device can be achieved by using a plurality of low-computing-power control devices.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a task processing method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of another task processing method according to the first embodiment of the present invention.
Fig. 3 is a flowchart illustrating a specific step of step S102 in a task processing method according to a first embodiment of the present invention.
Fig. 4 is a diagram illustrating an idle computation power state table according to an embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating a step flow of an idle computation power state set of a task processing method according to an embodiment of the present invention.
Fig. 6 is a flowchart illustrating a task processing method according to a second embodiment of the present invention.
Fig. 7A is a block diagram of a task processing device according to a second embodiment of the present invention.
Fig. 7B is a block diagram of another task processing device according to a second embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a control device according to a third embodiment of the present invention.
Fig. 9 is a schematic structural diagram of an LED display system according to a fourth embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a task processing system according to a fifth embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a computer-readable storage medium according to a sixth embodiment of the present invention.
[ brief description of the drawings ]
S101-S107, S201-S202, S301, S501-S503, S601-S605: a task processing method step;
400: an idle calculation power state table; 401: a unique identifier; 402: an idle force calculation value;
700: a task processing device; 701: a receiving module; 702: an evaluation module; 703: a determination module; 704: a response module; 705: an acquisition module; 706: a generation module; 7041: a determination unit; 7042: a decomposition unit; 7043: a transmitting unit; 7044: a summary unit;
800: a control device; 801: a programmable logic device; 802: an embedded processor;
900: an LED display system: 901: an LED display screen controller; 902: a display screen; 9011: a programmable logic device; 9012: an embedded processor; 9021: a module controller; 9022: an LED lamp panel;
1000: a task processing system; 1001: a processor; 1003: a memory;
1100: a computer readable storage medium.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present invention, the applicable scenarios are as follows: the control devices may be in communication with each other, for example, in the same local area network, after any one of the control devices receives an input task as a target control device, when the input task is a large computational task, the task is cooperatively processed based on a task cooperative processing policy to obtain a task processing result, and the task processing result is output, for example, to a display screen such as an LED display screen for image display. The plurality of control devices may form a local area network, a metropolitan area network, or a wide area network, or each of the plurality of control devices may be used as a server to form a server cluster, and the like, and a plurality of control devices communicating with each other may form different group transmission networks according to actual scene needs, which is not limited herein.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a task processing method according to a first embodiment of the present invention is applicable to a target control device among a plurality of control devices communicatively connected to each other, and includes:
s101, receiving an input task;
s102, evaluating a total calculation power consumption value required by the input task;
s103, determining whether the input task is a high calculation power task or not based on the total calculation power consumption value and the idle calculation power value of the target control device;
s104, if yes, determining one or more control devices in the plurality of control devices as task devices to be distributed from an idle computing force state set based on an idle computing force value screening condition, wherein the idle computing force state set is used for recording idle computing force values of the plurality of control devices;
s105, decomposing the input task into at least one subtask based on the total computing power consumption value and the idle computing power value of the task equipment to be distributed;
s106, sending the at least one subtask to at least one control device in the to-be-distributed task device in a one-to-one mode, so that the at least one control device respectively processes the at least one subtask and generates a subtask processing result;
s107, summarizing the subtask processing results generated by the at least one control device to obtain the processing results corresponding to the input tasks.
Since the hardware configuration of the control device is fixed in the prior art, when the control device has no cost advantage, the more time is spent on the calculation, the poorer the response performance of the control device is, and the user experience is affected. In the embodiment of the application, the target control device receives an input task, evaluates a total computing power consumption value required by the input task, determines task devices to be distributed according to an idle computing power state table and an idle computing power value screening condition when the input task is determined to be a large computing power task, decomposes the input task into subtasks according to the idle computing power value of the task devices to be distributed, sends the subtasks to one or more devices of the task devices to be distributed in a one-to-one mode to be processed simultaneously, summarizes processing results of the obtained subtasks, and solves the problem of insufficient computing power of the target control device when the target control device receives the large computing power task by cooperatively scheduling the idle computing power of other control devices, so that the response performance of the control device is improved, and the user experience is improved.
In step S101, in this embodiment, the input task is, for example, a task of adjusting brightness of pixel points of a display screen; in other embodiments, the input task may be other tasks for adjusting the pixel points of the display screen, such as adjusting the gray scale or adjusting the brightness, and the like, which is not limited herein.
In step S104, the target control device may belong to at least one of the task devices to be assigned, in other words, the high-effort task may be assigned to the target control device itself in addition to being assigned to other control devices.
In another specific embodiment, as shown in fig. 2, the task processing method further includes:
s201, periodically carrying out force calculation state communication with other control equipment except the target control equipment in the plurality of control equipment to obtain idle force calculation values of the other control equipment;
s202, generating the idle calculation force state set based on the idle calculation force values and the unique identifications of the other control devices and the idle calculation force values and the unique identifications of the target control device.
In another specific embodiment, as shown in fig. 3, the step S102 specifically includes:
s301, determining the total calculation power consumption value according to the task category and the data volume of the input task.
In order to more clearly understand the present embodiment, two specific embodiments of the task processing method of the present embodiment will be described in detail below with reference to fig. 4 to 6.
In this embodiment, a plurality of control devices are in communication connection with each other, the plurality of control devices form a local area network, the task processing method is applicable to a target control device in the plurality of control devices in the local area network, and the target control device is any one of the plurality of control devices.
[ detailed description of the invention ] A
As shown in fig. 5, a flow of the idle computation power state set generation step of the task processing method includes:
s501, performing communication connection with other control equipment except the target control equipment in the plurality of control equipment;
in this embodiment, since the plurality of control devices form a local area network, then the target control device in the local area network is in communication connection with the other control devices except the target control device in the plurality of control devices in the local area network. The communication connection between the target control device and the other control devices may be implemented by installing computational power cooperation software on all control devices in the local area network, where the computational power cooperation software is XServer software autonomously developed by the company, west nova cloud, ltd, and sending an identification packet or other information between the computational power cooperation software, so that all control devices in the local area network are discovered and connected in a communication manner, and the details are not limited herein. The target control device and the other control devices may be communicatively connected to each other, or the target control device and the other control devices may be communicatively connected to each other in other manners, for example, by setting a router or a switch in a local area network, which is not limited herein.
S502, carrying out force calculation state communication with other control equipment to obtain idle force calculation values of the other control equipment;
after the plurality of control devices are in communication connection with each other, the target control device and the other control devices are in force calculation state communication to obtain idle force calculation values on the other control devices. The calculation force state is the calculation capacity occupation condition of the control equipment, the calculation force value is used for measuring the calculation capacity of the control equipment, and the idle calculation force value refers to the current idle calculation capacity of the control equipment. For example, the target control device performs calculation force state communication with the other control devices, and obtains idle calculation force values of 1000, 2000, 5000 and the like of the other control devices.
And the target control equipment periodically performs computing power state communication with other control equipment, so that the aim of periodically updating the idle computing power state set is achieved. Since the idle calculation force value of each control device changes due to its operating state, the idle calculation force value of each control device needs to be acquired in real time and recorded in the idle calculation force state set. The periodicity may be every 1 second, or every 30 seconds, or every 1 minute, and so on, that is, the time period for acquiring the idle computation power of each control device in real time may be set by a user, or may be automatically adjusted by the target control device, which is not limited herein.
S503, generating the idle force calculation state set based on the idle force calculation value and the unique identifier of the other control equipment and the idle force calculation value and the unique identifier of the target control equipment.
In the embodiment of the present invention, the idle computation power state set is, for example, an idle computation power state table as shown in fig. 4, each control device in the local area network has a unique identifier 401, different unique identifiers 401 correspond to different control devices, for example, as shown in fig. 4, the unique identifier is 1, 2, 3, 4, or 5, where 1, 2, 3, 4, and 5 correspond to the first control device, the second control device, the third control device, the fourth control device, and the fifth control device, respectively. And then the target control device generates the idle calculation force state table 400 according to the obtained idle calculation force values 402 and unique identifiers 401 of other control devices and the idle calculation force values 402 and unique identifiers 401 of the target control device. For example, as shown in fig. 4, the unique identifier of the target control device is 1, and the idle calculation force value thereof is 1000; or the unique identifier of the target control device is 2, the idle calculation force value is 2500, the unique identifiers and the idle calculation force values of other control devices except the target control device are obtained, all the unique identifiers and the idle calculation force values are counted together to generate an idle calculation force state table 400, and the idle calculation force state table is stored locally and used by the target control device at any time.
The idle computation power state set may also be in other forms of different tables in other embodiments, such as an array form and the like, or a tree diagram and the like, which is not limited in the embodiments of the present invention.
[ second embodiment ] A
In this embodiment, the set of idle computing power states is an idle computing power state table 400 as shown in FIG. 4.
As shown in fig. 6, a task processing method includes:
s601, receiving an input task;
the target control device receives an input task, wherein the input task comprises a task category and a data volume of the input task, for example, the input task is a pixel brightness adjusting task on a display screen, and the data volume is 10000 pixel data volumes. The input task may also be of other task types, and different task types and different data amounts of the input task may be set according to actual requirements, which is not limited herein.
The input task may be sent by an upper computer communicatively connected to the target control device, or may be sent by another device communicatively connected to the target control device, and is not limited herein.
S602, determining task equipment to be distributed;
after receiving the input task, the target control device evaluates a total calculation power consumption value required by the input task, for example, the input task is a display screen pixel brightness adjustment task, and the data volume of the input task is data of 10000 pixel points, and then the target control device evaluates that the total calculation power consumption value required by the input task is 10000 according to the task category of the input task and the calculation power consumption value required by a single data unit corresponding to the task category locally configured by the target control device based on the data volume, namely, the calculation power value required by the input task is 10000.
And then comparing the total calculation power consumption value estimated by the input task with the idle calculation power value of the target control equipment, and when the total calculation power consumption value does not exceed the idle calculation power value of the target control equipment, directly processing the input task by the target control equipment to obtain a task processing result corresponding to the input task. For example, the total calculated power consumption value is evaluated to be 1000 calculated power value, the idle calculated power value of the target control device is 2000, the total calculated power consumption value is compared with the idle calculated power value of the target control device, an evaluation result that the total calculated power consumption value does not exceed the idle calculated power value of the target control device is obtained, and the target control device directly processes the input task to obtain a task processing result.
When the total calculation power consumption value exceeds the target control device, for example, the total calculation power consumption value is evaluated to 10000 calculation power values, the idle calculation power value of the target control device is 2000, the total calculation power consumption value is compared with the idle calculation power value of the target control device to obtain an evaluation result that the total calculation power consumption value exceeds the idle calculation power value of the target control device, and then the input task is determined to be a big calculation power task. The threshold value of the idle computation force value for determining the input task as the large computation force task is not limited to 2000, but may be other suitable values, such as 80% of 2000.
And after the input task is determined to be a high-calculation-force task, the target control device determines one or more control devices in the plurality of control devices from the idle calculation force state table as task devices to be allocated according to the idle calculation force value screening condition. The free calculation force value screening condition is set by a user, for example, if the user sets the free calculation force value screening condition to be not less than 60% of the total calculation force consumption value, for example, the total calculation force consumption value is 5000, the free calculation force value screening condition is not less than 60% of the total calculation force consumption value according to a rule set by the user, that is, the free calculation force value screening condition is not less than 3000 (that is, 3000 is used as a free calculation force threshold value for selecting the device to be allocated). Or the idle calculation force value screening condition may also be automatically set according to the condition collected by the target control device, and is not limited herein. In addition, the idle calculation force value screening condition can also be that all the idle calculation force values in the idle calculation force state table are sorted from large to small, and then the task devices to be allocated are sequentially selected from large to small until the sum of the idle calculation force values of the selected task devices to be allocated is not less than the total calculation force consumption value; however, the embodiments of the present invention are not limited thereto.
Then, according to the idle calculation force state table shown in fig. 4, the control device meeting the idle calculation force value screening condition is selected from the idle calculation force state table as the task device to be allocated, for example, a device whose idle calculation force value of the plurality of control devices exceeds an idle calculation force value threshold 3000 is selected as the task device to be allocated, and taking fig. 4 as an example, the third control device, the fourth control device, and the fifth control device are taken as the task device to be allocated.
In this embodiment, the target control device belongs to at least one control device in the task devices to be allocated, that is, the target control device may be one control device in the task devices to be allocated. In other embodiments, the target control apparatus may not belong to at least one control apparatus of the task apparatuses to be assigned, for example, the idle force value of the target control apparatus does not satisfy the idle force value screening condition, that is, the target control apparatus is not assigned to the subtask of the input task, and thus the input task is subsequently assigned to another control apparatus for processing.
S603, decomposing the input task into at least one subtask;
and decomposing the input task into at least one subtask based on the total computing power consumption value and the idle computing power value of the task equipment to be distributed, for example, the total computing power consumption value is 8000, and the task equipment to be distributed is screened/selected according to an idle computing power value screening condition (for example, the idle computing power value is not less than 1000) and comprises a first control device, a second control device, a third control device, a fourth control device and a fifth control device. Then, according to the total calculated power consumption value and the idle calculated power value of the task device to be distributed, the input task can be distributed evenly, for example, if the input task is distributed to 5 control devices on average, the input task is decomposed into 5 identical subtasks on average, the total calculated power consumption value of the input task is 8000, and the calculated power consumption value of the decomposed subtasks is 1600. However, after the division into 5 identical subtasks, there may be a case where the number of control devices capable of processing the subtasks is less than 5 according to the idle calculation force state table, and in this case, the target control device may perform dynamic adjustment, for example, changing the average division of the input task into 5 identical subtasks into 4 identical subtasks until the number of subtasks is equal to the number of control devices capable of processing the subtasks. Or the input tasks are arranged and allocated according to the magnitude of the idle calculation force value of the task device to be allocated, for example, as shown in fig. 4, the total calculation force consumption value of the input tasks is 10000, and according to the idle calculation force state table shown in fig. 4, the idle calculation force of the fifth control device is the largest and is 9500, the input tasks can be decomposed into subtasks with the calculation force consumption value of 9500 and subtasks with the calculation force consumption value of 500, and then the input tasks are allocated to the fourth control device and the fifth control device according to the distribution of the idle calculation force from large to small.
The rule for decomposing the input task into at least one subtask can be distributed according to the magnitude of the idle calculation force value in the idle calculation force state table, or can be distributed evenly, that is, the rule for decomposing the input task into at least one subtask by the target control device can be dynamically adjusted according to the actual situation. As for the task decomposition rules and strategies in the prior art, the detailed description is omitted,
S604, sending the at least one subtask to at least one control device in the task device to be distributed in a one-to-one mode;
after the target control device decomposes the input task into at least one subtask, the at least one subtask is sent to at least one control device in the task devices to be allocated in a one-to-one manner, that is, the at least one subtask and the at least one control device in the task devices to be allocated are in a one-to-one correspondence relationship, for example, as shown in fig. 4, the total calculation power consumption value of the input task is 8000, the task devices to be allocated are 5, the target control device decomposes the input task into 4 subtasks, the calculation power consumption values of the 4 subtasks are 2000, and 2000, respectively, and then the 4 subtasks are sent to a fifth control device, a fourth control device, a third control device, and a second control device in a one-to-one manner according to the idle calculation power state table. Namely, the task information is sent to 4 control devices in 5 task devices to be allocated to perform sub-task processing respectively. And then, each control device which receives the subtasks in the task devices to be distributed respectively processes the received subtasks to generate a subtask processing result.
And S605, summarizing the subtask processing results generated by the at least one control device to obtain the processing results corresponding to the input tasks.
The target control equipment collects the subtask processing results generated by each control equipment receiving the subtasks; in this embodiment, when the target control device is the second control device, the target control device belongs to the control device that receives the subtask in the task device to be allocated, that is, the target control device summarizes the subtask processing result generated by the target control device and the subtask processing results generated by other control devices except the target control device in the task device to be allocated, so as to obtain the processing result corresponding to the input task.
And then, outputting a processing result corresponding to the input task. When the target control device is an LED display controller, the processing result corresponding to the input task can be output to the display screen for displaying. For example, the input task is a task of increasing the brightness of the pixel point display of the display screen, and the input task is output to the display screen to be displayed as a result of increasing the brightness of the pixel point in the display screen.
In summary, in the prior art, the hardware configuration of the control device is fixed, and when the control device has no cost advantage, the more time is spent in the calculation, the poorer the response performance of the control device is, and the user experience is affected. In the embodiment of the application, the target control device receives an input task, evaluates a total computing power consumption value required by the input task, determines task devices to be distributed according to an idle computing power state set and an idle computing power value screening condition when the input task is determined to be a large computing power task, decomposes the input task into subtasks according to the idle computing power value of the task devices to be distributed, sends the subtasks to one or more devices of the task devices to be distributed in a one-to-one mode to be processed simultaneously, summarizes processing results of the obtained subtasks, and solves the problem that the target control device is insufficient in self computing power when receiving the large computing power task by cooperatively scheduling idle computing power of other control devices, so that the response performance of the control device is improved, and the user experience is improved.
[ second embodiment ]
As shown in fig. 7A, a task processing device 700 according to a second embodiment of the present invention includes: a receiving module 701, an evaluating module 702, a determining module 703 and a responding module 704, wherein the responding module 704 comprises: determining unit 7041, decomposing unit 7042, sending unit 7043, and summarizing unit 7044.
The receiving module 701 is used for receiving an input task; an evaluation module 702, configured to evaluate a total computation power consumption value required by the input task; a determining module 703, configured to determine whether the input task is a big calculation task based on the total calculation power consumption value and an idle calculation power value of the target control device; and a response module 704 for responding to the input task being a calculation force task.
The response module 704 includes, for example: a determining unit 7041, configured to, in response to that the input task is a big computing power task, determine, based on an idle computing power value screening condition, one or more control devices of the plurality of control devices from an idle computing power state set as task devices to be allocated, where the idle computing power state set is used to record idle computing power values of the plurality of control devices; a decomposition unit 7042, configured to decompose the input task into at least one subtask based on the total computation power consumption value and the idle computation power value of the task device to be allocated; a sending unit 7043, configured to send the at least one sub-task to at least one control device in the to-be-assigned task devices in a one-to-one manner, so that the at least one control device processes the at least one sub-task and generates a sub-task processing result; and a summarizing unit 7044, configured to summarize the sub-task processing results generated by the at least one control device to obtain a processing result corresponding to the input task.
In a specific embodiment, as shown in fig. 7B, the task processing device 700 in this embodiment further includes: an obtaining module 705, configured to periodically perform force calculation state communication with other control devices, except the target control device, in the multiple control devices, so as to obtain idle force calculation values of the other control devices; and a generating module 706, configured to generate the idle computation force state set based on the idle computation force value and the unique identifier of the other control device and the idle computation force value and the unique identifier of the target control device.
In another embodiment, the evaluation module 702 is specifically configured to: and determining the total calculation power consumption value according to the task category and the data volume of the input task.
The task processing method implemented by the task processing device disclosed in this embodiment is as described in the first embodiment, and therefore, will not be described in detail here. Optionally, each module and the other operations or functions in the second embodiment 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, and are not described herein again for brevity.
[ third embodiment ]
As shown in fig. 8, a control apparatus 800 according to a third embodiment of the present invention includes: a programmable logic device 801 and an embedded processor 802, wherein the embedded processor 802 is electrically connected with the programmable logic device 801; the embedded processor 802 is configured to perform the task processing method according to the first embodiment. In this embodiment, the embedded processor 802 and the programmable logic device 801 cooperate with each other to perform the task processing method according to the first embodiment, for example, the programmable logic device 801 sends an input task to the embedded processor 802, and then the embedded processor 802 performs the task processing method according to the first embodiment.
It should be noted that the Programmable logic device 801 in this embodiment may be an FPGA (Field Programmable Gate Array, chinese full name: Field Programmable Gate Array), or a PLD (Programmable logic device, chinese full name: complex Programmable logic device), and different types of Programmable logic devices 801 may be set according to actual needs, which is not limited herein.
The embedded processor 802 in this embodiment may be an ARM processor, which may be installed with an embedded operating system, such as a Linux operating system, which is not limited herein.
[ fourth example ] A
As shown in fig. 9, a fourth embodiment of the present invention provides an LED display system 900, which includes: an LED display controller 901; the display screen 902 comprises a module controller 9021 and an LED lamp panel 9022 electrically connected with the module controller 9021, wherein the module controller 9022 is electrically connected with the LED display controller 901;
the LED display controller 901 is configured to execute the task processing method described in the first embodiment and is used as a target control device.
Wherein the LED display controller 901 includes: the programmable logic device 9011 is electrically connected with the module controller 9021; and the embedded processor 9012 is electrically connected to the programmable logic device 9011 and is configured to execute the task processing method according to the first embodiment.
The LED display controller 901 is, for example, a sending card, where the sending card is a sending card in the LED display screen control system, and includes, for example, a video source input interface, an ethernet interface, a programmable logic device, a microcontroller, and the like, where the video source input interface is, for example, an HDMI interface, 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.
The module controller 9021 is, for example, a receiving card, where the receiving card is a receiving card in the LED display screen control system, and devices such as an ethernet interface, a programmable logic device, a microcontroller, and a pin arrangement connector are included, 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 arrangement connector is used to connect to an LED lamp panel of the LED display screen.
It is worth mentioning that the display screen 902 of this embodiment may be an LED display screen, and the LED display screen herein may include at least one LED lamp panel or at least one LED module, for example, as described above, and the at least one LED lamp panel or the LED module includes at least one LED lamp bead. Of course, the type of the display screen may also be determined according to actual needs, and is not limited herein.
[ fifth embodiment ]
As shown in fig. 10, a task processing system 1000 according to a fifth embodiment of the present invention includes: a processor 1001 and a memory 1003; the memory 1003 stores instructions executed by the processor 1001, and the instructions cause the processor 1001 to perform operations to perform the task processing method described in the foregoing first embodiment, for example.
[ sixth embodiment ]
As shown in fig. 11, a sixth embodiment of the present invention provides a computer-readable storage medium 1100, which is a non-volatile memory and stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, for example, the one or more processors are caused to execute the task processing method described in the foregoing first embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and technical solutions of the embodiments can be arbitrarily combined and used without conflict between technical features and structures, and without departing from the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A task processing method adapted to a target control apparatus among a plurality of control apparatuses communicatively connected to each other, the task processing method comprising:
receiving an input task;
evaluating a total computing power consumption value required by the input task;
determining whether the input task is a big calculation power task based on the total calculation power consumption value and an idle calculation power value of the target control device; and
in response to the input task being a calculation-force task, performing the steps of:
determining one or more control devices in the plurality of control devices as task devices to be allocated from an idle computing force state set based on an idle computing force value screening condition, wherein the idle computing force state set is used for recording idle computing force values of the plurality of control devices;
decomposing the input task into at least one subtask based on the total computing power consumption value and the idle computing power value of the task equipment to be distributed;
sending the at least one subtask to at least one control device in the task device to be distributed in a one-to-one mode, so that the at least one control device respectively processes the at least one subtask and generates a subtask processing result; and
and summarizing the subtask processing results generated by the at least one control device to obtain the processing results corresponding to the input tasks.
2. The task processing method according to claim 1, further comprising:
periodically carrying out force calculation state communication with other control equipment except the target control equipment in the plurality of control equipment to obtain idle force calculation values of the other control equipment;
and generating the idle force calculation state set based on the idle force calculation value and the unique identifier of the other control equipment and the idle force calculation value and the unique identifier of the target control equipment.
3. The task processing method according to claim 1, wherein the evaluating the total effort consumption value required for the input task includes:
and determining the total calculation power consumption value according to the task category and the data volume of the input task.
4. The task processing method according to claim 1, wherein the target control device belongs to the at least one control device among the task devices to be distributed, and the plurality of control devices are located in the same local area network.
5. A task processing apparatus adapted to a target control device among a plurality of control devices communicatively connected to each other, the task processing apparatus comprising:
the receiving module is used for receiving an input task;
the evaluation module is used for evaluating a total calculation power consumption value required by the input task;
the determining module is used for determining whether the input task is a high calculation power task or not based on the total calculation power consumption value and the idle calculation power value of the target control device; and
a response module, comprising:
the determining unit is used for responding to the input task as a calculation force task, and determining one or more control devices in the plurality of control devices as task devices to be distributed from an idle calculation force state set based on an idle calculation force value screening condition, wherein the idle calculation force state set is used for recording idle calculation force values of the plurality of control devices;
the decomposition unit is used for decomposing the input task into at least one subtask based on the total computing power consumption value and the idle computing power value of the task equipment to be distributed;
the sending unit is used for sending the at least one subtask to at least one control device in the to-be-distributed task device in a one-to-one mode so that the at least one control device can process the at least one subtask respectively and generate a subtask processing result; and
and the summarizing unit is used for summarizing the subtask processing results generated by the at least one control device to obtain the processing results corresponding to the input tasks.
6. The task processing device according to claim 5, further comprising:
the acquisition module is used for periodically carrying out force calculation state communication with other control equipment except the target control equipment in the plurality of control equipment so as to acquire idle force calculation values of the other control equipment; and
and the generating module is used for generating the idle calculation force state set based on the idle calculation force values and the unique identifiers of the other control devices and the idle calculation force values and the unique identifiers of the target control device.
7. The task processing device according to claim 5, wherein the evaluation module is specifically configured to:
and determining the total calculation power consumption value according to the task category and the data volume of the input task.
8. A control apparatus, characterized by comprising:
a programmable logic device;
the embedded processor is electrically connected with the programmable logic device;
wherein the embedded processor is configured to execute the task processing method according to any one of claims 1 to 4, and the control device is an LED display controller and serves as the target control device.
9. An LED display system, comprising:
an LED display controller; and
the display screen comprises a module controller and an LED lamp panel electrically connected with the module controller, wherein the module controller is electrically connected with the LED display controller;
wherein the LED display controller is configured to execute the task processing method according to any one of claims 1 to 4, and is the target control device.
10. The LED display system of claim 9, wherein the LED display controller comprises:
the programmable logic device is electrically connected with the module controller;
an embedded processor electrically connected to the programmable logic device and configured to perform the task processing method of any one of claims 1 to 4.
CN202010986481.3A 2020-09-18 2020-09-18 Task processing method and device, control equipment and LED display system Pending CN114220383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010986481.3A CN114220383A (en) 2020-09-18 2020-09-18 Task processing method and device, control equipment and LED display system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010986481.3A CN114220383A (en) 2020-09-18 2020-09-18 Task processing method and device, control equipment and LED display system

Publications (1)

Publication Number Publication Date
CN114220383A true CN114220383A (en) 2022-03-22

Family

ID=80695743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010986481.3A Pending CN114220383A (en) 2020-09-18 2020-09-18 Task processing method and device, control equipment and LED display system

Country Status (1)

Country Link
CN (1) CN114220383A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180350295A1 (en) * 2017-06-04 2018-12-06 Apple Inc. Long-term history of display intensities
CN109815011A (en) * 2018-12-29 2019-05-28 东软集团股份有限公司 A kind of method and apparatus of data processing
CN109873868A (en) * 2019-03-01 2019-06-11 深圳市网心科技有限公司 A kind of computing capability sharing method, system and relevant device
CN110231991A (en) * 2019-05-31 2019-09-13 新华三大数据技术有限公司 A kind of method for allocating tasks, device, electronic equipment and readable storage medium storing program for executing
CN110310593A (en) * 2019-06-29 2019-10-08 上海闻泰信息技术有限公司 Display effect adjusting method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180350295A1 (en) * 2017-06-04 2018-12-06 Apple Inc. Long-term history of display intensities
CN109815011A (en) * 2018-12-29 2019-05-28 东软集团股份有限公司 A kind of method and apparatus of data processing
CN109873868A (en) * 2019-03-01 2019-06-11 深圳市网心科技有限公司 A kind of computing capability sharing method, system and relevant device
CN110231991A (en) * 2019-05-31 2019-09-13 新华三大数据技术有限公司 A kind of method for allocating tasks, device, electronic equipment and readable storage medium storing program for executing
CN110310593A (en) * 2019-06-29 2019-10-08 上海闻泰信息技术有限公司 Display effect adjusting method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US7340654B2 (en) Autonomic monitoring in a grid environment
CN107092522B (en) Real-time data calculation method and device
CN111818159B (en) Management method, device, equipment and storage medium of data processing node
CN111459665A (en) Distributed edge computing system and distributed edge computing method
WO2023066084A1 (en) Computing power distribution method and apparatus, and computing power server
CN112579304A (en) Resource scheduling method, device, equipment and medium based on distributed platform
CN112749221A (en) Data task scheduling method and device, storage medium and scheduling tool
CN115373835A (en) Task resource adjusting method and device for Flink cluster and electronic equipment
CN112015549B (en) Method and system for selectively preempting scheduling nodes based on server cluster
CN112799596A (en) Capacity expansion control method and device for storage resources and electronic equipment
CN111418187A (en) Scalable statistics and analysis mechanism in cloud networks
CN112486642A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
CN111932099A (en) Marketing business management system and marketing business management method
CN110895506A (en) Construction method and construction system of test data
CN114219189A (en) Task processing method and task processing device
CN111400041A (en) Server configuration file management method and device and computer readable storage medium
CN114666335A (en) DDS-based distributed system load balancing device
CN110602207A (en) Method, device, server and storage medium for predicting push information based on off-network
CN114220383A (en) Task processing method and device, control equipment and LED display system
CN110868330B (en) Evaluation method, device and evaluation system for CPU resources which can be divided by cloud platform
CN115543577A (en) Kubernetes resource scheduling optimization method based on covariates, storage medium and equipment
CN115712572A (en) Task testing method and device, storage medium and electronic device
CN112054926B (en) Cluster management method and device, electronic equipment and storage medium
Cao et al. Online cost-rejection rate scheduling for resource requests in hybrid clouds
CN114090201A (en) Resource scheduling method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220322

RJ01 Rejection of invention patent application after publication