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

A scheduling method for timer

A scheduling method and timer technology, applied in multi-programming and other directions, can solve the problems of high search efficiency and unsatisfactory effect of binary tree, and achieve the effect of ensuring time utilization, good maintainability, and providing flexibility

Inactive Publication Date: 2009-02-04
宁波菊风系统软件有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in actual use, since the time distribution of the timer cannot be evenly distributed, in most cases the timer is short in duration, so the search efficiency of the binary tree is not necessarily higher than that of the sequential linked list, so the effect is not ideal

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
  • A scheduling method for timer
  • A scheduling method for timer
  • A scheduling method for timer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The basic idea of ​​the present invention is: set the reference timer and the sparse matrix used for timer management, place the timers used by users or services in the corresponding positions of the sparse matrix according to the duration of the timers, and place the sparse matrix where the timers are not placed Set the element to zero; each time the benchmark timer times out, judge whether the value of the matrix element corresponding to the current moment in the sparse matrix is ​​zero, if not zero, it means that this position contains a timer, and all timers under the element Perform timeout processing; if zero, wait for the next benchmark timer timeout trigger.

[0037] Here, the reference timer is a timer with a fixed duration, and the reference timer is registered with the core part of the current application system, and the reference timer is repeatedly triggered at a fixed time interval. The sparse matrix is ​​a data structure used for timer management created ...

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

This invention discloses one timber transfer method, which is characterized by the following: setting basic timer and sparse array used for timer to put timer into sparse array relative position and the other positions is set as zero; each basic timer is triggered to judge whether each array element is zero; if not, then executing super time process; if yes, then waiting form next time basic timer triggering.

Description

technical field [0001] The invention relates to timer technology, in particular to a timer scheduling management method. Background technique [0002] At present, in many systems that need to perform several operations asynchronously, such as software systems that perform multiple tasks asynchronously, network communication systems that implement specific service functions asynchronously, etc., it is necessary to use timers to synchronize and manage various operations. For example, in a network communication system, sometimes several, a dozen or even more timers are used in order to provide a user with a specific function service. [0003] In actual operation, due to the different levels of tasks or actions, the requirements for timers are also different. Taking a software system as an example, first of all, the requirements for time precision are different. The time precision of tasks at the core level of the system is required to be at the level of 10 milliseconds, while...

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 Patents(China)
IPC IPC(8): G06F9/46
Inventor 钱晓炯吕锐钟毅刘谦
Owner 宁波菊风系统软件有限公司