Skip to content
systemcoding.dev

Tag

beginner

445 posts

Flat illustration of two options weighed side by side, with the C, Linux and Rust logos.
Networking

Blocking vs Non-Blocking I/O Explained

Learn what blocking and non-blocking I/O mean for sockets on POSIX, what EAGAIN tells you, and why servers with many clients switch to non-blocking mode.

6 min read
Flat illustration of parallel threads meeting at a mutex, with the Linux, Erlang and C logos.
Concurrency

Processes vs Threads: What Is the Difference

A process owns an address space and a thread is a schedulable flow inside one. See what each shares and isolates on Linux, with fork and pthread_create code.

7 min read
Flat illustration of source code passing through a compiler and linker into a binary, with the C, GNU and LLVM logos.
Toolchains

Write Your First Makefile for a C Program

Write a working Makefile for a small C program with a compiler variable, flags, object files and a clean target, and see how make decides what to rebuild.

6 min read
Flat illustration of heap memory as allocated and free blocks, with the C, Rust and Zig logos.
Debugging

Find Memory Leaks With Valgrind Memcheck

Run a C program under Valgrind Memcheck with --leak-check=full to find memory that was allocated and never freed, and read the report down to the source line.

7 min read
Flat illustration of user space above the system call boundary, the kernel and the hardware, with the C, GNU and Linux logos.
Systems Programming

What Is errno and How Does It Work in C

errno is a per-thread integer that C library and system calls set on failure. Learn when it is valid and how to read it correctly with glibc 2.41.

7 min read
Flat illustration of user space above the system call boundary, the kernel and the hardware, with the Linux, C and Rust logos.
KernelsGuide

The Complete Guide to Linux Kernel Modules

A complete guide to Linux kernel modules: lifecycle, build, load, parameters, exported symbols, a working misc device, licensing, signing, DKMS and debugging.

27 min read