Task execution management method and system for concentrator HPLC routing module
By building a task structure and real-time adjustment of task lists, the problems of priority adjustment and task accumulation of concentrator HPLC routing module in task management are solved, and the timely rate and efficiency of task execution are improved.
Patent Information
- Application Number
- CN202411172957.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-08-26
AI Technical Summary
During task management, the existing concentrator HPLC routing module cannot adjust task priority according to actual conditions, resulting in the inability to process important tasks in time. When the task volume is large, the time slice rotation scheduling algorithm cannot be effectively managed, resulting in task accumulation and affecting the Operational efficiency.
By building a task structure, obtaining task information and priority, obtaining task placeholding status in real time, setting task processing status, and sending task information to the concentrator HPLC routing module in sequence according to the task list and processing status, priority processing of high-priority tasks, Adjust the task list to improve task execution efficiency.
It achieves the timely rate and efficiency of task execution, avoids task accumulation, and ensures the timely processing of important tasks and efficient operation of the system.
Smart Images

Figure CN118689615B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent distribution transformer terminal task management, and in particular to a task execution management method and system for a concentrator HPLC routing module. Background Art
[0002] The intelligent distribution transformer terminal is a terminal device for reading and managing data of low-voltage meters in the power system. Through the intelligent distribution transformer terminal, communication and control can be carried out with the meter, thereby realizing data reading of user electricity consumption information and control of electricity consumption.
[0003] When the intelligent distribution transformer terminal needs to read the meter of the carrier below, it needs to access the concentrator HPLC routing module, which receives and executes the task information issued by the intelligent distribution transformer terminal. In the existing technology, when managing the tasks processed by the concentrator HPLC routing module, a scheduling algorithm based on time slice rotation is usually adopted, that is, a fixed time slice is assigned to each task, and then it is executed in sequence according to the preset order. Since the priority of the task is preset, once an emergency occurs, it cannot be adjusted according to the actual situation, which may cause important tasks to not be processed in time. And when the task volume is large, the scheduling algorithm based on time slice rotation cannot effectively manage and schedule a large number of tasks, which easily leads to task accumulation and affects the operation efficiency. Summary of the invention
[0004] Based on this, a task execution management method and system of a concentrator HPLC routing module are provided, which can manage the tasks of the concentrator HPLC routing module and improve the task execution efficiency.
[0005] In a first aspect, the present application provides a task execution management method for a concentrator HPLC routing module, the method comprising:
[0006] Construct and initialize the task structure;
[0007] Acquire at least one piece of task information, and generate a task list according to the task priority of the task information;
[0008] Acquire the task placeholder status of the concentrator HPLC routing module, and set the task processing status of the task structure according to the task placeholder status;
[0009] According to the task processing status of the task structure and the task list, the task information is sent to the concentrator HPLC routing module in sequence.
[0010] In one embodiment, the task structure includes a task identifier, a judgment interface and an execution interface, wherein the task identifier includes at least one task name corresponding to each task information; the judgment interface indicates the task processing status of the task structure; and the execution interface obtains the execution function corresponding to the task information when the judgment interface is in the execution state.
[0011] In one embodiment, the step of obtaining the task placeholder status of the concentrator HPLC routing module and setting the task processing status of the task structure according to the task placeholder status includes:
[0012] Acquire the task occupancy status of the concentrator HPLC routing module in real time;
[0013] If the task placeholder status displays a placeholder mark, the task processing status of the task structure is set to a paused state;
[0014] If the task placeholder state displays an idle sign, the task processing state of the task structure is set to an execution state.
[0015] In one embodiment, sending the task information to the concentrator HPLC routing module in sequence according to the task processing status of the task structure and the task list includes:
[0016] When the task processing state of the task structure is the execution state, extracting the highest priority task information in the task list, and using the execution interface of the task structure to obtain the execution function corresponding to the highest priority task information;
[0017] The highest priority task information and the corresponding execution function are sent to the concentrator HPLC routing module.
[0018] In one embodiment, the method further comprises:
[0019] If the task placeholder status shows an idle sign, then obtaining the last task information on the concentrator HPLC routing module;
[0020] According to the task list, obtain current task information and send it to the concentrator HPLC routing module;
[0021] The current task information is compared with the previous task information. If they are the same, the concentrator HPLC routing module continues to execute the current task information. If they are different, the task information of the concentrator HPLC routing module is initialized according to the current task information and the current task information is executed.
[0022] In one embodiment, before executing the current task information, the method further includes:
[0023] It is determined whether the concentrator HPLC routing module needs to delay before executing the current task information. If so, the concentrator HPLC routing module waits for a set delay time before executing the current task information.
[0024] In one embodiment, the method further comprises:
[0025] A timer is set to adjust the task list at set time intervals according to the priority of the task information obtained in real time.
[0026] In a second aspect, the present application also provides a task execution management system for a concentrator HPLC routing module, the system comprising:
[0027] A structure building module, used to build and initialize the task structure;
[0028] A task list generating module, used to obtain at least one piece of task information and generate a task list according to the task priority of the task information;
[0029] A structure setting module, used for obtaining the task placeholder status of the concentrator HPLC routing module, and setting the task processing status of the task structure according to the task placeholder status;
[0030] The task information management module is used to send the task information to the concentrator HPLC routing module in sequence according to the task processing status of the task structure and the task list.
[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the content corresponding to the method described in the first aspect above is implemented.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the content corresponding to the method described in the first aspect above is implemented.
[0033] The task execution management method and system of the concentrator HPLC routing module are implemented by constructing and initializing a task structure; obtaining at least one task information, and generating a task list according to the task priority of the task information; obtaining the task placeholder status of the concentrator HPLC routing module, and setting the task processing status of the task structure according to the task placeholder status; and sending the task information to the concentrator HPLC routing module in sequence according to the task processing status of the task structure and the task list, thereby realizing the task execution management of the concentrator HPLC routing module and improving the timeliness and efficiency of task execution. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 An application environment diagram of a task execution management method for a concentrator HPLC routing module in one embodiment;
[0036] Figure 2 A flowchart of a task execution management method of a concentrator HPLC routing module in one embodiment;
[0037] Figure 3 is a flow chart of step 203 in one embodiment;
[0038] Figure 4 is a flow chart of step 204 in one embodiment;
[0039] Figure 5 It is a flowchart of a task execution management method of a concentrator HPLC routing module in another embodiment;
[0040] Figure 6 A structural block diagram of a task execution management system of a concentrator HPLC routing module in one embodiment;
[0041] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The task execution management method of the concentrator HPLC routing module provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the intelligent distribution transformer terminal 10 is provided with a concentrator HPLC routing module 101 and a controller 102 .
[0044] On the controller 102 of the intelligent distribution transformer terminal 10, a task structure is constructed and initialized; at least one task information is obtained, and a task list is generated according to the task priority of the task information; the task placeholder status of the concentrator HPLC routing module 102 is obtained, and the task processing status of the task structure is set according to the task placeholder status; according to the task processing status of the task structure and the task list, the task information is sent to the concentrator HPLC routing module 102 in sequence.
[0045] The intelligent distribution transformer terminal 10 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, etc.
[0046] In an exemplary embodiment, Figure 2 As shown, a task execution management method for a concentrator HPLC routing module is provided, and the method is applied to Figure 1 The intelligent distribution transformer terminal in is taken as an example to illustrate, including the following steps 201 to 204.
[0047] Step 201, construct and initialize the task structure.
[0048] The task structure includes a task identifier, a judgment interface and an execution interface. The task identifier includes at least one task name corresponding to each of the task information. The judgment interface indicates the task processing state of the task structure, and the task processing state includes a pause state and an execution state. When the judgment interface is in the execution state, the execution interface obtains the execution function corresponding to the task information. By constructing a task structure, task management and task scheduling can be realized in a multi-task scenario, thereby improving the operating efficiency of the task execution process.
[0049] Step 202: Obtain at least one piece of task information, and generate a task list according to the task priority of the task information.
[0050] The task information includes at least one of the following: module initialization, module detection, meter file detection, point-to-point transmission, point-to-point upgrade, broadcast upgrade, rate plan transmission, and meter reading tasks for the concentrator HPLC routing module. A task list is generated according to the task priority of the task information. In the form of a task list, the management efficiency of the task information is further improved.
[0051] Step 203, obtaining the task placeholder status of the concentrator HPLC routing module, and setting the task processing status of the task structure according to the task placeholder status.
[0052] Specifically, the task occupancy status of the concentrator HPLC routing module can indicate whether the concentrator HPLC routing module is executing task information. The task processing status of the task structure is set according to the task occupancy status of the concentrator HPLC routing module, so as to avoid the task structure from frequently sending task information to the concentrator HPLC routing module that is still processing the previous task information, thereby realizing orderly task management and improving the timeliness and effectiveness of task execution.
[0053] Step 204: according to the task processing status of the task structure and the task list, the task information is sent to the concentrator HPLC routing module in sequence.
[0054] Specifically, according to the task processing status of the task structure and the task information in the task list sorted by task priority, the task information is sent to the concentrator HPLC routing module for execution in sequence.
[0055] In the task execution management method of the above-mentioned concentrator HPLC routing module, by constructing a task structure, creating a task list according to task priority, using the task structure to collect the working status of the concentrator HPLC routing module, and sending high-priority task information to the concentrator HPLC routing module for execution, the task execution management of the concentrator HPLC routing module is realized, and the timeliness and efficiency of task execution are improved.
[0056] In an exemplary embodiment, Figure 3 As shown, step 203 obtains the task placeholder status of the concentrator HPLC routing module, and sets the task processing status of the task structure according to the task placeholder status, specifically including the following steps 301 to 303.
[0057] Step 301, obtaining the task occupancy status of the concentrator HPLC routing module in real time.
[0058] Step 302: If the task placeholder status displays a placeholder mark, the task processing status of the task structure is set to a paused status.
[0059] Step 303: If the task placeholder state shows an idle flag, the task processing state of the task structure is set to an execution state.
[0060] Specifically, if the task placeholder status of the concentrator HPLC routing module displays a placeholder mark, it means that the concentrator HPLC routing module is currently executing a task, the task processing state of the task structure is set to a paused state, and the task information is stopped from being sent to the concentrator HPLC routing module according to the task list. If the task placeholder status of the concentrator HPLC routing module displays an idle mark, it means that the concentrator HPLC routing module is idle at this time, the task processing state of the task structure is set to an execution state, the task information with the highest priority is determined from the task list, and the task information with the highest priority is sent to the concentrator HPLC routing module. By adopting the steps in this embodiment, orderly task management and task execution are realized by utilizing the task structure.
[0061] In an exemplary embodiment, Figure 4 As shown, step 204 sends the task information to the concentrator HPLC routing module in sequence according to the task processing status of the task structure and the task list, which specifically includes the following steps 401 to 402.
[0062] Step 401, when the task processing state of the task structure is the execution state, extract the highest priority task information from the task list, and use the execution interface of the task structure to obtain the execution function corresponding to the highest priority task information.
[0063] Step 402: Send the highest priority task information and the corresponding execution function to the concentrator HPLC routing module.
[0064] In this embodiment, through the execution interface of the task structure, the corresponding execution function is obtained before the task information is executed, and the highest priority task information and the corresponding execution function are sent to the concentrator HPLC routing module, thereby improving the processing efficiency of the concentrator HPLC routing module for task information.
[0065] In an exemplary embodiment, Figure 5 As shown, the method further includes steps 501 to 503.
[0066] Step 501: If the task placeholder status shows an idle mark, the previous task information on the concentrator HPLC routing module is obtained.
[0067] Step 502: According to the task list, obtain current task information and send it to the concentrator HPLC routing module.
[0068] Step 503, compare the current task information with the previous task information, if they are the same, the concentrator HPLC routing module continues to execute the current task information, if they are different, initialize the task information of the concentrator HPLC routing module according to the current task information, and execute the current task information.
[0069] Specifically, when the concentrator HPLC routing module is in an idle flag, the last task information of the concentrator HPLC routing module that has been executed is obtained. The last task information is compared with the current task information to be executed. If the two are tasks of the same type, the task information originally existing in the concentrator HPLC routing module does not need to be initialized, and the task placeholder status is marked as a placeholder flag and the current task information is continued to be executed. If the two are tasks of different types, the task information of the concentrator HPLC routing module is initialized according to the current task information, and the task placeholder status is marked as a placeholder flag, and the current task information is executed.
[0070] Before executing the current task information in step 503, the method further includes the following:
[0071] It is determined whether the concentrator HPLC routing module needs to delay before executing the current task information. If so, the concentrator HPLC routing module waits for a set delay time before executing the current task information.
[0072] In this embodiment, by comparing the task information executed before and after the concentrator HPLC routing module, the current task information is directly executed when the task types are the same, and when the task types are different, the task information of the concentrator HPLC routing module is initialized and then the current task information is executed, thereby avoiding the time-consuming initialization of the module task information before the concentrator HPLC routing module executes new task information each time, thereby improving the efficiency of task execution.
[0073] In an exemplary embodiment, the method further includes: setting a timer to adjust the task list according to the priority of the task information acquired in real time at set time intervals.
[0074] Specifically, by regularly updating the task list, the priority order of task information is adjusted to ensure the timeliness of task information processing.
[0075] In a preferred exemplary embodiment, a task execution management method for a concentrator HPLC routing module is provided, which specifically includes the following contents:
[0076] Step 1: Build and initialize the task structure.
[0077] Step 2: Obtain at least one piece of task information and generate a task list according to the task priority of the task information.
[0078] Step 3, obtain the task placeholder status of the concentrator HPLC routing module. If the task placeholder status shows a placeholder mark, set the task processing state of the task structure to the pause state. If the task placeholder status shows an idle mark, set the task processing state of the task structure to the execution state.
[0079] Step 4: When the task processing state of the task structure is the execution state, extract the highest priority task information in the task list, and use the execution interface of the task structure to obtain the execution function corresponding to the highest priority task information. Send the highest priority task information and the corresponding execution function to the concentrator HPLC routing module.
[0080] Step 5, obtain the previous task information on the concentrator HPLC routing module. Compare the current task information with the previous task information. If the two are the same type of tasks, execute step 6; if the two are different types of tasks, initialize the concentrator HPLC routing module task information according to the current task information and execute step 6.
[0081] Step 6, determining whether the concentrator HPLC routing module needs to delay before executing the current task information, if so, the concentrator HPLC routing module waits for the set delay time before executing the current task information.
[0082] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0083] Based on the same inventive concept, the embodiment of the present application also provides a task execution management system for a concentrator HPLC routing module for implementing the task execution management method for the concentrator HPLC routing module involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiment of the task execution management system for one or more concentrator HPLC routing modules provided below can refer to the limitations of the task execution management method for the concentrator HPLC routing module above, and will not be repeated here.
[0084] In an exemplary embodiment, Figure 6 As shown, a task execution management system of a concentrator HPLC routing module is provided, including: a structure building module 601, a task list generating module 602, a structure setting module 603 and a task information management module 604, wherein:
[0085] Structure building module 601, used to build and initialize the task structure
[0086] The task list generating module 602 is used to obtain at least one piece of task information and generate a task list according to the task priority of the task information.
[0087] The structure setting module 603 is used to obtain the task occupancy status of the concentrator HPLC routing module and set the task processing status of the task structure according to the task occupancy status.
[0088] The task information management module 604 is used to send the task information to the concentrator HPLC routing module in sequence according to the task processing status of the task structure and the task list.
[0089] In one embodiment, the task structure includes a task identifier, a judgment interface and an execution interface, wherein the task identifier includes at least one task name corresponding to each task information; the judgment interface indicates the task processing status of the task structure; and the execution interface obtains the execution function corresponding to the task information when the judgment interface is in the execution state.
[0090] In one embodiment, the structure setting module 603 is also used to: obtain the task placeholder status of the concentrator HPLC routing module in real time; if the task placeholder status displays a placeholder mark, set the task processing state of the task structure to a paused state; if the task placeholder status displays an idle mark, set the task processing state of the task structure to an execution state.
[0091] In one embodiment, the task information management module 604 is also used to: when the task processing state of the task structure is the execution state, extract the highest priority task information in the task list, and use the execution interface of the task structure to obtain the execution function corresponding to the highest priority task information; send the highest priority task information and the corresponding execution function to the concentrator HPLC routing module.
[0092] In one embodiment, the task information management module 604 is also used to: if the task placeholder status shows an idle sign, obtain the previous task information on the concentrator HPLC routing module; obtain the current task information according to the task list and send it to the concentrator HPLC routing module; compare the current task information with the previous task information, if they are the same, the concentrator HPLC routing module continues to execute the current task information, if they are different, initialize the previously existing task information of the concentrator HPLC routing module according to the current task information, and then execute the current task information.
[0093] In one embodiment, the task information management module 604 is also used to determine whether the concentrator HPLC routing module needs to delay waiting before executing the current task information. If so, the concentrator HPLC routing module waits for the set delay time before executing the current task information.
[0094] In one of the embodiments, the system is further used to: set a timer to adjust the task list at set time intervals according to the priority of the task information obtained in real time.
[0095] Each module in the task execution management system of the above-mentioned concentrator HPLC routing module can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0096] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a task execution management method of a concentrator HPLC routing module is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0097] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0098] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0099] Construct and initialize the task structure;
[0100] Acquire at least one piece of task information, and generate a task list according to the task priority of the task information;
[0101] Acquire the task placeholder status of the concentrator HPLC routing module, and set the task processing status of the task structure according to the task placeholder status;
[0102] According to the task processing status of the task structure and the task list, the task information is sent to the concentrator HPLC routing module in sequence.
[0103] In one embodiment, the task structure includes a task identifier, a judgment interface and an execution interface, wherein the task identifier includes at least one task name corresponding to each task information; the judgment interface indicates the task processing status of the task structure; and the execution interface obtains the execution function corresponding to the task information when the judgment interface is in the execution state.
[0104] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the task placeholder status of the concentrator HPLC routing module in real time; if the task placeholder status displays a placeholder mark, setting the task processing state of the task structure to a paused state; if the task placeholder status displays an idle mark, setting the task processing state of the task structure to an execution state.
[0105] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the task processing state of the task structure is the execution state, the task information with the highest priority in the task list is extracted, and the execution function corresponding to the task information with the highest priority is obtained by using the execution interface of the task structure; the task information with the highest priority and the corresponding execution function are sent to the concentrator HPLC routing module.
[0106] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the task placeholder status displays an idle sign, the previous task information on the concentrator HPLC routing module is obtained; according to the task list, the current task information is obtained and sent to the concentrator HPLC routing module; the current task information is compared with the previous task information, if they are the same, the concentrator HPLC routing module continues to execute the current task information, if they are different, the task information of the concentrator HPLC routing module is initialized according to the current task information, and the current task information is executed.
[0107] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining whether the concentrator HPLC routing module needs to delay waiting before executing the current task information; if so, the concentrator HPLC routing module waits for the set delay time before executing the current task information.
[0108] In one embodiment, when the processor executes the computer program, the following steps are further implemented: a timer is set, and the task list is adjusted at set time intervals according to the priority of the task information obtained in real time.
[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps corresponding to the methods described in the above embodiments are implemented.
[0110] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0111] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0112] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A task execution management method for a concentrator HPLC routing module, characterized in that: The method comprises: Constructing and initializing a task structure; the task structure includes a task identifier, a judgment interface and an execution interface, wherein the task identifier includes at least one task name corresponding to each task information; the judgment interface indicates the task processing state of the task structure; the execution interface obtains the execution function corresponding to the task information when the judgment interface is in the execution state; Acquire at least one piece of task information, and generate a task list according to the task priority of the task information; set a timer, and adjust the task list according to the priority of the task information acquired in real time at set time intervals; Obtain the task placeholder status of the concentrator HPLC routing module, and set the task processing status of the task structure according to the task placeholder status; if the task placeholder status displays a placeholder mark, set the task processing status of the task structure to a paused state; if the task placeholder status displays an idle mark, set the task processing status of the task structure to an execution state; According to the task processing state of the task structure and the task list, the task information is sent to the concentrator HPLC routing module in sequence; wherein, when the task processing state of the task structure is the execution state, the task information with the highest priority in the task list is extracted, and the execution function corresponding to the task information with the highest priority is obtained by using the execution interface of the task structure; the task information with the highest priority and the corresponding execution function are sent to the concentrator HPLC routing module; Obtain the previous task information on the concentrator HPLC routing module, compare the current task information with the previous task information, if they are the same, the concentrator HPLC routing module continues to execute the current task information, if they are different, initialize the task information of the concentrator HPLC routing module according to the current task information; determine whether the concentrator HPLC routing module needs to delay before executing the current task information, if so, the concentrator HPLC routing module waits for the set delay time and then executes the current task information, wherein the current task information is the task information with the highest priority in the task list.
2. A task execution management system for a concentrator HPLC routing module, characterized in that: The system comprises: A structure construction module, used to construct and initialize a task structure; the task structure includes a task identifier, a judgment interface and an execution interface, wherein the task identifier includes at least one task name corresponding to each task information; the judgment interface indicates the task processing state of the task structure; the execution interface obtains the execution function corresponding to the task information when the judgment interface is in the execution state; A task list generation module is used to obtain at least one task information and generate a task list according to the task priority of the task information; the system is also used to set a timer to adjust the task list according to the priority of the task information obtained in real time at every set time interval; A structure setting module, used for obtaining the task placeholder status of the concentrator HPLC routing module, and setting the task processing status of the task structure according to the task placeholder status; if the task placeholder status displays a placeholder mark, the task processing status of the task structure is set to a paused state; if the task placeholder status displays an idle mark, the task processing status of the task structure is set to an execution state; A task information management module is used to send the task information to the concentrator HPLC routing module in sequence according to the task processing status of the task structure and the task list; wherein, when the task processing status of the task structure is the execution status, extract the highest priority task information in the task list, and use the execution interface of the task structure to obtain the execution function corresponding to the highest priority task information; send the highest priority task information and the corresponding execution function to the concentrator HPLC routing module; obtain the previous task information on the concentrator HPLC routing module, compare the current task information with the previous task information, if they are the same, the concentrator HPLC routing module continues to execute the current task information, if they are different, initialize the task information of the concentrator HPLC routing module according to the current task information; determine whether the concentrator HPLC routing module needs to delay before executing the current task information, if so, the concentrator HPLC routing module executes the current task information after waiting for the set delay time, wherein the current task information is the highest priority task information in the task list.
3. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to claim 1 are implemented.
4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 1 are implemented.
Citation Information
Patent Citations
Multi-task scheduling method and server
CN106155806A
Virtual multi-channel meter reading method and system for electric power acquisition terminal
CN115643500A