Tagged articles
65 articles
Page 1 of 1
James' Growth Diary
James' Growth Diary
May 5, 2026 · Artificial Intelligence

AgentTool Deep Dive: Sub‑Agent Generation and Recursive Safeguards

This article dissects Claude Code's AgentTool, explaining how it spawns full‑featured sub‑agents, routes execution through three distinct paths, shares Anthropic Prompt Cache via Fork, and protects against infinite recursion with a dual‑layer safeguard while isolating worktrees for safe parallel file operations.

AI toolingAgentToolClaude Code
0 likes · 13 min read
AgentTool Deep Dive: Sub‑Agent Generation and Recursive Safeguards
Code Mala Tang
Code Mala Tang
Apr 28, 2026 · Operations

How Sub‑Agents Keep Claude Code Sessions Clean

Long Claude Code sessions quickly become noisy as every grep, find, and ls call stays in the main context, but using sub‑agents—including the built‑in Explore and Plan agents and the CLAUDE_CODE_FORK_SUBAGENT flag—isolates work, returns only concise summaries, and lets you monitor activity with a context‑timeline hook.

Claude CodeExplorePlan
0 likes · 7 min read
How Sub‑Agents Keep Claude Code Sessions Clean
Deepin Linux
Deepin Linux
Apr 19, 2026 · Fundamentals

How Linux Fork Uses Copy‑On‑Write to Boost Process Creation Efficiency

This article explains the fork system call in the Linux kernel, details the copy‑on‑write (COW) mechanism that underpins its efficiency, provides code examples, and explores practical scenarios and performance implications for process creation, memory usage, and concurrent server programming.

C ProgrammingCOWCopy-on-Write
0 likes · 36 min read
How Linux Fork Uses Copy‑On‑Write to Boost Process Creation Efficiency
Deepin Linux
Deepin Linux
Apr 4, 2026 · Fundamentals

Why Understanding fork, exec, and COW Is Crucial for Linux Developers

This article demystifies Linux's fork, exec, and copy‑on‑write mechanisms, explaining their inner workings, performance trade‑offs, and how they cooperate during typical command execution, while providing clear code examples and practical insights for developers and interview preparation.

COWLinuxexec
0 likes · 38 min read
Why Understanding fork, exec, and COW Is Crucial for Linux Developers
Deepin Linux
Deepin Linux
Mar 7, 2026 · Fundamentals

Understanding Linux Process Lifecycle: From Creation to Termination

This article provides a comprehensive, step‑by‑step explanation of Linux process management, covering the definition of a process, PCB structure, task organization, state transitions, creation system calls (fork, vfork, clone), execution with exec, scheduling, waiting, termination, and the kernel’s resource allocation strategies.

LinuxSystem Callsexec
0 likes · 43 min read
Understanding Linux Process Lifecycle: From Creation to Termination
Liangxu Linux
Liangxu Linux
Sep 24, 2025 · Fundamentals

Master Linux Process Management: Fork, vfork, exec, wait, zombie & orphan processes

This tutorial explains core Linux process concepts—including the difference between programs and processes, how to view and identify processes, detailed usage of fork and vfork for creating child processes, process termination, zombie and orphan handling, and practical examples of exec, system, and popen functions with C code.

C ProgrammingLinuxexec
0 likes · 28 min read
Master Linux Process Management: Fork, vfork, exec, wait, zombie & orphan processes
Deepin Linux
Deepin Linux
Sep 3, 2025 · Fundamentals

Master Linux Process Management: From PCB to Fork, Exec, and Daemons

This guide explains Linux processes, the role of the Process Control Block, how processes are created with fork and exec, the differences between foreground, background and daemon processes, and provides practical command‑line tools such as ps, top, htop, pgrep, pkill, kill, killall, pidof, nice and renice for effective process monitoring and control.

Linuxdaemonexec
0 likes · 25 min read
Master Linux Process Management: From PCB to Fork, Exec, and Daemons
Liangxu Linux
Liangxu Linux
Sep 1, 2025 · Fundamentals

What Happens Inside Linux When You Call fork()? A Deep Dive

This article explains how the fork() system call creates a duplicate process in Linux, walks through a simple code experiment, details the kernel steps—including task_struct creation, PID allocation, copy-on-write memory handling, and resource inheritance—and highlights common use cases, optimizations, and pitfalls.

Copy-on-WriteLinuxSystem Call
0 likes · 12 min read
What Happens Inside Linux When You Call fork()? A Deep Dive
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 ProgrammingLinuxSystem Calls
0 likes · 25 min read
Understanding Linux Process Creation, Waiting, and Execution: fork, wait, and exec
Linux Kernel Journey
Linux Kernel Journey
Dec 24, 2024 · Operations

