Overview - Why tasks are the building blocks
What is it?
In FreeRTOS, tasks are like small programs that run independently inside your main program. Each task does a specific job, such as reading a sensor or controlling a motor. These tasks run one after another very quickly, giving the illusion they run at the same time. Tasks are the main way FreeRTOS organizes work to make your device smart and responsive.
Why it matters
Without tasks, your program would have to do everything step-by-step, waiting for one job to finish before starting another. This can make your device slow or unresponsive, especially if some jobs take a long time. Tasks let your device handle many jobs smoothly, like a chef cooking multiple dishes at once. This makes your programs efficient and able to react quickly to changes.
Where it fits
Before learning about tasks, you should understand basic programming and how a single program runs step-by-step. After tasks, you will learn about task scheduling, inter-task communication, and synchronization, which help tasks work together without problems.