Message sending method in embedded and distributed system
A distributed system and message sending technology, which is applied in the field of network communication, can solve the problems of low message exchange efficiency and achieve the effects of improving message sending efficiency, avoiding waste, and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0025] For the message sending flow chart of the embodiment of the present invention, see figure 1 . The message sending method in the embedded distributed system of the present embodiment comprises the following steps:
[0026] Step 101, create a sending scheduling task with a lower priority than all upper-layer application module tasks.
[0027] Step 102, when the task of the upper application module is ready to send the message, it releases the global synchronization semaphore, and wakes up the sending scheduling task. In this step, the global synchronization semaphore is a binary semaphore. When the task of the upper application module needs to send a message, the message is first added to the message sending queue, and then the global synchronization semaphore is released for wake-up sending Scheduling task. At this time, since the sending scheduling task is of low priority, the sending scheduling task is in a ready state.
[0028] Step 103, after the system schedules ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 