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

Introduction to Synchronization and Mutex in FreeRTOS

Introduction to Synchronization and Mutex in FreeRTOS

This article aims to learn and use synchronization and mutex in FreeRTOS. Following the descriptions in this article, you should be able to run the experiment and apply the knowledge. Experimental conditions: Basic knowledge of C language and an integrated development environment installed, such as Keil uVision5. Concepts of Synchronization and Mutex Synchronization is used … Read more

Detailed Explanation of FreeRTOS Task Management Mechanism

Detailed Explanation of FreeRTOS Task Management Mechanism

Detailed Explanation of FreeRTOS Task Management Mechanism 1. Basic Concepts of Tasks In FreeRTOS, a task is the basic unit of execution in the system, similar to an independent small program, with its own execution flow, stack space, local variables, and Task Control Block (TCB). Each task focuses on specific functionality, collaborating to achieve the … Read more

FreeRTOS Operations and Applications – Part One

FreeRTOS Operations and Applications - Part One

In today’s embedded systems development field, the application of Real-Time Operating Systems (RTOS) is becoming increasingly widespread, providing solid support for various complex task scheduling, resource management, and system reliability requirements. As an open-source real-time operating system, FreeRTOS stands out in numerous embedded projects across various industries due to its simplicity, efficiency, ease of portability, … Read more