How to Split RTOS Tasks
In an RTOS project, task count can grow from two to a dozen quickly.
A common split looks natural:
- one UART task
- one sensor task
- one cloud task
- one button task
- one storage task
- one display task
This is not always wrong, but it often splits code by module name. Tasks actually affect scheduling, blocking, stacks, priorities, synchronization, and resource ownership. Bad task boundaries later look like concurrency bugs.
The first model is:
Read More