Why Not Use Global Variables for Inter-task Communication in RTOS?

Follow+Star Public Account Number, don’t miss wonderful content

Why Not Use Global Variables for Inter-task Communication in RTOS?

Author | strongerHuang

WeChat Public Account | strongerHuang

Students who have a deep understanding of RTOS principles or have read RTOS source code should know: RTOS implements inter-task communication usually by a series of pointers.
The "effective data" of inter-task communication is actually implemented by pointers pointing to a "variable" or "array".
1.Semaphore

The essence of a semaphore is to pass an "event". For example: Task A

Back to Top
Product has been added to your cart
×