Windows service-based planned task control method and apparatus, and storage medium
A technology for planning tasks and management and control, applied in the direction of multi-program device, calculation, program control design, etc., can solve the problems of inability to perform high-frequency operations, increase development costs, and high degree of business coupling, so as to facilitate the traceability of historical data and reduce errors Opportunities, the effect of improving execution efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0093] Calculate Air Quality Index AQI
[0094] In an environmental monitoring system, at each monitoring site, various air parameter values of different parameters are uploaded to the database data table every minute, and the system needs to calculate AQI reports based on various air parameters. According to user needs, the system needs to calculate AQI hourly report and AQI daily report.
[0095] First create two threads, the hourly thread and the daily thread, which are used to calculate the two reports respectively. The hourly thread is executed at 05 minutes every hour, and the AQI data of the previous hour is calculated according to the concentration value of the parameters involved in the AQI calculation in the hourly data table and an AQI hourly report is generated; The concentration value of the calculated parameter calculates the AQI data of the previous day and generates the AQI daily report. After the report is generated, wait for the execution interval and the...
Embodiment 2
[0098] Disconnected alarm
[0099] In an environmental quality monitoring system, it is composed of multiple environmental monitoring stations. When a certain parameter of a certain station does not receive data for a continuous period of time, it is considered to be offline, and then a disconnection alarm record is generated and pushed to designated personnel.
[0100] The system adopts SQLServer database, uses ASP.net platform for program development, and the background service is written by C# language. Circularly read the minute data mean value of each parameter of each station in the minute data table, if the concentration mean value of the parameter at the station is not monitored within a continuous period of time (configurable), it is considered that the station has an alarm for the parameter, and then an alarm is generated Record, if the current time is within the sending time period (configurable), the alarm record will be sent to the designated person.
[0101]For...
Embodiment 3
[0104] Report calculation
[0105] In an environmental monitoring system, the environmental monitoring equipment is controlled remotely, and then the equipment operates according to the control instructions, and the collected data is transferred to the database. Now these data need to be calculated according to certain rules to generate their own reports, which can be used Do the following:
[0106] Create three threads for generating three reports respectively;
[0107] Set its start execution time and execution interval for each thread, store this information in the database, and start executing corresponding tasks at each execution time, for example, set a thread to execute at the third minute of every ten minutes, The second thread is set to be executed at the 4th minute of every ten minutes, and the third thread is set to be executed at the 5th minute of every ten minutes. Then one thread will be executed at the 3rd, 13th, 23rd, 33rd, 43rd, and 53rd minute of each hour. ...
PUM

Abstract
Description
Claims
Application Information

- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com