Event Processing Method of Real-Time Embedded Operating System
An operating system and event processing technology, which is applied in the direction of electrical digital data processing, multi-programming device, program control design, etc., to achieve the effect of accurate selection and expansion of quantity
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2021-03-12
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to an event processing method of a real-time embedded operating system, belonging to the field of real-time embedded systems. Background technique
[0002] Real-time embedded operating systems are widely used in many fields such as industrial automation and aerospace, including two aspects of correct time and correct function. In the field of substation automation, the application range of real-time embedded operating systems has gradually entered from the initial measurement and control devices and automatic devices to protection devices with strict real-time requirements, which shows that the use of real-time embedded operating systems is the development of real-time embedded systems. trend. Event group is an interrupt service program and task provided by real-time embedded operating system, and an important mechanism for synchronization between tasks. The operation mode of many application tasks is based on the time group mec...
Examples
Embodiment Construction
[0030] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0031] The invention includes three basic operations of creating an event group control block, acquiring an event and sending an event.
[0032] First introduce the main data structures, such as figure 1 Shown:
[0033] 1. The event waiting node includes the blocked task ID, specified bit, waiting mode, waiting delay, and the final return result and return state storage of the event acquisition operation.
[0034] The waiting mode includes two logical relationships of "AND" and "OR" and whether to consume events when acquiring events. The "AND" logic relationship indicates that the specified bit is all 1 to meet the condition, and the "OR" logic relationship indicates that one of the specified bits is 1 to meet the condition. Waiting delay refers to how long to wait when the acquisition event operation cannot meet the conditions; if there is...