Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method of invalid time over message under system process scheduling

A technology of overtime messages and system processes, applied in inter-program communication, multi-program installation, program startup/switching, etc., can solve problems such as backlog of messages, inability to obtain CPU resources to process ACK messages, blocking, etc., to prevent abnormal processes Effect

Inactive Publication Date: 2009-09-02
ZTE CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Imagine the following situation, process B sends an ACK message to process A, but the task of process A is blocked by other high-priority tasks, cannot get CPU resources to process the ACK message, and cannot clear the timer, so process A will receive the timer module again The timer timeout message sent, resulting in a backlog of many pending messages
When the task of process A obtains CPU resources and starts to execute, process A will process the ACK message and the timeout message successively, which may cause exception handling

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 of invalid time over message under system process scheduling
  • Method of invalid time over message under system process scheduling
  • Method of invalid time over message under system process scheduling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The implementation of the technical solution will be further described in detail below in conjunction with the accompanying drawings.

[0030] At first, the present invention adds the pointer variable of the message body of record timer overtime message in the structure definition of timer control structure, and carries out the sending of overtime message according to the following process: When the system timer module detects when regularly scanning the timer queue When the timing set by the process times out, the timer module sends a timer timeout message to the process setting the timer, and at the same time points the pointer in the timer control structure to the timer timeout message. When the system is initialized, set the pointer variables in all timer control structures to be empty. Here, the pointer variable preferably points to the first address of the timer timeout message in the task message receiving queue, which is convenient for searching.

[0031] Then,...

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 method and a message sending method for an invalid timeout message under system process scheduling, which is applied to a timer module of an embedded operating system. First, a pointer variable is added to the timer control structure; then, when the system When the timer module sends the timer overtime message to the process, it points the pointer variable to the timer overtime message. The timer module of the present invention can provide the function of chasing and killing the timer overtime message, which plays a vital role in the stability of the system and the correctness of the process. The method for chasing timer overtime messages under process scheduling of the embedded operating system provided by the invention can hunt down timer overtime messages that have been sent but have not been processed by accepted tasks, and prevent the occurrence of abnormal processes.

Description

technical field [0001] The invention relates to the development field of an embedded real-time system adopting priority scheduling, in particular to a method for invalidating a timeout message and a method for sending a timeout message in a secondary process scheduling environment realized on an embedded multitasking environment. Background technique [0002] A real-time system refers to a system that can respond to external random events in a timely manner and complete the corresponding processing fast enough, otherwise it will cause serious consequences. It is widely used in communication equipment, military, aerospace and other fields. [0003] Many companies have implemented several functions such as secondary process scheduling management, time management, communication management, and memory management on the embedded real-time multi-tasking system. [0004] Two-level scheduling, which carries multiple processes based on the tasks provided by the embedded real-time ope...

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/48G06F9/54
Inventor 赵井军高世洪王国兵
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products