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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
