Multithreading in Linux: Concepts and Implementation

Thread Fundamentals A thread represents the smallest executable unit managed by the operating system scheduler. Unlike processes, threads within the same process share memory space, file descriptors, and other resources. This model enables efficient parallel execution on multi-core systems but requires careful synchronization to avoid data race ...

Posted on Tue, 28 Jul 2026 16:26:06 +0000 by egalp

Managing Linux Network Interfaces with NetworkManager

Modern Linux distributions have shifted from the legacy network service to NetworkManager, particularly since RHEL 7. This change addresses the increasing complexity of network parameters and provides a unified configuration layer. Instead of manually editing files and restarting services to load configurations into kernel memory, NetworkManage ...

Posted on Mon, 27 Jul 2026 16:59:07 +0000 by shadow1200

Parsing Command-Line Arguments in C: getopt and getopt_long

When developing command-line applications in C on Unix or Linux systems, developers need a reliable mechanism to interpret user-supplied flags and arguments. The GNU C Library provides two essential functions for this purpose: getopt and getopt_long. These functions handle the tedious task of parsing argv arrays, allowing programmers to focus o ...

Posted on Mon, 27 Jul 2026 16:08:53 +0000 by iRock

Installing Docker Engine on Ubuntu Systems

Adding the Official Docker Repository Follow these steps to configure the Apt package manager with Docker's official package source. First, update the package index and install prerequisite utilities: sudo apt update sudo apt install ca-certificates curl The ca-certificates package contains root certificaets for verifying secure HTTPS connecti ...

Posted on Sun, 26 Jul 2026 17:11:17 +0000 by footiemadman007

Configuring Network Settings in Linux

IP Address ClassificationIPv4 addresses are categorized into five classes (A through E), although D (multicast) and E (experimental) are rarely configured on standard hosts.Class A: The first octet represents the network (1-127). The loopback address consumes 127.0.0.0/8, leaving 126 valid networks. Each network supports 2^24 - 2 hosts. Default ...

Posted on Sun, 26 Jul 2026 16:16:19 +0000 by George Botley

Resolving Network Connectivity Issues on Realtek RTL8111/RTL8168 Ethernet Controllers in Linux

Linux kernels typically load the open-source r8169 module for Realtek RTL8111/RTL8168/8411 Gigabit Ethernet controllers. While functional for many users, this default driver frequently exhibits packet fragmentation, intermittent link drops, or severe throughput degradation under heavy network loads. Replacing it with the manufacturer-supplied r ...

Posted on Sat, 25 Jul 2026 16:57:53 +0000 by genericnumber1

Managing and Configuring Swap Memory on Linux

Initial State Verification Evaluate current swap utilization using free -h. Prior to making modifications, deactivate existing swap instances to prevent conflicts. swapoff -a Constructing the Swap File Allocate disk space for swap funcsionality. Execute the following command to generate a 4GB file named swapfile within /opt. dd if=/dev/zero of ...

Posted on Sat, 25 Jul 2026 16:37:28 +0000 by mrherman

Linux Thread Management: Creation, Synchronization, and Lifecycle Control

Understanding thread control in Linux requires moving beyond process-centric abstractions to grasp how lightweight execution units share resources while maintaining isolation where needed. Foundational Concepts Threads in Linux are implemented as tasks sharing the same virtual address space but with distinct execution contexts. Key characterist ...

Posted on Fri, 24 Jul 2026 17:08:05 +0000 by NightCoder

Inspecting Physical CPUs, Cores, Threads, and Their Running Processes on Linux

Key Fields in /proc/cpuinfo physical id – unique identifier for each physical processor package (socket). cpu cores – number of physical cores inside one package. processor – logical CPU identifier; every SMT sibling is counted separately. Definitions Term Meaning Physical CPU A real procesor chip that fits into a motherboard socket. ...

Posted on Fri, 24 Jul 2026 16:49:52 +0000 by chalbing

Understanding Linux Processes

Prerequisites for Understanding Processes Von Neumann Architecture Most modern computers, from laptops to servers, follow the Von Neumann architecture. This fundamental hardware structure defines how components interact within a computing system. Key components include: Input devices: keyboards, disks, network cards, graphics cards, microphone ...

Posted on Fri, 24 Jul 2026 16:46:28 +0000 by batfastad