FreeRTOS Part Two: Tasks

FreeRTOS Part Two: Tasks

FreeRTOS Tasks Let’s continue Bob’s open-source FreeRTOS series articles. The core of FreeRTOS is the task. In this second part, I will explore what a task is, what options are available to configure the Task Control Block (TCB), and what functionalities might be missing in the FreeRTOS TCB. As I grew up, I gradually discovered … Read more

In-Depth C++ Singleton Pattern: Principles, Implementation Comparisons, and shared_ptr Architecture Design

In-Depth C++ Singleton Pattern: Principles, Implementation Comparisons, and shared_ptr Architecture Design

#cpp #singleton 📌 In-Depth C++ Singleton Pattern: Principles, Implementation Comparisons, and shared_ptr Architecture Design 1️⃣ What is a Singleton? Basic Semantics and Usage Scenarios A Singleton ([[Singleton]]) is one of the most common object creation patterns, aimed at ensuring that a class has only one instance in the system and provides a global access point. … Read more

Enhancing Programmers’ Self-Cultivation

Enhancing Programmers' Self-Cultivation

Table of Contents 1.1 Starting with Hello World 1.2 The Essence Remains Unchanged 1.3 The Higher You Stand, The Further You See 1.4 What the Operating System Does 1.4.1 Don’t Let the CPU Doze Off 1.5 What to Do When Memory is Insufficient 1.5.1 About Isolation 1.5.2 Segmentation 1.5.3 Paging 1.6 Many Hands Make Light … Read more