Lightweight multitask real-time scheduling method based on microcomputer

By detecting task execution evaluation parameters and classifying task types, and combining collaborative analysis and anomaly analysis methods to optimize task allocation, the real-time and reliability issues of task execution arrangements in existing technologies are solved, ensuring that the monitoring process of the power system meets actual needs.

CN120803673AActive Publication Date: 2025-10-17HEBEI RUIJING ENERGY TECH CO LTD

Patent Information

Application Number
CN202511292238.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-11
Publication Date
2025-10-17
Estimated Expiration
2045-09-11

AI Technical Summary

Technical Problem

Existing technologies fail to effectively combine the actual power plant operating conditions with the priority setting scheme for the task processing process, resulting in the task execution arrangement being unable to meet the real-time and reliability of the power system operating parameters.

Method used

By periodically detecting the task execution evaluation parameters, determining the initial evaluation priority coefficient, and classifying tasks according to the data association radiation index and data analysis radiation index, performing radiation collaboration analysis or abnormal effectiveness analysis, and combining the collaboration demand index and radiation effectiveness evaluation parameters to optimize task allocation, we can ensure the smoothness and reliability of task execution.

Benefits of technology

It achieves real-time optimization of task execution plans, meets the real-time and reliability requirements of the power system operating parameters monitoring process, and improves the adaptability and fluency of task processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803673A_ABST
    Figure CN120803673A_ABST
Patent Text Reader

Abstract

The invention relates to the field of data analysis, in particular to a lightweight multi-task real-time scheduling method based on a microcomputer, which comprises the following steps: periodically determining whether to perform scheduling optimization analysis for a task processing process according to task execution evaluation parameters; according to the data association radiation index and the data analysis radiation index, radiation collaborative analysis or abnormal effective analysis is carried out on the target execution task; during radiation collaborative analysis, determining a collaborative analysis combination of each type of execution tasks, and determining whether to adjust the initial evaluation priority coefficient or not based on an initial difference parameter of the collaborative analysis combination; during abnormal effective analysis, determining whether to adjust the initial evaluation priority coefficient or not according to the correlation reference priority difference index; according to the method and the device, the execution arrangement of the data processing tasks in the actual operation process can effectively adapt to the actual requirements, so that the real-time performance and the reliability of the data processing process are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of data analysis, and in particular to a lightweight multitasking real-time scheduling method based on a microcomputer. BACKGROUND

[0002] Due to its own cost advantage and volume advantage, the microcomputer is widely used in the collection and analysis of bottom layer data of power plants. Since the data involved is relatively rich, the transmission of the data and the execution priority of the processing task need to be set to ensure the real-time and reliability of the monitoring of the operation parameters of the power grid. However, in the actual working process, the demand for collection and analysis of different data under different working conditions is different. Only according to the existing fixed priority execution strategy, the corresponding working condition demand cannot be effectively met. Therefore, how to make targeted optimization for the execution priority scheme of the data collection and analysis process in combination with the actual working process to ensure the overall task processing efficiency is a problem to be solved by those skilled in the art.

[0003] A task scheduling method, device, computer equipment, storage medium and computer program product are disclosed in Chinese Patent Application Publication No. CN117950833A, which relates to the field of power automation. The method comprises: obtaining a data analysis task published by a virtual power plant unit; matching at least two candidate servers corresponding to the task type of the data analysis task in the edge cluster; calculating the average resource utilization of the available servers in each candidate server based on the preset resource utilization calculation index; determining a target server in the available servers according to the average resource utilization, and assigning the data analysis task to the target server. Chinese Patent Publication No. CN109992388A discloses a multi-task management system for nuclear power plant safety level device software, which includes a time management unit for satisfying multiple application platforms, the time management unit being capable of measuring the running time of the functional modules in the nuclear power plant safety level device software; a task management unit provided with a task creation interface, through which tasks can be added in the nuclear power plant safety level device software; a task scheduling unit for scheduling the tasks in the nuclear power plant safety level device software and executing the tasks in sequence according to their set priorities; and an exception handling unit for obtaining the exception conditions of the tasks in the nuclear power plant safety level device software and providing exception handling modes for the user to select. However, the above-mentioned scheme has the following defects: it fails to effectively combine the actual power plant operation condition with the real-time optimization of the priority setting scheme for the task processing process, resulting in that the execution arrangement of the tasks cannot effectively meet the actual data processing demand, and further affecting the real-time and reliability of the monitoring process of the operation parameters of the power system. SUMMARY

