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

A Method for Detecting Invalid Timeout Messages in Message-Driven Systems

A timeout message and message-driven technology, applied in the direction of program startup/switching, multi-program device, etc., can solve the problem of no processing method, achieve a wide range of applications, save system resources, and improve system stability

Active Publication Date: 2019-06-07
苏州简约纳电子有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The above scheme can provide the function of chasing and killing timer timeout messages, but a timer only corresponds to one timeout message, and when multiple timeout messages appear at the same time, there is no corresponding processing method, which has certain limitations

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 Method for Detecting Invalid Timeout Messages in Message-Driven Systems
  • A Method for Detecting Invalid Timeout Messages in Message-Driven Systems
  • A Method for Detecting Invalid Timeout Messages in Message-Driven Systems

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0032] figure 1 It is a flowchart of a method for detecting invalid timeout messages in a message-driven system provided by a preferred embodiment of the present invention. Such as figure 1 As shown, the method for detecting an invalid timeout message in a message-driven system provided by a preferred embodiment of the present invention includes steps S1-S3.

[0033] Step S1: Insert a timeout message control block into the timeout message, wherein the timeout message control block includes a flag field, a reference field and a valid field.

[0034] Specifically, a message usually includes a general message header and a message payload, and the timeout message control block is located between the g...

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 provides an invalid overtime message detection method in a message driving system; the method comprises the following steps: S1, inserting an overtime message control block in an overtime message, wherein the overtime message control block comprises a flag field, a reference field and a valid field; S2, receiving a task and extracting the overtime message from a message queue, determining whether the valid field is bigger than 0 or not in the overtime message, and determining whether the valid field equals to the value (reference field-1) or not; S3, if yes, determining the overtime message as a valid message, otherwise determining the overtime message as an invalid message and abandoning same.

Description

technical field [0001] The invention relates to a method for detecting an invalid timeout message sent by a message timer in an embedded message-driven system. When allocating or freeing, maintenance adjusts these counts. Background technique [0002] In embedded real-time systems, message-driven is a common, high-performance software architecture. Different tasks that run asynchronously bind and listen to their respective message queues. If and only if there is a message on its message queue, that is, when other tasks send a message to it, it takes out the message from the queue, and according to the message type , load and other information to determine the next step of the execution process. In some specific applications, there is often such a requirement that the task S wishes to send a message to the task R after a period of time T0 to wake up / schedule the task R. The message timer is designed to meet this requirement. It can delay sending messages. Its creation, sta...

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/46G06F9/48
Inventor 潘玉峰
Owner 苏州简约纳电子有限公司