Tag

task_struct

1 views collected around this technical thread.

Deepin Linux
Deepin Linux
Mar 29, 2025 · Fundamentals

Deep Dive into Linux task_struct: Core Data Structure for Process Management

This article provides a comprehensive overview of the Linux kernel's task_struct structure, detailing its key fields, process and thread identification, state definitions, memory and credential handling, kernel stack layout, and includes a practical kernel module example for iterating over all processes.

C++kernellinux
0 likes · 41 min read
Deep Dive into Linux task_struct: Core Data Structure for Process Management
Deepin Linux
Deepin Linux
Dec 22, 2024 · Fundamentals

Deep Dive into Linux Kernel task_struct: Structure, Fields, and Usage

This article provides a comprehensive analysis of the Linux kernel's task_struct data structure, detailing its members such as task IDs, parent‑child relationships, state flags, credentials, scheduling information, signal handling, memory and file management, kernel stack layout, and its role in process creation via system calls like fork.

C++kernellinux
0 likes · 22 min read
Deep Dive into Linux Kernel task_struct: Structure, Fields, and Usage
Deepin Linux
Deepin Linux
Oct 29, 2024 · Fundamentals

Understanding Linux task_struct: The Kernel‑mode Representation of Processes and Threads

This article provides a comprehensive overview of Linux's task_struct, explaining how the kernel represents and manages processes and threads, detailing its internal fields, state handling, scheduling, credentials, memory layout, and special mechanisms such as hung‑task detection.

Operating SystemSchedulerkernel
0 likes · 32 min read
Understanding Linux task_struct: The Kernel‑mode Representation of Processes and Threads
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.

clonedo_forkfork
0 likes · 17 min read
Deep Comparison of Linux Processes and Threads from the Kernel Implementation Perspective