How to Use tcpw with eBPF to Capture Curl’s Five‑Tuple Information

This article introduces tcpw, a small eBPF‑based utility that traces TCP, UDP, and Unix‑domain sockets to display the five‑tuple of commands like curl or telnet, explains its command‑line options, shows concrete usage examples, and details the underlying BPF and Go implementation, including connect, accept, and fork tracing.

GoLinux tracingaccept
0 likes · 8 min read
How to Use tcpw with eBPF to Capture Curl’s Five‑Tuple Information
Liangxu Linux
Liangxu Linux
Dec 7, 2024 · Fundamentals

Understanding Linux Processes: From Program to Process Control Block

An in‑depth guide explains what a program and a process are, details the Linux task_struct fields, describes process states, creation functions like fork, vfork, clone, kthread_create, the do_fork core, copy‑on‑write, termination methods, and the roles of zombie, orphan, and init processes.

Linuxforkos
0 likes · 20 min read
Understanding Linux Processes: From Program to Process Control Block
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.

COWLinuxdaemon
0 likes · 67 min read
Linux Process Management: Concepts, Implementation, Lifecycle, Scheduling, and Monitoring Tools
Linux Kernel Journey
Linux Kernel Journey
Oct 9, 2024 · Fundamentals

Understanding Linux Process Creation and Termination (Part 1)

This article walks through the Linux kernel mechanisms for creating and destroying processes, covering copy‑on‑write, the fork/vfork/clone system calls, the kernel_clone implementation in kernels 5.0 and 6.5, the copy_process workflow, and the steps the kernel takes to wake up a new task and clean up a terminated one.

LinuxcloneeBPF
0 likes · 26 min read
Understanding Linux Process Creation and Termination (Part 1)
Liangxu Linux
Liangxu Linux
Sep 17, 2024 · Fundamentals

Why Do Zombie Processes Appear in Linux and How to Eliminate Them?

This article explains the Linux zombie process concept, shows how they are created when a parent neglects wait(), demonstrates the issue with sample C code and ps output, discusses the risks of PID exhaustion, and provides proper handling techniques using wait() and process reaping.

Linuxforkwait
0 likes · 7 min read
Why Do Zombie Processes Appear in Linux and How to Eliminate Them?
Liangxu Linux
Liangxu Linux
Aug 4, 2024 · Fundamentals

How Linux Process Creation Powers Containers: From fork to Namespaces

This article explains how Linux creates processes using fork, vfork, clone and pthread_create, reveals the role of the init process, explores clone flags and namespace checks in the kernel, and shows why understanding these fundamentals demystifies container startup.

ContainerLinuxNamespace
0 likes · 7 min read
How Linux Process Creation Powers Containers: From fork to Namespaces
Liangxu Linux
Liangxu Linux
Sep 11, 2023 · Fundamentals

What Happens Inside a Linux Process Address Space?

This article walks through a simple C program that forks a parent and child process, explains why they share the same virtual address for a global variable yet see different values, and details how Linux uses virtual memory, page tables, and copy‑on‑write to manage process address spaces.

Copy-on-Writeforkprocess
0 likes · 10 min read
What Happens Inside a Linux Process Address Space?
Liangxu Linux
Liangxu Linux
Jun 25, 2023 · Fundamentals

Understanding Linux Process Creation: Kernel and User Space APIs

This article explains Linux process creation and termination, covering kernel functions like kernel_thread, kthread_create, kthread_run, the central _do_fork implementation, and user‑space interfaces such as fork, vfork, and pthread_create, with code snippets and diagrams.

Linuxforkkernel
0 likes · 7 min read
Understanding Linux Process Creation: Kernel and User Space APIs
dbaplus Community
dbaplus Community
Jun 19, 2023 · Databases

Why Is Redis Slowing Down? 10 Common Causes and How to Fix Them

This guide explains how to identify and resolve Redis performance degradation by measuring baseline latency, checking slowlog, avoiding high‑complexity commands, handling big keys, managing expiration spikes, tuning memory limits, reducing fork overhead, disabling huge pages, configuring AOF, binding CPUs, preventing swap usage, fixing memory fragmentation, and using lazy‑free mechanisms.

AOFBigKeyMemory
0 likes · 35 min read
Why Is Redis Slowing Down? 10 Common Causes and How to Fix Them
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.

AOFHybridPersistence
0 likes · 23 min read
Understanding Redis Persistence: AOF, RDB, and Hybrid Mechanisms
Open Source Linux
Open Source Linux
Jan 3, 2023 · Fundamentals

Mastering Linux Process Creation: fork, exec, wait, and Exit Explained