[0004] To this end, the application provides a lightweight multitasking real-time scheduling method based on a microcomputer, to overcome the problem that the prior art fails to effectively combine the actual power plant operating conditions to perform real-time optimization on the priority setting scheme for the task processing process, resulting in that the execution arrangement for the task cannot effectively meet the actual data processing requirements, thereby affecting the real-time and reliability of the monitoring process of the operating parameters of the power system.

[0005] To achieve the above-mentioned purpose, the application provides a lightweight multitasking real-time scheduling method based on a microcomputer, comprising: Periodically detecting the task execution evaluation parameters to determine whether to perform scheduling optimization analysis on the task processing process; During the scheduling optimization analysis, determining the initial evaluation priority coefficient of each target execution task according to the task information abnormal parameter, and determining the category of the target execution task according to the data correlation radiation index and the data analysis radiation index, to determine whether to perform radiation synergy analysis or abnormal effective analysis on each target execution task; During the radiation synergy analysis, determining the synergy analysis combination of each type of execution task based on the interaction coverage parameter or the analysis coverage parameter according to the synergy demand index, and determining whether to adjust the initial evaluation priority coefficient of each type of execution task based on the initial difference parameter of the synergy analysis combination; During the abnormal effective analysis, determining whether to adjust the initial evaluation priority coefficient of each type of execution task according to the correlation reference priority difference index; Based on the adjusted initial evaluation priority coefficient, each target execution task is executed, and execution allocation optimization is performed on each target execution task, and execution demand analysis or execution conflict analysis is used to determine the execution target matching for each target execution task based on the radiation effective evaluation parameter.

[0006] Further, when the task execution evaluation parameter of the target evaluation period is greater than the preset task execution evaluation parameter, scheduling optimization analysis is performed on the task processing process; The initial evaluation priority coefficient and the task information abnormal parameter are in a positive correlation relationship; The target evaluation period is the execution evaluation period at the current time.

[0007] Further, the category of the target execution task includes a type of execution task and a type of execution task; The type of execution task is a target execution task with a data correlation radiation index greater than a preset data correlation radiation index or a data analysis radiation index greater than a preset data analysis radiation index; The type of execution task is a target execution task with a data correlation radiation index less than or equal to a preset data correlation radiation index and a data analysis radiation index less than or equal to a preset data analysis radiation index.

[0008] Further, if there is a target execution task being a first type of execution task, radiation synergy analysis is performed for the target execution task. The synergy demand index is determined according to the data analysis radiation index and the radiation task interaction index, and the synergy demand index is positively correlated with the data analysis radiation index and the radiation task interaction index, respectively.

[0009] Further, if the synergy demand index of a first type of execution task is greater than a preset synergy demand index, a synergy analysis combination of the first type of execution task is determined according to an interaction coverage parameter. If the synergy demand index of a first type of execution task is less than or equal to a preset synergy demand index, a synergy analysis combination of the first type of execution task is determined according to an analysis coverage parameter.

[0010] Further, if the initial difference parameter of the synergy analysis combination of a first type of execution task is greater than a preset initial difference parameter, the initial evaluation priority coefficient of the first type of execution task is increased according to a dominant difference coefficient. The increase value of the initial evaluation priority coefficient is positively correlated with the dominant difference coefficient.

[0011] Further, if there is a target execution task being a second type of execution task, abnormal effective analysis is performed for the target execution task, wherein, If the associated reference priority difference index of a second type of execution task is greater than a preset associated reference priority difference index, the initial evaluation priority coefficient of the second type of execution task is decreased according to the associated reference priority difference index. The decrease value of the initial evaluation priority coefficient is negatively correlated with the associated reference priority difference index.

[0012] Further, if the radiation effective evaluation parameter of a target execution task is greater than a preset radiation effective evaluation parameter, execution demand analysis is performed for the target execution task to perform execution target matching, wherein, Whether to perform execution target matching for the target execution task is determined according to the radiation priority difference index. The radiation effective evaluation parameter is determined according to the data analysis radiation index and the reference radiation priority index.

[0013] Further, if the radiation priority difference index of a target execution task is greater than a preset radiation priority difference index, an execution allocation device of the target execution task is determined according to the radiation distribution proportion index of each to-be-allocated device.

[0014] Further, if the radiation effective evaluation parameter of the target execution task is less than or equal to a preset radiation effective evaluation parameter, execution target matching is performed for each target execution task by using execution conflict analysis, wherein, whether execution target matching is performed for the target execution task is determined according to the predicted execution conflict index of the existing allocation device; If the predicted execution conflict index is greater than a preset predicted execution conflict index, the execution allocation device of the target execution task is determined according to the predicted execution conflict index of each to-be-matched device.

