Firmware · RTOS: tasks and scheduling

Why tasks

A real-time operating system lets a device do several jobs at once, and each job gets its own context to run in.