This comprehensive guide walks through Linux process creation with fork, explains its return values and copy‑on‑write behavior, covers normal and abnormal termination using return, exit and _exit, details waiting with wait/waitpid, and demonstrates program replacement via exec functions and a simple custom shell.

C ProgrammingLinuxexec
0 likes · 25 min read
Mastering Linux Process Creation: fork, exec, wait, and Exit Explained
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
Liangxu Linux
Liangxu Linux
Apr 10, 2022 · Fundamentals

Master Linux Process Management: fork, vfork, exec, wait, and more

This tutorial explains Linux process concepts, how to view and identify processes, the differences between programs and processes, and provides detailed examples of using fork, vfork, wait, exec family functions, system, and popen to create, control, and monitor child processes, including handling zombies and orphans.

System Programmingexecfork
0 likes · 29 min read
Master Linux Process Management: fork, vfork, exec, wait, and more
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.

GitGitHubRepository
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
ITPUB
ITPUB
Mar 9, 2022 · Fundamentals

Why Does Linux Report “Out of Memory” When PID Allocation Fails?

The article explains why Linux’s fork() can return a misleading “fork: cannot allocate memory” error, tracing the issue to PID allocation failures in the kernel’s do_fork and alloc_pid functions, and shows how excessive threads, not actual memory shortage, trigger the problem.

ENOMEMLinuxPID
0 likes · 12 min read
Why Does Linux Report “Out of Memory” When PID Allocation Fails?
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 25, 2022 · Fundamentals

Inside Linux’s fork: How the Kernel Creates a New Process

This article dissects the Linux kernel’s fork implementation, explaining why the child receives a return value of 0, how parent and child share code execution, the internal steps of sys_fork, kernel_clone, copy_process, thread handling, scheduling initialization, and the final insertion of the new task into the run‑queue.

LinuxSchedulingfork
0 likes · 10 min read
Inside Linux’s fork: How the Kernel Creates a New Process
Liangxu Linux
Liangxu Linux
Nov 6, 2021 · Fundamentals

How to Understand and Eliminate Zombie Processes on Linux

This guide explains what zombie processes are, how they are created when a child exits before its parent reaps it, and provides practical commands and sample C code to reproduce and safely remove zombie processes on a Linux system.

Linuxforkkill
0 likes · 7 min read
How to Understand and Eliminate Zombie Processes on Linux
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 20, 2021 · Backend Development

Mastering Node.js Multi‑Process: From spawn to cluster for High Concurrency

This article explains process and thread fundamentals, describes Node.js's single‑threaded nature, and provides detailed guidance on using the child_process module (spawn, fork, exec, execFile) and the cluster module to create, manage, and communicate between multiple Node.js processes for scalable, high‑concurrency applications.

BackendClusterNode.js
0 likes · 11 min read
Mastering Node.js Multi‑Process: From spawn to cluster for High Concurrency
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.

LinuxPHPfork
0 likes · 3 min read
Understanding PHP's pcntl_fork(): Process Creation and Fork Behavior
Open Source Linux
Open Source Linux
May 11, 2020 · Fundamentals

Understanding Processes: Basics, Forking, and Lifecycle in Operating Systems

This article explains what a process is, how it differs from a program, outlines its key characteristics, clarifies concurrency versus parallelism, describes how to create child processes, and covers orphan and zombie processes, termination methods, process groups, sessions, and race conditions.

Operating Systemconcurrencyfork
0 likes · 7 min read
Understanding Processes: Basics, Forking, and Lifecycle in Operating Systems
Code Ape Tech Column
Code Ape Tech Column
Apr 20, 2020 · Databases

Understanding Redis Persistence: RDB vs AOF and Performance Tips

This article explains how Redis implements two persistence mechanisms—RDB snapshots and AOF logs—covering their triggers, execution flows, advantages, drawbacks, differences, restart recovery procedures, and practical ways to mitigate performance overhead caused by fork operations.

AOFPersistenceRDB
0 likes · 14 min read
Understanding Redis Persistence: RDB vs AOF and Performance Tips
21CTO
21CTO
Oct 29, 2019 · Blockchain

What Is Blockchain? A Simple Guide to Its Core Concepts and Mining

This article provides a clear, beginner‑friendly explanation of blockchain as a decentralized distributed database, covering its essential structure, hash‑based immutability, mining difficulty, fork resolution, and why its practical use cases remain limited.

BlockchainHashMining
0 likes · 12 min read
What Is Blockchain? A Simple Guide to Its Core Concepts and Mining
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 21, 2019 · Fundamentals

Master Python Multiprocessing: From Fork to Process Pools

This article explains the concepts of processes and threads in Python, compares multi‑process, multi‑thread, and combined approaches, shows how to use fork, the multiprocessing module, process pools, subprocesses, and inter‑process communication with queues, and provides complete code examples with results.

