[RTOS] The Night Before Scheduling: Analysis of Interrupt Failure in FreeRTOS

[RTOS] The Night Before Scheduling: Analysis of Interrupt Failure in FreeRTOS

Phenomenon Before FreeRTOS starts scheduling with <span>vTaskStartScheduler()</span>, if FreeRTOS APIs (such as creating semaphores) are called, it will lead to interrupts managed by FreeRTOS being disabled until scheduling begins. Source Code Analysis In the FreeRTOS API, there are critical sections like this: // Common code snippet in FreeRTOS source: entering and exiting critical sections BaseType_t … Read more

Overview and Core Concepts of Linux Workqueue

Overview and Core Concepts of Linux Workqueue

Overview and Core Concepts of Linux Workqueue Part 1: Overview and Core Concepts of Workqueue 1.1 What is Workqueue? Imagine you are a busy restaurant manager. When customers place their orders, some tasks need to be completed immediately (like pouring water for the guests), similar to the interrupt handling in the Linux kernel, which requires … Read more

How Does Multi-Agent Collaboration Work?

1. Introduction: From “Individual AI” to “AI Expert Teams” In the early stages of artificial intelligence development, we tended to view AI as an “all-rounder.” It could answer questions, write articles, create images, and generate code, seemingly capable of anything. However, when applying AI to complex business scenarios—such as supply chain management, investment research analysis, … Read more

FreeRTOS Source Code Analysis: Preparing to Start the First Task

FreeRTOS Source Code Analysis – Observing How the OS Starts Running from the main Function FreeRTOS is a lightweight real-time operating system kernel suitable for microcontrollers and embedded systems. Its open-source, lightweight, and portable characteristics make it a popular and widely used RTOS in embedded systems.To further learn the underlying principles of RTOS, this series … Read more

Practical Python Mini Project: Build a Personal To-Do List App in 100 Lines of Code, Achievable for Beginners

Every morning, as soon as I open my eyes, various to-do items flood in like a tide: In the morning, I need to complete the project report, in the afternoon, I have to attend a team meeting, and in the evening, I must remember to prepare a birthday gift for my family… There are so … Read more

From ‘Passive’ to ‘Active’: Technical Sharing on AI Agent Implementation

As AI becomes increasingly popular, its applications are becoming more widespread. This article shares some knowledge points related to the implementation of AI! If we say that large language models (LLMs) provide AI with a “smart brain,” then AI Agents are the “hands and feet” that enable this brain to perceive the environment, plan decisions, … Read more

In-Depth Guide to FreeRTOS Task Management: Practical Tutorial on Creating and Deleting Tasks (Dynamic Method)

In-Depth Guide to FreeRTOS Task Management: Practical Tutorial on Creating and Deleting Tasks (Dynamic Method) 📖 Introduction Hello everyone! Today, I bring you a practical tutorial on FreeRTOS, mainly explaining how to use dynamic methods to create and delete tasks. This article is suitable for those who are new to RTOS, and I will try … Read more

In-Depth Explanation of FreeRTOS Task Management: Task Creation and Deletion

In-Depth Explanation of FreeRTOS Task Management: Task Creation and Deletion This article will take you deep into understanding the mechanisms of task creation and deletion in FreeRTOS, from the usage of API functions to the internal implementation principles, allowing you to easily master the core knowledge of task management! 📌 Introduction In FreeRTOS, tasks are … Read more

Detailed Explanation of FreeRTOS Configuration File

Detailed Explanation of FreeRTOS Configuration File —— Understanding freertos_config.h from Scratch As one of the most popular real-time operating systems in the embedded field, FreeRTOS’s core configuration file<span>FreeRTOSConfig.h</span> acts like the “control panel” of the system. This article will guide you through this configuration file line by line, allowing you to truly understand the meaning … Read more

Multicore Real-Time Operating System RTEMS (21) – Active Scheduling

Technical experience sharing, welcome to follow and provide guidance. Based on our understanding of the scheduling scenarios in RTEMS, the first thing to note is active scheduling. Its implementation is _Scheduler_Schedule. From the context of the code, we can see that when the system sends a signal, if the thread’s context is set to non-preemptive, … Read more