[0015] Compared with the prior art, the present application has the beneficial effects that the present application determines whether to perform scheduling optimization analysis for the task processing process according to the task execution evaluation parameter, the task execution evaluation parameter represents the adaptation of the priority scheme of the task execution in the previous stage to the monitoring process of the current stage of the electrical system, and for the case that the adaptation is poor, the specific optimization mode of the priority execution scheme of the task execution is determined according to the actual situation of the different target execution tasks, the present application optimizes the priority scheme of the task execution in a timely manner to meet the actual data processing requirements and ensure the real-time performance and reliability of the monitoring process of the operating parameters of the power system.

[0016] Further, in the present application, the category of the target execution task is determined according to the data correlation radiation index and the data analysis radiation index, whether radiation coordination analysis or abnormal effective analysis is performed for the target execution task is determined according to the category of the target execution task, the influence degree of the processing process of the target execution task on the processing situation of other target execution tasks and the influence degree of the processing situation of other target execution tasks on the processing process of the target execution task are represented by the data correlation radiation index and the data analysis radiation index, so as to make targeted adjustment to the initial evaluation priority coefficient, so that the actual scheduling optimization analysis process can meet the actual situation, and the effectiveness of the optimization result of the priority execution scheme is ensured.

[0017] Further, in the present application, the coordination analysis combination of each type of execution task is determined based on the interaction coverage parameter or the analysis coverage parameter according to the coordination demand index, and whether to adjust the initial evaluation priority coefficient of each type of execution task is determined based on the initial difference parameter of the coordination analysis combination, since the processing process of each type of execution task is greatly affected by the processing situation of other target execution tasks or greatly affects the processing situation of other target execution tasks, the initial evaluation priority coefficient of each type of execution task needs to be optimized in combination with the analysis demand of the target execution task in the coordination analysis combination, the high coupling between part of the tasks is considered in the actual data processing task execution process, and the smoothness of the task execution arrangement is further ensured.

[0018] Further, the present application determines the execution target matching of each target execution task by using the execution demand analysis or the execution conflict analysis based on the radiation effective evaluation parameter, and the radiation effective evaluation parameter represents the demand situation of the processing procedure of the target execution task to the processing result of other target execution tasks, so that the device for executing the target execution task is matched in a targeted manner, and the arrangement scheme of the device for executing each target execution task ensures the smoothness of the overall data processing procedure. BRIEF DESCRIPTION OF DRAWINGS

[0019] Fig. 1 a schematic diagram of the microcomputer-based lightweight multitasking real-time scheduling method of the present application; Fig. 2 a flowchart of the present application for determining whether to perform scheduling optimization analysis on the task processing procedure according to the task execution evaluation parameter; Fig. 3 a flowchart of the present application for determining the category of the target execution task according to the data correlation radiation index and the data analysis radiation index; Fig. 4 a flowchart of the present application for determining the execution target matching of each target execution task by using the execution demand analysis or the execution conflict analysis based on the radiation effective evaluation parameter. DETAILED DESCRIPTION

[0020] In order to make the objects and advantages of the present application clearer, the present application will be further described below with reference to the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and do not limit the present application.

[0021] The preferred embodiments of the present application will be described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application, and are not intended to limit the protection scope of the present application.

[0022] It should be noted that in the description of the present application, the terms "upper", "lower", "left", "right", "inner", "outer" and the like indicate the direction or positional relationship terms based on the direction or positional relationship shown in the drawings, which are only for the convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application.

[0023] Moreover, it needs to be explained that, in the description of the present application, unless otherwise explicitly specified and limited, the terms "mounting", "connection", "connecting" should be understood in a broad sense, for example, can be fixed connection, can also be detachable connection, or integrally connected; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through intermediate medium, can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0024] Please refer to Figs. 1 to 4 It is shown that the present application provides a kind of lightweight multitasking real-time scheduling method based on microcomputer, comprising: S1, periodically detects the evaluation parameter for task execution to determine whether to schedule optimization analysis for task processing process; S2, during scheduling optimization analysis, determine the initial evaluation priority coefficient of each target execution task according to task information abnormal parameter, and determine the category of target execution task according to data correlation radiation index and data analysis radiation index, to determine whether to carry out radiation coordination analysis or abnormal effective analysis for each target execution task; S3, during radiation coordination analysis, determine the coordination analysis combination of each one type execution task based on interaction coverage parameter or analysis coverage parameter according to coordination demand index, and determine whether to adjust the initial evaluation priority coefficient of each one type execution task based on the initial difference parameter of coordination analysis combination; S4, during abnormal effective analysis, determine whether to adjust the initial evaluation priority coefficient of each two type execution task according to correlation reference priority difference index; S5, execute each target execution task based on the initial evaluation priority coefficient after adjustment, and perform execution allocation optimization for each target execution task, determine to use execution demand analysis or execution conflict analysis to perform execution target matching for each target execution task based on radiation effective evaluation parameter.

