Understanding Task Synchronization Mechanisms in RTOS
Follow+Star Public Account, don't miss wonderful content
Source | Mculover666
1. Why Task Synchronization is Needed
In a real-time operating system, each task is an independent bare-metal program, but these tasks share the same CPU, memory space, and peripherals. How does the operating system solve this problem?
1.1. How to Share the Same CPU
Whether a task is using the CPU is