Linux Performance Optimization Fundamentals: Make Your System Run Like the Wind

Linux Performance Optimization Fundamentals: Make Your System Run Like the Wind

As a blogger with years of experience in the Linux field, I have seen too many people stumble over performance issues in Linux systems. Have you ever encountered a scenario where you set up a Linux server with great enthusiasm, only to find that the website responds so slowly that it makes you question your … Read more

Why Redis Doesn’t Use C Language Strings and Instead ‘Reinvented the Wheel’

Why Redis Doesn't Use C Language Strings and Instead 'Reinvented the Wheel'

Follow us, bookmark us, and join us every day at 7:30 for daily Java content sharing. Technical Analysis The ‘Four Sins’ of C Language Native Strings The C language does not have a true “string” type. Its so-called string is simply a character array (<span>char*</span>) terminated by a null character<span>\0</span>. This simple design leads to … Read more

C++ Interview Questions and Answers

C++ Interview Questions and Answers

First Interview 1. Self-Introduction Sample Answer Briefly introduce your personal background, technology stack, and project experience, highlighting the parts relevant to the position. For example: “I mainly use XXXXXX to develop XXXXX, familiar with XXXX, and have worked on XX projects, focusing on solving XXXXX problems.” Analysis Keep it around 1 minute. Emphasize skills that … Read more

Discussing C Programming: The Relationship Between C Language and Memory

Discussing C Programming: The Relationship Between C Language and Memory

The association between memory and data types is the core logic of the underlying design of the C language, and their relationship can be summarized as: Memory provides physical storage space, while data types are the logical abstraction and access rules for that storage space. The following analysis will unfold from three dimensions: memory characteristics, … Read more

Essential Knowledge Points for C Language Beginners: Summary of One-Dimensional Array Usage Techniques

Essential Knowledge Points for C Language Beginners: Summary of One-Dimensional Array Usage Techniques

“From today on, study hard and make progress every day” Repetition is the best method for memory; spend one minute each day to remember the basics of C language. “Series of 100 Essential Knowledge Points for C Language Beginners“ The following notes finally enter the practical series, which is also the most important and difficult … Read more

A Quick Start Guide to FreeRTOS

A Quick Start Guide to FreeRTOS

Scan to FollowLearn Embedded Together, learn together, grow together The FreeRTOS introductory series aims to help beginners quickly get started and master the basic principles and usage of FreeRTOS while organizing their own knowledge. For ease of reading, the “Quick Start to FreeRTOS” series of articles has been compiled. The list of articles is as … Read more

Understanding the Differences Between Static and Temp Variables in PLCs

Understanding the Differences Between Static and Temp Variables in PLCs

Hello everyone, I received a submission from a fan asking me to explain the differences between Static and Temp variables. Newcomers in the field may find these two concepts a bit difficult to understand. In this article, I will clarify the differences between Static and Temp variables through a few simple examples, along with an … Read more

The Distinction Between Intrusive and Non-Intrusive Smart Pointers in C++: A Deep Dive

The Distinction Between Intrusive and Non-Intrusive Smart Pointers in C++: A Deep Dive

The Distinction Between Intrusive and Non-Intrusive Smart Pointers in C++: A Deep Dive <span>std::shared_ptr</span> is not a silver bullet; uncovering the memory management tool for high-performance scenarios—intrusive pointers Introduction:<span>std::shared_ptr</span> and its “hidden costs” Hello, C++ developers. We all love <span>std::shared_ptr</span>, which elegantly solves the memory management problem of shared ownership through reference counting. When we … Read more

Is MMU Required for Running Embedded Linux?

Is MMU Required for Running Embedded Linux?

Scan to FollowLearn Embedded Together, learn and grow together Why is MMU Needed? We know that applications cannot access memory arbitrarily. Allowing applications to directly access physical memory would be very dangerous, as all contents of the computer’s memory would be completely exposed. This is where the MMU comes in. The MMU, or Memory Management … Read more

GDB Debugging Methods (8) – Pwndbg

GDB Debugging Methods (8) - Pwndbg

After using GDB for a while, you may find that some features, such as viewing stack layouts, are not very convenient to use directly with GDB. However, the core issues of operating systems often lie in memory management. For example, printing a doubly linked list is not easy to handle with GDB alone. So, is … Read more