C
Posts with this tag
Posts
-
Lock-Free Queues and Memory Ordering: An SPSC Ring Buffer Measured Against a Mutex
A single-producer single-consumer ring buffer in C11 atomics, the happens-before argument that makes acquire/release enough, ABA and MPMC caveats, and a measured comparison with pthread_mutex queues.
-
MPI from Zero: Ranks, Messages and a 1-D Heat Equation with Halo Exchange
What an MPI program is, how point-to-point and collective communication differ, the deadlock everyone writes once, and a complete heat-equation solver with ghost cells and non-blocking overlap, compiled and checked against Open MPI on a single laptop.
-
A Minimal Linux Kernel Module, and How to Read the Oops When It Breaks
Building and loading an out-of-tree module, crossing the user/kernel boundary safely with copy_from_user, and decoding the oops and stack trace that a kernel-mode mistake produces.