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

Tasks delayed time processing method and system in real-time operating system

A real-time operating system and delay processing technology, applied in the direction of multi-programming devices, etc., can solve the problems of affecting the response time of task scheduling, reducing real-time performance, and heavy system burden, saving time, improving real-time performance, and improving response time. Effect

Inactive Publication Date: 2008-05-21
VIMICRO CORP
View PDF0 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that in the prior art, every time a clock cycle occurs, it is necessary to scan from the head to the end of the delay queue. In addition, the frequency of clock cycles is usually very frequent. If the delay queue is relatively long, the burden on the system will be very large. If it is large, it will affect the response time of task scheduling and reduce the real-time performance

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
  • Tasks delayed time processing method and system in real-time operating system
  • Tasks delayed time processing method and system in real-time operating system
  • Tasks delayed time processing method and system in real-time operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings.

[0044] FIG. 2 shows an exemplary flowchart of a task delay processing method in an embodiment of the present invention. As shown in FIG. 2 , the flowchart includes the following steps:

[0045] Step 201 , each task is added to the delay queue in ascending order of absolute delay time of the tasks, and the relative delay time between adjacent tasks in the delay queue is calculated.

[0046] In this step, when the delay queue is empty, the current task that needs to be delayed is directly added to the delay queue; otherwise, the current task that needs to be delayed is added to the delay queue in ascending order of the absolute delay time of the tasks , and calculate the relative delay time between adjacent tasks in the delay queue.

[0047] Step...

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 discloses a tasks delay processing method in real-time operating systems, comprising steps as follows: when delay queue is empty, current tasks needing time delay are added into the delayed queue; otherwise, the current tasks are added into the delayed queue according to an ascending order of the absolute delay time of the tasks, and relative delay time between the adjacent tasks in the delayed queue is calculated; when a clock cycle comes, whether the delay time of the first task in the delayed queue reaches a clock cycle is judged; If a clock cycle is reached, the first task and closely following task with zero relative delay time are removed from the delayed queue; otherwise, a clock cycle is deducted from the delay time of the first task. Besides, the invention also discloses a tasks delay processing system in real-time operating systems; and has the advantages of improving the response time and enhancing the real time for systems.

Description

technical field [0001] The invention relates to a real-time operating system, in particular to a task delay processing method and system in the real-time operating system. Background technique [0002] A real-time operating system is a system that can complete system functions within a specified or determined time and respond to external and internal events in synchronous or asynchronous time. In a real-time operating system, the correctness of operations depends not only on the correctness of the logic design, but also on the time when these operations run. That is to say, the real-time system has very strict requirements on logic and timing. , there will be serious consequences. [0003] In order to provide real-time support, the real-time operating system must effectively schedule and manage CRUs and other resources, that is, real-time scheduling. The states of each task (the task can be a thread) in a real-time operating system mainly include a ready state, a running s...

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/46
Inventor 艾国游明琦
Owner VIMICRO CORP