Tag

fork

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Mar 10, 2025 · Fundamentals

Understanding Linux Process Creation, Waiting, and Execution: fork, wait, and exec

This article explains how Linux processes are created, managed, and replaced using the fork, wait (including waitpid), and exec system calls, covering their prototypes, return values, copy‑on‑write optimization, and practical C code examples that demonstrate their coordinated use in real‑world scenarios.

C ProgrammingExecLinux
0 likes · 25 min read
Understanding Linux Process Creation, Waiting, and Execution: fork, wait, and exec
Deepin Linux
Deepin Linux
Nov 26, 2024 · Fundamentals

Linux Process Management: Concepts, Implementation, Lifecycle, Scheduling, and Monitoring Tools

This article provides a comprehensive overview of Linux process management, covering fundamental concepts such as tasks and states, the internal task_struct representation, process creation via fork/vfork/clone, execution with execve, lifecycle transitions, scheduling policies, copy‑on‑write optimization, resource limits, and practical tools for monitoring and controlling processes.

COWLinuxProcess Management
0 likes · 67 min read
Linux Process Management: Concepts, Implementation, Lifecycle, Scheduling, and Monitoring Tools
DataFunSummit
DataFunSummit
Feb 23, 2023 · Databases

Understanding Redis Persistence: AOF, RDB, and Hybrid Mechanisms

This article explains Redis's three persistence options—Append‑Only File (AOF), Redis DataBase snapshots (RDB), and the hybrid mode—detailing their inner workings, configuration strategies, performance trade‑offs, and how to choose the most reliable solution for a given workload.

AOFDatabaseHybrid
0 likes · 23 min read
Understanding Redis Persistence: AOF, RDB, and Hybrid Mechanisms
Refining Core Development Skills
Refining Core Development Skills
Oct 12, 2022 · Fundamentals

Deep Comparison of Linux Processes and Threads from the Kernel Implementation Perspective

This article explains how Linux implements processes and threads, showing that both are represented by the same task_struct structure, detailing thread creation via pthread_create and clone, and comparing the kernel‑level steps—including flag handling, copy_process, and resource sharing—that differentiate threads from full processes.

LinuxThreadclone
0 likes · 17 min read
Deep Comparison of Linux Processes and Threads from the Kernel Implementation Perspective
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 25, 2022 · Databases

Diagnosing Periodic Redis Latency Caused by BGSAVE and Fork Overhead

The article analyzes a recurring one‑second pause in a Redis 4.0 master‑slave setup, identifies the periodic BGSAVE fork operation as the root cause through metrics like latest_fork_usec, and presents mitigation strategies such as memory limits, activedefrag, and migration to a lower‑RSS instance.

BGSAVERedisfork
0 likes · 6 min read
Diagnosing Periodic Redis Latency Caused by BGSAVE and Fork Overhead
IT Services Circle
IT Services Circle
Mar 22, 2022 · Fundamentals

Understanding Copy‑On‑Write in the Linux Kernel Using Linux 0.11 Source Code

This article explains the copy‑on‑write mechanism in Linux by examining page‑table structures, the fork process, and the page‑fault handling code in Linux 0.11, illustrating how the kernel uses read‑only page mappings and page‑fault interrupts to lazily duplicate memory pages.

LinuxMemory ManagementOperating System
0 likes · 9 min read
Understanding Copy‑On‑Write in the Linux Kernel Using Linux 0.11 Source Code
DevOps Engineer
DevOps Engineer
Mar 14, 2022 · Operations

How to Unfork a GitHub Repository Without Deleting History

This guide explains why GitHub lacks an unfork feature, outlines the problems caused by forked repositories, and provides a step‑by‑step method using GitHub Support (with optional command‑line cloning) to detach a fork while preserving commit history and fork records.

DevOpsGitHubRepository
0 likes · 3 min read
How to Unfork a GitHub Repository Without Deleting History
IT Services Circle
IT Services Circle
Mar 12, 2022 · Fundamentals

Understanding the Misleading ENOMEM Error in Linux Process Creation

This article analyzes why Linux reports "fork: cannot allocate memory" when the real issue is an excessive number of threads or PID allocation failures, explains the kernel's do_fork and alloc_pid implementations, and offers guidance for diagnosing and fixing such misleading ENOMEM errors.