[0025] Among them, the present application is used for optimizing the execution priority arrangement of transmission task and analysis task of operation data of power system, the power system to be monitored is recorded as target analysis system, there are several task processing devices and several electrical devices in the target analysis system in the present application, the task processing device is a microcomputer used for executing data transmission task and analysis task, and the transmission task or processing task of any category of operation monitoring data of power system is recorded as a target execution task, the content corresponding to the target execution task in the present application includes but is not limited to: transmission of current value and voltage value obtained at different monitoring positions and different time, frequency measurement task, frequency deviation calculation task, phase voltage calculation task and power factor angle calculation task, the category of operation monitoring data in the present application includes but is not limited to current value and voltage value. The application applies several priority decision records, each of which records at least one task execution evaluation parameter of an optimization process of execution priority of a data processing task for an operation monitoring stage of a power system, a data correlation radiation index, a data analysis radiation index, a cooperative demand index, an interactive coverage parameter, an analysis coverage parameter, an initial difference parameter, a correlation reference priority difference index, a radiation effective evaluation parameter, a radiation priority difference index, and a prediction execution conflict index, and each of which corresponds to a qualified mark, which records whether the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system meet the user demand.

[0026] Specifically, when the task execution evaluation parameter of the target evaluation period is greater than the preset task execution evaluation parameter, scheduling optimization analysis is performed on the task processing process. The initial evaluation priority coefficient and the task information abnormal parameter are in a positive correlation relationship. The target evaluation period is the execution evaluation period at the current time.

[0027] In the application, a cycle execution evaluation period is applied, the length of the execution evaluation period can be determined by the user, the higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the shorter the length of the execution evaluation period, and a length of the execution evaluation period is provided, the execution evaluation period is 10 min, at the starting time of each execution evaluation period, the task execution evaluation parameter is detected. If the current time is the starting time of an execution evaluation period, the task execution evaluation parameter is detected, and the execution evaluation period is recorded as the target evaluation period, for a single execution evaluation period, the task execution evaluation parameter , is the task execution parameter of the previous execution evaluation period of the execution evaluation period, n is the number of execution evaluation periods in the execution evaluation stage, is the i-th execution evaluation period of the previous execution evaluation period of the execution evaluation period in the execution evaluation stage, the ending time of the execution evaluation stage is the ending time of the previous execution evaluation period of the execution evaluation period, the length of the execution evaluation stage is set by the user according to the actual working scene, and a length of the execution evaluation stage is provided, the length of the execution evaluation stage is 10 times the length of the execution evaluation period, the task execution parameter is the maximum value of the execution waiting time length of the target execution task generated in the execution evaluation period, for a single target execution task, the execution waiting time length is the interval time length between the generation time and the execution start time of the target execution task. The task information exception parameter is the absolute value of the difference between the value of the running monitoring data corresponding to the task performed by the single target and the reference value corresponding to the running monitoring data, divided by the reference value corresponding to the running monitoring data. The value of the preset task execution evaluation parameter can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the value of the preset task execution evaluation parameter. A method for determining the value of the preset task execution evaluation parameter is provided. The minimum value of the task execution evaluation parameter of the execution evaluation period for scheduling optimization analysis of the task processing process in the priority decision record meeting the requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is defined as the preset task execution evaluation parameter.

[0028] Specifically, the category of the target execution task includes a first type of execution task and a second type of execution task. The first type of execution task is a target execution task with a data correlation radiation index greater than a preset data correlation radiation index or a data analysis radiation index greater than a preset data analysis radiation index. The second type of execution task is a target execution task with a data correlation radiation index less than or equal to a preset data correlation radiation index and a data analysis radiation index less than or equal to a preset data analysis radiation index.

[0029] In the present application, a cycle of task evaluation period is applied. The length of the task evaluation period can be determined by the user. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the shorter the length of the task evaluation period. A task evaluation period of 5s is provided. At the end of each task evaluation period, the category of the target execution task generated in the corresponding task evaluation period is analyzed. The data correlation radiation index of the target execution task is equal to the number of electrical equipment connected with the monitoring position corresponding to the target execution task / the number of electrical equipment in the target analysis system, the data analysis radiation index is equal to the number of radiation execution tasks existing in the target execution task / the number of target execution tasks existing in the current task evaluation period, and the target execution task taking the processing output of the target execution task as input is recorded as the radiation execution task of the target execution task. The preset data correlation radiation index and the preset data analysis radiation index are determined by the user according to the actual working scene. For example, the user can set according to the priority decision record. The higher the requirement of the user for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the preset data correlation radiation index and the preset data analysis radiation index. A method for determining the preset data correlation radiation index is provided. The maximum value of the data correlation radiation index of the second type of execution task in the priority decision record meeting the requirement of the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset data correlation radiation index. A method for determining the preset data analysis radiation index is provided. The maximum value of the data analysis radiation index of the second type of execution task in the priority decision record meeting the requirement of the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset data analysis radiation index.

