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

Method for improving time performance of periodic timers in real-time operating system

A technology of real-time operating system and time performance, applied in instruments, electrical digital data processing, computing, etc., can solve the problems of lack of efficiency in periodic task models, achieve the effects of improving predictability, improving real-time performance, and reducing overhead

Inactive Publication Date: 2010-08-11
HANGZHOU DIANZI UNIV
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The current timer management scheme needs to dynamically insert a new invalidation time when updating the expired timer, and the time overhead of this operation is O(n 2 ), resulting in a lack of efficiency in implementing the periodic task model

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
  • Method for improving time performance of periodic timers in real-time operating system
  • Method for improving time performance of periodic timers in real-time operating system
  • Method for improving time performance of periodic timers in real-time operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] A method for improving the time performance of a periodic timer in a real-time operating system comprises the steps of:

[0037] Step (1) creates a timer scheduler. A timer schedule is a matrix of timer schedule entries with a maximum length equal to the superperiod. Each timer scheduling item includes three parts: the time when the timer expires, the associated task list, and the number of tasks in the task list.

[0038] Step (2) initialize the timer (such as figure 1 shown). Including the following steps:

[0039] a. Input the parameters (including period, phase and associated tasks) of N timers into the array;

[0040] b. Calculate the supercycle H of N timers;

[0041] c. Determine whether each moment i in the supercycle H is equal to the timeout value of the timer (there is a one-to-one correspondence between the moment in the supercycle and the timer entry, that is, the i-th moment corresponds to the i-th item), if Each moment i in the supercycle H is equal...

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 relates to a method for improving the time performance of periodic timers in a real-time operating system. The current timer management scheme is to dynamically insert a new failure time when failure timers perform update operation, thus the efficiency is low in the aspect of realizing the periodic task model. The method of the invention comprises the following steps: firstly establishing a timer scheduler, wherein each timer scheduling item comprises the three parts of timer failure time, associated task link list and task number of the task link list; secondly initializing the timers, inputting the parameters of N-numbered timers in an array, calculating the superperiod H of the N-numbered timers; and finally updating the timers. The invention divides the timer management into two stages of timer initialization and timer updating, thus reducing the operation cost of the timer. By using the method of the invention, the time cost and space cost for the management of the timer are less, thus the method is very suitable for the microkernel embedded real-time operating system.

Description

technical field [0001] The invention belongs to the field of embedded operating systems, and in particular relates to a method for improving the time performance of a periodic timer in a real-time operating system. Background technique [0002] Task is one of the most basic and important concepts in modern operating systems, and it is the basis for realizing multitasking on a single processor. There are multiple task models in real-time operating systems, such as periodic task model, non-periodic task model and occasional task model. Among them, the periodic task model is the most widely used task model, which is widely used to model time-triggered tasks, periodic sampling tasks and control tasks. [0003] A timer is one of the important entities in a real-time operating system, which has the following two characteristics: [0004] 1) When an interrupt arrives, its value is reduced by one unit; [0005] 2) When the value of a timer decreases to 0, it will trigger the serv...

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
IPC IPC(8): G06F11/00
Inventor 高志刚陈峰薛刚刚戴国骏张佳芳
Owner HANGZHOU DIANZI UNIV