ENOMEMLinuxPID
0 likes · 11 min read
Understanding the Misleading ENOMEM Error in Linux Process Creation
Refining Core Development Skills
Refining Core Development Skills
Mar 7, 2022 · Fundamentals

Understanding Linux fork, alloc_pid and the Misleading ENOMEM Error

The article explains why Linux reports "fork: cannot allocate memory" when the real issue is PID allocation failure caused by excessive threads, analyzes the kernel's do_fork and alloc_pid implementations, and shows that newer kernels still return ENOMEM for non‑memory errors.

ENOMEMLinuxPID
0 likes · 13 min read
Understanding Linux fork, alloc_pid and the Misleading ENOMEM Error
php中文网 Courses
php中文网 Courses
Feb 28, 2021 · Backend Development

Understanding PHP's pcntl_fork(): Process Creation and Fork Behavior

This article explains PHP's pcntl_fork() function, how it creates child processes on Linux, the return values in parent and child, code examples demonstrating variable copying and process multiplication, and clarifies why a loop with three forks results in seven child processes.

LinuxPHPbackend
0 likes · 3 min read
Understanding PHP's pcntl_fork(): Process Creation and Fork Behavior
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 6, 2020 · Databases

Redis Persistence Mechanisms: RDB Snapshots and AOF Append‑Only Files

This article explains Redis's two persistence mechanisms—RDB snapshot files and AOF append‑only logs—including their operation, configuration commands, advantages, disadvantages, recovery procedures, and performance recommendations for choosing between them.

AOFBackupDatabase
0 likes · 17 min read
Redis Persistence Mechanisms: RDB Snapshots and AOF Append‑Only Files
NetEase Game Operations Platform
NetEase Game Operations Platform
Sep 21, 2019 · Backend Development

Investigation of Subprocess Pipe Blocking in a Python Agent

The article analyzes a rare blocking issue in a Python Agent where a subprocess created via subprocess.Popen hangs due to an unclosed pipe inherited by a forked child process, demonstrates debugging steps using thread frames and lsof, and provides a reproducible example and mitigation recommendations.

LinuxPythondebugging
0 likes · 10 min read
Investigation of Subprocess Pipe Blocking in a Python Agent
Qunar Tech Salon
Qunar Tech Salon
Apr 28, 2018 · Blockchain

Understanding Bitcoin Transaction Packaging, Blockchain Forks, and Best Chain Selection

This article explains Bitcoin's transaction‑packaging process, the step‑by‑step mining workflow, the causes of blockchain forks—including both natural and intentional splits—and the criteria used to select the best chain as the main chain, providing a comprehensive technical overview.

BitcoinBlockchainConsensus
0 likes · 10 min read
Understanding Bitcoin Transaction Packaging, Blockchain Forks, and Best Chain Selection
Beike Product & Technology
Beike Product & Technology
Apr 13, 2018 · Blockchain

Understanding Bitcoin Transaction Packaging and Blockchain Forks

This article explains the detailed process of Bitcoin transaction packaging, the steps miners follow to create new blocks, and how both natural and intentional blockchain forks arise, including the criteria for selecting the best chain and the differences between hard and soft forks.

BitcoinBlockchainConsensus
0 likes · 11 min read
Understanding Bitcoin Transaction Packaging and Blockchain Forks
Architecture Digest
Architecture Digest
Jan 4, 2018 · Blockchain

A Beginner's Guide to Blockchain: Fundamentals and Mechanics

This article provides a clear, beginner‑friendly explanation of blockchain technology, covering its nature as a decentralized database, block structure, hashing, mining difficulty, dynamic adjustment, forks, and practical limitations, while illustrating concepts with diagrams and real‑world examples.

BlockchainCryptocurrencydifficulty
0 likes · 10 min read
A Beginner's Guide to Blockchain: Fundamentals and Mechanics
Qunar Tech Salon
Qunar Tech Salon
Jun 19, 2015 · Fundamentals

Understanding Code, Programs, and Processes in Linux: Lifecycle, Fork, Exec, and Init

This article explains the differences between code, programs, and processes in Linux, demonstrates how to compile and run a simple program, explores parent‑child relationships, the role of the init process, the process lifecycle, and the copy‑on‑write mechanism.

ExecLinuxcopy-on-write
0 likes · 10 min read
Understanding Code, Programs, and Processes in Linux: Lifecycle, Fork, Exec, and Init