[0030] Specifically, if the target execution task is a first type of execution task, radiation coordination analysis is performed on the target execution task. The coordination demand index is determined according to the data analysis radiation index and the radiation task interaction index. The coordination demand index is positively correlated with the data analysis radiation index and the radiation task interaction index.

[0031] For a single first type of execution task, the coordination demand index is the sum of the data analysis radiation index and the radiation task interaction index of the first type of execution task. The radiation task interaction index is the maximum value of the task interaction index of the first type of execution task and its radiation execution task. For any two target execution tasks, the task interaction index is equal to the number of radiation execution tasks existing in the two target execution tasks / the number of target execution tasks existing in the current task evaluation period. The preset synergy demand index value can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. A preset synergy demand index value method is provided. The priority decision record for determining the synergy analysis combination according to the interaction coverage parameter is recorded as a combination reference record. The minimum value of the synergy demand index in the combination reference record that meets the timeliness and reliability requirements of the user for the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset synergy demand index.

[0032] Specifically, if the synergy demand index of a type of execution task is greater than the preset synergy demand index, the synergy analysis combination of the type of execution task is determined according to the interaction coverage parameter; If the synergy demand index of a type of execution task is less than or equal to the preset synergy demand index, the synergy analysis combination of the type of execution task is determined according to the analysis coverage parameter.

[0033] For a single type of execution task, if the synergy demand index of the type of execution task is greater than the preset synergy demand index, it indicates that there are more other target execution tasks affected by the type of execution task. Therefore, the synergy analysis combination is determined according to the interaction coverage parameter to ensure that the subsequent adjustment process of the initial evaluation priority coefficient according to the synergy analysis combination considers the strong coupling between the execution sequence and other tasks. The interaction coverage parameter of the determined synergy analysis combination is greater than the preset interaction coverage parameter. The interaction coverage parameter = the number of radiation execution tasks in which each target execution task in the synergy analysis combination and the type of execution task coexist / the number of radiation execution tasks in which the type of execution task exists. The preset interaction coverage parameter value can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirements for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the greater the preset interaction coverage parameter value. A preset interaction coverage parameter value method is provided. The minimum value of the interaction coverage parameter of the synergy analysis combination in the combination reference record that meets the timeliness and reliability requirements of the user for the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset interaction coverage parameter. For a single one-class execution task, if the synergy demand index of the one-class execution task is less than or equal to a preset synergy demand index, it indicates that the one-class execution task has less other target execution tasks affected by the one-class execution task, and therefore, a synergy analysis combination is determined according to the analysis coverage parameter, so as to ensure that the analysis coverage parameter of the determined synergy analysis combination is greater than a preset analysis coverage parameter in the process of adjusting the initial evaluation priority coefficient according to the synergy analysis combination, the analysis coverage parameter = the number of target execution tasks in the synergy analysis combination taking the one-class execution task as a radiation execution task / the number of associated execution tasks of the one-class execution task. The preset analysis coverage parameter can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the greater the value of the preset interaction coverage parameter. A method for determining the value of the preset analysis coverage parameter is provided. The priority decision record for determining the synergy analysis combination according to the analysis coverage parameter is recorded as a synergy reference record. The minimum value of the analysis coverage parameter of the synergy reference record in the synergy reference record meeting the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset analysis coverage parameter.

[0034] Specifically, if the initial difference parameter of the synergy analysis combination of a one-class execution task is greater than a preset initial difference parameter, the initial evaluation priority coefficient of the one-class execution task is adjusted to increase according to the dominant difference coefficient. The increase value of the initial evaluation priority coefficient and the absolute value of the dominant difference coefficient are in a positive correlation relationship.

