Deep Dive into Linux Epoll and I/O Multiplexing

I/O multiplexing is essential for handling high concurrency. Before Linux 2.6, select and poll were the primary mechanisms, but they struggle with massive connection counts. epoll resolves these limitations through an optimized architecture.Limitations of Select and PollWhen managing hundreds of thousands of connections where only a small fract ...

Posted on Thu, 07 May 2026 19:47:23 +0000 by fearfx

Implementing Stack Data Structures in C: Array-Based and Linked List Approaches

A stack is a linear data structure that restricts insertions and deletions to a single endpoint—referred to as the top—while the opposite fixed end is the bottom. When no elements are present, its an empty stack, and its fundamental behavior follows Last-In-First-Out (LIFO) semantics. Static Stack Using Contiguous Memory This implementation lev ...

Posted on Thu, 07 May 2026 06:50:15 +0000 by yakabod

Memory Management in C and C++

Memory Distribution in C/C++ int globalVar = 1; static int staticGlobalVar = 1; void Test() { static int staticVar = 1; int localVar = 1; int num1[10] = {1, 2, 3, 4}; char char2[] = "abcd"; const char* pChar3 = "abcd"; int* ptr1 = (int*)malloc(sizeof(int) * 4); int* ptr2 = (int*)calloc(4, sizeof ...

Posted on Wed, 06 May 2026 10:38:13 +0000 by nogginj