Description: 1. Create Multi-Task, for each Task to create private Message Queue, for each Task is only through their own private Message Queue to receive messages Task inter-messaging each other through private Message Queue to send the message End
Cheng.
2. Task1: Management Task. Synchronous system is responsible for system startup, the startup of other Task synchronization using semaphores of semFlush () to complete. At the same time to receive and Task of the warning information, and is responsible for the system at the end of Task delete processing.
3. Task2: Incentive Task. The use of taskDelay () complete cycle to Task3, Task4 incentive to send the message.
4. Task3: Sender Task. Task2 incentive to receive messages, send messages to the Task4.
5. Task4: Receiver Task. Receive Task2, Task3 news, in the received message Task3 to Task3 reply message.
6. The above Task debugging information and working status information through the logmsg output.
- [TASK] - Thread scheduling, time slice rotation,
- [queue] - Serial port or other memory storage, dat
- [Work_Queue] - worker queue sources for multipul thread
File list (Check if you may need any files):
demo.c