Skip to content
systemcoding.dev

Tag

linux

82 posts

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

Level-Triggered vs Edge-Triggered epoll

Compare epoll level-triggered and edge-triggered modes with EPOLLET, see exactly when each reports readiness, and pick the right one for your server.

6 min read
Flat illustration of network packets crossing between two hosts, with the C, Linux and Rust logos.
Networking

Build an epoll Event Loop in C Step by Step

Write a single-threaded TCP echo server on Linux with epoll_create1, epoll_ctl and epoll_wait, using non-blocking sockets and a clean accept and read loop.

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

Common errno Values and What They Mean

A cheat sheet of the errno values you meet most on Linux, such as ENOENT, EACCES, EINTR and EAGAIN, with the cause, the reaction and when not to retry.

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