[0035] For a single one-class execution task, the initial difference parameter is the average value of the difference between the initial evaluation priority coefficient of each target execution task in the synergy analysis combination of the one-class execution task and the initial evaluation priority coefficient of the one-class execution task, the dominant difference coefficient is the difference between the initial evaluation priority coefficient of the dominant reference execution task and the initial evaluation priority coefficient of the one-class execution task, and the dominant difference task is the target execution task having the most associated execution tasks in the synergy analysis combination. For a single target execution task, the radiation execution task of the target execution task and the target execution task taking the target execution task as a radiation execution task are recorded as the associated execution tasks of the target execution task. If the initial difference parameter of the cooperative analysis combination of the one type of execution task determined by the one type of execution task is greater than the preset initial difference parameter, it indicates that the priority processing situation of the target execution task having strong coupling relationship with the one type of execution task and the one type of execution task is greatly different, and the initial evaluation priority coefficient needs to be adjusted according to the difference to avoid the strong coupling between the target execution tasks affecting the task execution efficiency. The value of the preset initial difference parameter can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the value of the preset initial difference parameter. A method for determining the value of the preset initial difference parameter is provided. The average value of the initial difference parameter of the one type of execution task in the priority decision record for adjusting the initial evaluation priority coefficient to meet the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is taken as the preset initial difference parameter.

[0036] Specifically, if there is a target execution task that is a second type of execution task, an abnormal effective analysis is performed on the target execution task, wherein, If the associated reference priority difference index of the second type of execution task is less than or equal to the preset associated reference priority difference index, the initial evaluation priority coefficient of the second type of execution task is adjusted by decreasing according to the associated reference priority difference index. The decreasing value of the initial evaluation priority coefficient is negatively correlated with the associated reference priority difference index.

[0037] Among them, for a single second type of execution task, since the processing process of the second type of execution task is less affected by the processing situation of other target execution tasks and has less impact on the processing situation of other target execution tasks, an abnormal effective analysis is performed on the target execution task to determine whether the abnormal situation corresponding to the target execution task is reliable. The associated reference priority difference index = the standard deviation of the initial evaluation priority coefficient of each electrical associated task of the second type of execution task / the average value of the initial evaluation priority coefficient of each electrical associated task of the second type of execution task. The electrical associated task is a target execution task existing in an electrical device having electrical connection with the monitoring position corresponding to the second type of execution task. The preset associated reference priority difference index value can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the preset associated reference priority difference index value. A method for determining the value of the preset associated reference priority difference index is provided. The minimum value of the associated reference priority difference index of the two-class execution task for adjusting the initial evaluation priority coefficient in the priority decision record meeting the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is defined as the preset associated reference priority difference index.

[0038] Specifically, if the radiation effective evaluation parameter of the target execution task is greater than the preset radiation effective evaluation parameter, execution demand analysis is used to perform execution target matching for the target execution task, wherein, whether to perform execution target matching for the target execution task is determined according to the radiation priority difference index; The radiation effective evaluation parameter is determined according to the data analysis radiation index and the reference radiation priority index.

[0039] For a single target execution task, the radiation effective evaluation parameter = the number of radiation execution tasks in which the target execution task exists / the number of associated execution tasks in which the target execution task exists, and the radiation priority difference index is the minimum value of the difference between the initial evaluation priority coefficient of the target execution task and the initial evaluation priority coefficient of each radiation execution task thereof. For a single target execution task, if the radiation effective evaluation parameter of the target execution task is greater than the preset radiation effective evaluation parameter, it indicates that the demand for the processing result of other target execution tasks in the processing process of the target execution task is heavier. Then, execution demand analysis is used to perform execution target matching. Whether to perform execution target matching for the target execution task is determined by determining whether to perform execution target matching for the target execution task, whether to perform execution target matching for the target execution task, and whether to perform execution target matching for the target execution task, thereby avoiding interference with the completion of other target execution tasks due to the re-determination of the execution target matching of the target execution task. The preset radiation effective evaluation parameter value can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the preset radiation effective evaluation parameter value. A method for determining the value of the preset radiation effective evaluation parameter is provided. The priority decision record in which the execution target matching is performed by using the execution demand analysis on the target execution task is recorded as a matching reference record. The minimum value of the radiation effective evaluation parameter in the matching reference record that meets the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset radiation effective evaluation parameter.

[0040] Specifically, if the radiation priority difference index of the target execution task is greater than the preset radiation priority difference index, the execution allocation device of the target execution task is determined according to the radiation distribution proportion index of each to-be-allocated device.

