Message-driven method and device based on real-time operating system

A real-time operating system, message-driven technology, applied in the computer field, can solve the problem of changing the task priority of the operating system for processing business

Active Publication Date: 2021-05-18
KYLAND TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In many existing real-time operating system programming, business programs and operating system tasks are closely bound, business modules are tightly coupled, business programs, business data, and operating system tasks are deeply coupled, and the priority of the business program depends on the operating system tasks ,like figure 1 As shown in , tasks with different priorities need to be processed by different business programs, so that the business programs cannot change the priority of processing business operating system tasks in real time according to business data

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
  • Message-driven method and device based on real-time operating system
  • Message-driven method and device based on real-time operating system
  • Message-driven method and device based on real-time operating system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are invented. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0031] Task: also known as a thread, is a simple program. Each task is given a certain priority, has its own set of CPU registers and its own stack space. Typically, each task is an infinite loop, and each task is in the following five states: sleep state, ready state, running state, suspended state, interrupted state;

[0032] Task switching: save the current state o...

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 present invention provides a message-driven method and device based on a real-time operating system, by acquiring the business data and business logic in the business message body, and based on the type of the business data, adding the business message body to the task of the corresponding priority In the message queue; transmit the business logic based on the task message queue, so as to process the business logic when a thread receives the message. Real-time operating system tasks support message queues, so that tasks only process messages in message queues; decouple tasks from business programs, and design business messages in two parts, one part is business logic and the other part is business data; business logic and business data sources Consider it separately to realize the decoupling design of business logic and data; real-time operating system tasks support priority processing, and the messages in the corresponding message queue will be processed according to the corresponding priority.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a message-driven method and device based on a real-time operating system. Background technique [0002] Real-time operating system (Real Time Operation System, RTOS) means that when external events or data are generated, they can accept and process them at a fast enough speed, and the processing results can control the production process or control the production process within the specified time. The processing system responds quickly, schedules all available resources to complete real-time tasks, and controls the operating system in which all real-time tasks run in unison. Providing timely response and high reliability are its main features. [0003] A real-time operating system is an operating system that is guaranteed to complete a specific function within a certain time limit. The real-time operating system can be divided into hard real-time and soft rea...

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/54
CPCG06F9/546G06F2209/548
Inventor 张聪
Owner KYLAND TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products