Unlock instant, AI-driven research and patent intelligence for your innovation.

Timer task processing method and device and server

A task processing and timer technology, applied in the computer field, can solve problems affecting the execution efficiency of real-time processing systems and waste of processor resources

Active Publication Date: 2021-06-08
SHANGHAI EMBEDWAY INFORMATION TECH
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, the execution frequency of timer tasks is implemented based on hardware timers, that is, all timer tasks are processed at a fixed frequency. Taking scanning hash tables as an example, for hash tables with long timeouts, The frequency of overtime scanning to it will be far greater than the actual demand, and a large proportion of the scanning process does not need to be carried out. Therefore, the timer task processing method in the prior art will inevitably cause waste of processor resources, and even affect the entire real-time Processing System Execution Efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Timer task processing method and device and server
  • Timer task processing method and device and server
  • Timer task processing method and device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0061] see figure 1 , a flow chart of a timer task processing method provided by an embodiment of the present invention, the method can be applied to electronic devices, such as notebook computers, PCs (personal computers), tablet computers and other electronic devices with data processing capabilities, specifically , applied to at least one...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a timer task processing method and device and a server, which are applied to the technical field of computers, and the method comprises the following steps: after a task scheduler is locked, determining a current to-be-processed timer task in each timer task based on a preset circular linked list; and judging based on task information of the current to-be-processed timer task recorded in a preset circular linked list, and if the current to-be-processed timer task is not in a running state and the sleep duration of the current to-be-processed timer task is greater than or equal to a corresponding sleep duration threshold value, determining the current to-be-processed timer task as an executable task. And marking the executable task as a running state, and executing the executable task after the lock of the task scheduler is released. Compared with the prior art, undifferentiated execution frequency can be effectively avoided, so that waste of processor resources is avoided, and the execution efficiency of a real-time processing system is improved.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a timer task processing method, device and server. Background technique [0002] In practical applications, the application software in the real-time processing system often sets a large number of timer tasks that need to be executed according to a certain period, such as scanning the hash table. The effectiveness of the hash table and meet the real-time requirements of the real-time processing system. [0003] Different hash tables have different requirements for real-time performance. Some software business information is updated quickly, and the hash table is required to expire quickly after timeout, and the frequency of timeout scanning is high; some software business information is updated slowly. Correspondingly, the hash table The longer the timeout period, the lower the timeout scanning frequency. Most timer tasks in real-time processing systems have simil...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48G06F9/52
CPCG06F9/4825G06F9/526Y02D10/00
Inventor 王小威
Owner SHANGHAI EMBEDWAY INFORMATION TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More