Understanding FreeRTOS Cooperative and Preemptive Scheduling Algorithms

Understanding FreeRTOS Cooperative and Preemptive Scheduling Algorithms

In FreeRTOS, Cooperative Scheduling and Preemptive Scheduling are two different task scheduling algorithms. The core difference between them lies in the triggering mechanism for task switching and how task priorities are handled. 1. Cooperative Scheduling 1.1 Concept Cooperative Scheduling is a non-preemptive scheduling algorithm. In cooperative scheduling mode, task switching only occurs when a task … Read more

Embedded Real-Time Operating Systems

Embedded Real-Time Operating Systems

Dian Dian Xia wants to learn about RTOS, but doesn’t know where to start, sigh.Real-Time Operating Systems? I’m familiar with them, let me explain slowly.Ke Ke Jun Real-Time Operating Systems (RTOS) are widely used in consumer electronics, entertainment products, home appliances, industrial equipment, medical instruments, military weapons, and scientific research equipment. They play a critical … Read more

Embedded Communication Protocol: How Many RTOS Interview Questions Can You Answer?

Embedded Communication Protocol: How Many RTOS Interview Questions Can You Answer?

1. What Is the Task State Machine Model? The task state machine model describes the lifecycle and state transitions of a task. Typical states include: (1) Ready: The task can execute but is waiting for the scheduler to allocate CPU. (2) Running: The task is currently using the CPU to execute. (3) Blocked: The task … Read more

Understanding Synchronization and Mutual Exclusion in RTOS

Understanding Synchronization and Mutual Exclusion in RTOS

1. The Concepts of Synchronization and Mutual Exclusion To understand synchronization and mutual exclusion in one sentence: I wait for you to finish using the bathroom before I use it. What is synchronization? It is: Hey, I am using the bathroom, please wait. What is mutual exclusion? It is: Hey, I am using the bathroom, … Read more

Understanding Task State Machine in FreeRTOS

Understanding Task State Machine in FreeRTOS

In the previous article, we used FreeRTOS to light up an LED, which essentially got FreeRTOS running. To effectively use an RTOS, it is necessary to understand how the scheduler works from a black-box perspective. Of course, if you want to study its internal implementation, you can read the source code. However, I feel that … Read more

New Favorite Embedded Operating System: Priority Cooperative Scheduling

New Favorite Embedded Operating System: Priority Cooperative Scheduling

Embedded operating systems sound quite impressive, but in fact, they are just a streamlined version of an operating system, specially tailored for embedded devices. Today, let’s talk about a particularly interesting embedded operating system – the one based on priority cooperative scheduling. It’s a bit like a well-organized small team, where each member has their … Read more

Summary Q&A of μC/OS Real-Time RTOS Online Lecture II

Summary Q&A of μC/OS Real-Time RTOS Online Lecture II

+ + + + + + + + + + + At the end of October, we successfully held a series of technical online lectures on the μC/OS real-time operating system with experts from Weston-embedded and Embedded office. The second lecture was given by Zhang Aihua, the technical director of Micrium Software, focusing on the … Read more

Summary of μC/OS Real-Time RTOS Technology Online Seminar Q&A

Summary of μC/OS Real-Time RTOS Technology Online Seminar Q&A

+ + + + + + + + + + + At the end of October, we successfully held a series of online technical seminars on the µC/OS real-time operating system with experts from Weston-embedded and Embedded Office. The first lecture was given by Jean Labrosse, the author of the real-time operating systems μC/OS-II and … Read more

Understanding Preemptive Scheduling in RTOS

Understanding Preemptive Scheduling in RTOS

Content Overview: This article begins with how tasks switch, introducing the ready list and priority table in the RTOS kernel, layer by layer unveiling the mystery of the RTOS kernel’s preemptive scheduling method. Only with an in-depth understanding of the kernel can better applications be created. 1. Knowledge Point Review 1.1. Review of Previous Article … Read more

Embedded Real-Time Operating Systems: Priority-Based Preemptive Scheduling

Embedded Real-Time Operating Systems: Priority-Based Preemptive Scheduling

Electric Hero I want to learn RTOS, but I don’t know where to start, sigh Real-Time Operating System? I’m familiar with it, let me explain it to you slowly. Science Master Real-Time Operating Systems (RTOS) are widely used in consumer electronics, entertainment products, household appliances, industrial equipment, medical instruments, military weapons, and scientific research equipment. … Read more