[0041] For a single target execution task, if the radiation priority difference index of the target execution task is greater than the preset radiation priority difference index, it indicates that there is a certain difference between the target execution task and the initial evaluation priority coefficient of the radiation execution task thereof. A certain time is reserved for the target execution task to determine the execution allocation device and complete the transfer of the target execution task. Therefore, the to-be-allocated device concentrated by the radiation execution task of the target execution task is determined again based on the radiation distribution proportion index, which saves the time resources required for the transmission or calling of the output content of the subsequent stage of the target execution task completion analysis. The value of the preset radiation priority difference index can be determined by the user according to the actual working scene. For example, the user can set it according to the priority decision record. The higher the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the value of the preset radiation priority difference index. A method for determining the value of the preset radiation priority difference index is provided. The average value of the radiation priority difference index of the target execution task in which the execution allocation device is determined according to the radiation distribution proportion index in the priority decision record that meets the user's requirement for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset radiation priority difference index. For a single to-be-allocated device, the radiation distribution proportion index = the number of associated execution tasks of the target execution task existing in the target processing task that needs to be completed by the to-be-allocated device / the number of target processing tasks that needs to be completed by the to-be-allocated device. The to-be-allocated device with the maximum radiation distribution proportion index is recorded as the execution allocation device of the target execution task.

[0042] Specifically, if the radiation effective evaluation parameter of a target execution task is less than or equal to a preset radiation effective evaluation parameter, execution target matching is performed for each target execution task by using execution conflict analysis, wherein, whether execution target matching is performed for the target execution task is determined according to a predicted execution conflict index of the existing allocation device for the target execution task; if the predicted execution conflict index is greater than a preset predicted execution conflict index, an execution allocation device of the target execution task is determined according to the predicted execution conflict index of each to-be-matched device.

[0043] For a single target execution task, if the radiation effective evaluation parameter of the target execution task is less than or equal to a preset radiation effective evaluation parameter, it indicates that the demand for the processing result of other target execution tasks in the processing process of the target execution task is lighter, and execution target matching is performed for each target execution task by using execution conflict analysis, to determine whether the existing allocation device of the target execution task has a greater risk of being allocated other target execution tasks, the existing allocation device being a task processing device currently corresponding to executing the target execution task, for a single task processing device, the predicted execution conflict index of the task processing device for the target execution task = the number of a type of execution tasks existing in the target processing tasks that the task processing device needs to complete / the number of target processing tasks that the task processing device needs to complete. For a target execution task with a single radiation effective evaluation parameter less than or equal to a preset radiation effective evaluation parameter, if the predicted execution conflict index of the existing allocation device is greater than a preset predicted execution conflict index, it indicates that the existing allocation device has a greater risk of subsequently obtaining a newly added target execution task, therefore, the target execution task that is less interfered by other target execution tasks is re-allocated, the to-be-matched device being a task processing device other than the existing allocation device, and the to-be-matched device with the smallest predicted execution conflict index is recorded as the execution allocation device of the target execution task. The value of the preset predicted execution conflict index can be determined by a user according to an actual working scenario, for example, the user can set it according to a priority decision record, the higher the requirement of the user for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system, the smaller the value of the preset predicted execution conflict index, a method for determining the value of the preset predicted execution conflict index is provided, the priority decision record for determining the execution allocation device of the target execution task according to the predicted execution conflict index of each to-be-matched device is recorded as a prediction reference record, and the minimum value of the predicted execution conflict index in the prediction reference record that meets the requirement of the user for the timeliness and reliability of the execution arrangement of the data processing task of the operation monitoring process of the power system is recorded as the preset predicted execution conflict index.

[0044] So far, the technical solutions of the present application have been described in combination with the preferred embodiments shown in the drawings, but it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Those skilled in the art can make equivalent changes or replacements to the related technical features without departing from the principles of the present application, and the technical solutions after the changes or replacements will all fall within the protection scope of the present application.

[0045] The above only describes the preferred embodiments of the present application and is not intended to limit the present application; the present application can have various changes and variations for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A lightweight multi-task real-time scheduling method based on a microcomputer, characterized in that: include: Periodically test task execution evaluation parameters to determine whether to perform scheduling optimization analysis on the task processing process; During the scheduling optimization analysis, the initial evaluation priority coefficient of each target execution task is determined based on the task information abnormality parameters, and the category of the target execution task is determined based on the data association radiation index and the data analysis radiation index to determine whether to conduct radiation coordination analysis or abnormality effectiveness analysis for each target execution task; During the radiation collaborative analysis, the collaborative analysis combination of each type of execution task is determined based on the interaction coverage parameter or analysis coverage parameter according to the collaborative demand index, and whether to adjust the initial evaluation priority coefficient of each type of execution task is determined based on the initial difference parameter of the collaborative analysis combination; During the abnormal validity analysis, it is determined whether to adjust the initial assessment priority coefficient of each second-class execution task based on the associated reference priority difference index; Based on the initial evaluation priority coefficient of the completed adjustment, each target execution task is executed, and the execution allocation optimization is performed for each target execution task. Based on the radiation effective evaluation parameters, the execution demand analysis or execution conflict analysis is used to determine the execution target matching for each target execution task.