IPCPythonThread
0 likes · 15 min read
Master Python Multiprocessing: From Fork to Process Pools
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.

LinuxPipePython
0 likes · 10 min read
Investigation of Subprocess Pipe Blocking in a Python Agent
MaGe Linux Operations
MaGe Linux Operations
Jun 27, 2019 · Backend Development

Master Python Multiprocessing: Fork, Process, Pool, and IPC Explained

This article explains how to create and manage multiple processes in Python using the os.fork method, the multiprocessing module's Process and Pool classes, and demonstrates inter‑process communication with Queue and Pipe, providing clear code examples for both Unix/Linux and cross‑platform environments.

IPCPythonfork
0 likes · 10 min read
Master Python Multiprocessing: Fork, Process, Pool, and IPC Explained
dbaplus Community
dbaplus Community
Jul 30, 2018 · Backend Development

Understanding Redis Persistence: RDB vs AOF and High‑Availability Strategies

This article explains Redis high‑availability concepts, focusing on persistence mechanisms—RDB snapshots and AOF logging—detailing their triggers, execution flows, file formats, configuration options, performance trade‑offs, and practical guidance for choosing and tuning persistence in production environments.

AOFConfigurationPersistence
0 likes · 29 min read
Understanding Redis Persistence: RDB vs AOF and High‑Availability Strategies
ITPUB
ITPUB
Jan 14, 2018 · Blockchain

What Is Blockchain? A Simple Guide to Blocks, Hashes, Mining, and Forks

This tutorial explains blockchain as a special distributed database, covering its core concepts such as block structure, hash immutability, mining difficulty, dynamic difficulty adjustment, and chain forks, while highlighting its advantages, limitations, and typical use cases like cryptocurrencies.

BlockchainHashMining
0 likes · 12 min read
What Is Blockchain? A Simple Guide to Blocks, Hashes, Mining, and Forks
ITPUB
ITPUB
Jan 6, 2018 · Blockchain

What Is Blockchain? A Simple, Step‑by‑Step Guide to Its Core Concepts

This article provides a clear, beginner‑friendly explanation of blockchain, covering its nature as a decentralized database, the role of blocks and hashes, mining mechanics, difficulty adjustment, and how forks are resolved, while highlighting both strengths and limitations of the technology.

BlockchainHashMining
0 likes · 13 min read
What Is Blockchain? A Simple, Step‑by‑Step Guide to Its Core Concepts
21CTO
21CTO
Jan 5, 2018 · Blockchain

What Is Blockchain? A Simple Guide to Its Core Concepts and Mining

This article provides a clear, step‑by‑step explanation of blockchain fundamentals, covering its nature as a distributed database, key features like decentralization, block structure, hash immutability, mining processes, difficulty adjustment, forks, and practical limitations, all illustrated with diagrams.

difficultydistributed ledgerfork
0 likes · 12 min read
What Is Blockchain? A Simple Guide to Its Core Concepts and Mining
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.

BlockchainHashMining
0 likes · 10 min read
A Beginner's Guide to Blockchain: Fundamentals and Mechanics
MaGe Linux Operations
MaGe Linux Operations
Apr 25, 2016 · Fundamentals

When to Use exec, source, or fork in Bash? A Practical Guide

This article explains the differences between exec, source, and fork in Bash, covering process creation, environment variable inheritance, command groups, variable substitution, positional parameters, logical operators, and provides example scripts to illustrate each concept for effective shell scripting.

Environment Variables_sourcecommand substitution
0 likes · 26 min read
When to Use exec, source, or fork in Bash? A Practical Guide
ITPUB
ITPUB
Dec 29, 2015 · Backend Development

How to Build a Concurrent Python Web Server with fork() and Sockets

This tutorial walks you through creating a simple iterative Python web server, demonstrates its single‑request limitation, explains socket fundamentals, and then shows how to transform it into a concurrent server using the Unix fork() system call while handling backlog, duplicate descriptors, and zombie processes.

SocketsUnixWeb server
0 likes · 18 min read
How to Build a Concurrent Python Web Server with fork() and Sockets
Node Underground
Node Underground
Nov 3, 2015 · Backend Development

Unlocking Node.js Multi‑Process Power: How Cluster and Fork Boost Performance

This article examines Node.js’s early criticisms about reliability and single‑threaded limits, then explains how the built‑in cluster module and fork() enable multi‑process deployment, load balancing, and communication, illustrated with code demos, performance insights, and a look at nginx proxy integration.

ClusterNginxNode.js
0 likes · 9 min read
Unlocking Node.js Multi‑Process Power: How Cluster and Fork Boost Performance