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

Invalid overtime message detection method in message driving system

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: 2017-01-04
苏州简约纳电子有限公司
View PDF8 Cites 2 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
  • Invalid overtime message detection method in message driving system
  • Invalid overtime message detection method in message driving system
  • Invalid overtime message detection method in message driving system

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 in conjunction with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other if there is no conflict.

[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 invalid timeout messages in a message-driven system provided by a preferred embodiment of the present invention includes steps S1 to S3.

[0033] Step S1: Insert a timeout message control block in the timeout message, where 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...

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 present invention relates to a method for detecting invalid timeout messages sent by a message timer in an embedded message-driven system, which specifically includes introducing a counter to indicate the validity of the timeout message, and when the status of the message timer changes, the timeout message When allocating or releasing, maintain and adjust these counts. Background technique [0002] In embedded real-time systems, message-driven is a common, high-performance software architecture. Different, asynchronously running tasks bind and monitor their respective message queues. If and only if there is a message on the message queue, that is, when other tasks send messages to it, it takes out the message from the queue, and according to the message type , Load and other information, determine the next execution process. In some specific applications, there is often a requirement that task S hopes to send a message to task R after a period of time...

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