2. The lightweight multi-task real-time scheduling method based on a microcomputer according to claim 1, characterized in that: When the task execution evaluation parameter of the target evaluation period is greater than the preset task execution evaluation parameter, a scheduling optimization analysis is performed on the task processing process; The initial assessment priority coefficient is positively correlated with the task information anomaly parameter; The target evaluation cycle is the execution evaluation cycle at the current moment.

3. The lightweight multi-task real-time scheduling method based on a microcomputer according to claim 1, characterized in that: The categories of the target execution tasks include first-category execution tasks and second-category execution tasks; The first type of execution task is a target execution task whose data association radiation index is greater than a preset data association radiation index or whose data analysis radiation index is greater than a preset data analysis radiation index; The second type of execution tasks are target execution tasks whose data association radiation index is less than or equal to the preset data association radiation index and whose data analysis radiation index is less than or equal to the preset data analysis radiation index.

4. The lightweight multi-task real-time scheduling method based on a microcomputer according to claim 3, characterized in that: If there is a target execution task that is a type one execution task, then a radiation collaborative analysis is performed on the target execution task; The collaborative demand index is determined based on the data analysis radiation index and the radiation task interaction index, and the collaborative demand index is positively correlated with the data analysis radiation index and the radiation task interaction index, respectively.

5. The lightweight multi-task real-time scheduling method based on a microcomputer according to claim 4, characterized in that: If there is a type of execution task whose collaborative demand index is greater than the preset collaborative demand index, the collaborative analysis combination of the type of execution task is determined according to the interaction coverage parameter; If there is a type of execution task whose collaborative demand index is less than or equal to the preset collaborative demand index, the collaborative analysis combination of this type of execution task is determined according to the analysis coverage parameters.

6. The microcomputer-based lightweight multi-task real-time scheduling method according to claim 5, characterized in that: If the initial difference parameter of the collaborative analysis combination of a type of execution task is greater than the preset initial difference parameter, the initial evaluation priority coefficient of the type of execution task is increased according to the dominant difference coefficient; The increase in the initial evaluation priority coefficient is positively correlated with the dominant difference coefficient.

7. The microcomputer-based lightweight multi-task real-time scheduling method according to claim 3, characterized in that: If there is a target execution task that is a Class II execution task, then an abnormal and effective analysis is performed on the target execution task, where: If there is a second type of execution task whose associated reference priority difference index is greater than the preset associated reference priority difference index, the initial evaluation priority coefficient of the second type of execution task is reduced and adjusted according to the associated reference priority difference index; The reduction value of the initial evaluation priority coefficient is negatively correlated with the associated reference priority difference index.

8. The microcomputer-based lightweight multi-task real-time scheduling method according to claim 1, characterized in that: If there is a target execution task whose radiation effectiveness evaluation parameter is greater than the preset radiation effectiveness evaluation parameter, the execution requirement analysis is used to perform execution target matching for the target execution task, where: Determine whether to perform target matching for the target execution task based on the radiation priority difference index; The radiation effectiveness evaluation parameter is determined based on the data analysis radiation index and the reference radiation priority index.

9. The microcomputer-based lightweight multi-task real-time scheduling method according to claim 8, characterized in that: If the radiation priority difference index of a target execution task is greater than the preset radiation priority difference index, the execution allocation device of the target execution task is determined according to the radiation distribution proportion index of each device to be allocated.

10. The microcomputer-based lightweight multi-task real-time scheduling method according to claim 1, characterized in that: If there is a target execution task whose radiation effectiveness evaluation parameter is less than or equal to the preset radiation effectiveness evaluation parameter, execution conflict analysis is used to perform execution target matching for each target execution task, where: Determining whether to perform execution target matching for the target execution task based on the predicted execution conflict index of the existing allocated equipment; If the predicted execution conflict index is greater than the preset predicted execution conflict index, the execution allocation device of the target execution task is determined according to the predicted execution conflict index of each to-be-matched device.

Citation Information

Patent Citations

  • Scheduling system performance optimization method based on task instance dependency relationship

    CN118331711A

  • Intelligent self-adaptive real-time task scheduling method and system based on multi-dimensional optimization

    CN119292742A

  • Task scheduling optimization method and system based on collaborative analysis

    CN119512716A

  • Multi-target collaborative optimization scheduling system and method based on artificial intelligence

    CN119831300A

  • Task scheduling management system, task scheduling management method, and computer program

    WO2023171003A1

Cited By

  • Intelligent data processing method for public facility design

    CN121833085A