Task Scheduling and Kernel Implementation of FreeRTOS

Task Scheduling and Kernel Implementation of FreeRTOS

This article introduces the tasks and scheduling kernel implementation of FreeRTOS.1. Concept of Tasks In FreeRTOS, a task is the smallest unit of system scheduling and execution. Each task has its own stack space, program counter (PC), registers, and state. Task Stack Spaceis a contiguous memory area that stores local variables, function call information, and … Read more

Two Embedded Programming Concepts: Layered and Time-Slicing, Have You Used Them?

Two Embedded Programming Concepts: Layered and Time-Slicing, Have You Used Them?

Scan to FollowLearn Embedded Together and grow together 1. Layered ConceptThe concept of layering is not a mysterious thing; in fact, many engineers working on projects are already using it. The layered structure is indeed very useful, and once understood, it can lead to a moment of enlightenment.If I don’t understand how to drive an … Read more

Object-Oriented Thinking in MCU Architecture

Object-Oriented Thinking in MCU Architecture

Follow+Star Public Account Number, don’t miss out on exciting contentSource | ERYUESANHIEditor | strongerHuangToday, I will share an article about the microcontroller program framework using time-slicing method combined with source code. Importance of Program Architecture Many people, especially beginners, often write code without an overall plan, leading to increasingly messy code and constant bugs.Ultimately, the … Read more

FreeRTOS – Task Scheduling Mechanism

FreeRTOS - Task Scheduling Mechanism

Tasks are the smallest units of execution competing for system resources. Multiple tasks with the same priority can share the same priority level. In FreeRTOS, if configUSE_TIME_SLICING is defined as 1, then multiple ready tasks with the same priority will share the processor in a time-slicing manner, where one time slice equals one tick. Task … Read more