Tagged articles
27 articles
Page 1 of 1
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.

COWKernelLinux
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.

Linuxexecfork
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
Code Mala Tang
Code Mala Tang
Jul 20, 2025 · Fundamentals

Master Python locals() and globals(): Dynamic Variable Tricks Explained

This article explores how Python's locals() and globals() functions reveal variable scopes, demonstrates why locals() cannot modify local variables, shows how globals() can dynamically alter global state, and combines them with exec() for powerful runtime variable creation and updates.

DebuggingPythondynamic-variables
0 likes · 6 min read
Master Python locals() and globals(): Dynamic Variable Tricks Explained
Programmer Xu Shu
Programmer Xu Shu
May 16, 2025 · Databases

Mastering Redis Transactions: When to Use MULTI/EXEC, WATCH, and DISCARD

Redis is ubiquitous in Java development for caching, ranking, and distributed locks, but its transaction model differs from traditional databases; this article explains Redis transaction fundamentals, core commands (MULTI, EXEC, DISCARD, WATCH), common pitfalls, best practices, and interview FAQs to help developers avoid mistakes.

MULTITransactionsexec
0 likes · 11 min read
Mastering Redis Transactions: When to Use MULTI/EXEC, WATCH, and DISCARD
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 programmingLinuxexec
0 likes · 25 min read
Understanding Linux Process Creation, Waiting, and Execution: fork, wait, and exec
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Oct 28, 2024 · Fundamentals

How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace

The article explains that CPython stores function local variables in a statically‑indexed array (f_localsplus), accesses them via GETLOCAL/SETLOCAL macros, and builds the locals() dictionary on demand, showing how exec, variable assignment order, and the hidden local namespace interact with this mechanism.

CPythonPythonbytecode
0 likes · 27 min read
How Python Implements Static Lookup for Local Variables and Its Relationship to the Local Namespace
Liangxu Linux
Liangxu Linux
Aug 20, 2023 · Fundamentals

What Does exec Do in Bash Scripts? A Hands‑On Exploration

This article explains the purpose of the Bash built‑in exec command, demonstrates its effect on process trees through step‑by‑step experiments, and highlights important cautions when using exec in shell scripts.

BashShell scriptingexec
0 likes · 4 min read
What Does exec Do in Bash Scripts? A Hands‑On Exploration
Test Development Learning Exchange
Test Development Learning Exchange
Aug 2, 2023 · Fundamentals

Dynamic Code Execution and Code Generation in Python: Techniques and Practical Scenarios

This article explains Python's dynamic code execution and code generation techniques, covering the exec function, code templates, and six practical examples such as dynamic module import, class loading, function invocation, class definition, function creation, and runtime modification of classes or functions.

Code GenerationPythondynamic execution
0 likes · 5 min read
Dynamic Code Execution and Code Generation in Python: Techniques and Practical Scenarios
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
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
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 7, 2021 · Information Security

Scanning Files for Viruses with ClamAV and PHP on Linux

This guide explains how to configure ClamAV on Linux, run the clamdscan command to detect malicious files, and invoke the scanner from PHP using the exec function, including sample configuration and output details.

ClamAVLinuxPHP
0 likes · 2 min read
Scanning Files for Viruses with ClamAV and PHP on Linux
Node Underground
Node Underground
Jan 25, 2018 · Backend Development

Mastering Node.js child_process: exec vs spawn and Multi‑Core Strategies

Node.js’s child_process core module enables creation of child processes to leverage multi‑core CPUs and inter‑process communication, while also allowing execution of external files or system commands; this article explores the differences and inner workings of its exec and spawn methods.

Node.jschild_processexec
0 likes · 1 min read
Mastering Node.js child_process: exec vs spawn and Multi‑Core Strategies
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