avatar
Articles
24
Tags
104
Categories
3
首页
项目
  • 分布式架构
  • AI Agentic System
  • Lottery
中间件
  • MySQL
语言
  • Java
计算机基础
  • 算法
  • OS
  • 计算机网络
Hexo
Search
首页
项目
  • 分布式架构
  • AI Agentic System
  • Lottery
中间件
  • MySQL
语言
  • Java
计算机基础
  • 算法
  • OS
  • 计算机网络

Hexo

进程树
Created2026-03-11|OS
进程树 返回综述: 进程管理 进程树的数据结构在 task_struct 中, 通过以下字段构成一棵多叉双向树: 12345678struct task_struct __rcu *real_parent; // 生物学父进程: 谁fork了我struct task_struct __rcu *parent; // 法律上的父进程: 谁来wait我、收我的SIGCHLD// 通常 real_parent == parent, 仅在 ptrace 调试时不同struct list_head children; // 作为父进程时: 子进程链表的哨兵头(入口)struct list_head sibling; // 作为子进程时: 挂在父进程children链表上的节点struct task_struct *group_leader; // 线程组的主线程(和进程树无关, 是线程组维度的字段) parent 和 real_parent, 为什么要有两个 parent?这个场景主要是为了应对 debug 即 ptrace 场景, 在不使用调试器的时候, 两者指向的都是父进...
进程树
Created2026-03-11|OS
进程树 返回综述: 进程管理 进程树的数据结构在 task_struct 中, 通过以下字段构成一棵多叉双向树: 12345678struct task_struct __rcu *real_parent; // 生物学父进程: 谁fork了我struct task_struct __rcu *parent; // 法律上的父进程: 谁来wait我、收我的SIGCHLD// 通常 real_parent == parent, 仅在 ptrace 调试时不同struct list_head children; // 作为父进程时: 子进程链表的哨兵头(入口)struct list_head sibling; // 作为子进程时: 挂在父进程children链表上的节点struct task_struct *group_leader; // 线程组的主线程(和进程树无关, 是线程组维度的字段) parent 和 real_parent, 为什么要有两个 parent?这个场景主要是为了应对 debug 即 ptrace 场景, 在不使用调试器的时候, 两者指向的都是父进...
进程管理
Created2026-03-08|OS
进程管理进程数据结构进程的数据结构是task struct cpu资源: 调度优先级 内存地址空间资源: mm_struct 打开的文件资源: file_struct files (一个数组, 存的就是打开的文件的地址, 索引即是文件描符 fd) 进程自己的信息与状态 进程状态: 存储在task->state, task->exit_state两个字段中 如TASK_RUNNING, TASK_INTERRUPTIBLE, TASK_UNINTERRUPTIBLE, __TASK_STOPED… 唯一ID pid: 线程级别的id gtid: 进程级别的id 文件系统信息 struct fs_struct *fs namespace 进程树关系: 该进程在整个进程树里面的位置 进程的状态123456789101112131415161718/* Used in tsk->state: */#define TASK_RUNNING 0x00000000#define TASK_INTERRUPTIBLE ...
进程管理
Created2026-03-08|OS
进程管理进程数据结构进程的数据结构是task struct cpu资源: 调度优先级 内存地址空间资源: mm_struct 打开的文件资源: file_struct files (一个数组, 存的就是打开的文件的地址, 索引即是文件描符 fd) 进程自己的信息与状态 进程状态: 存储在task->state, task->exit_state两个字段中 如TASK_RUNNING, TASK_INTERRUPTIBLE, TASK_UNINTERRUPTIBLE, __TASK_STOPED… 唯一ID pid: 线程级别的id gtid: 进程级别的id 文件系统信息 struct fs_struct *fs namespace 进程树关系: 该进程在整个进程树里面的位置 进程的状态123456789101112131415161718/* Used in tsk->state: */#define TASK_RUNNING 0x00000000#define TASK_INTERRUPTIBLE ...
123
Recent Posts
LLM 推理优化学习主干道2026-04-01
01 · Core Concepts2026-04-01
02 · 日志抽象与 Push vs Pull2026-04-01
03 · 存储设计:Segment、Page Cache、零拷贝、Retention、Log Compaction2026-04-01
05 · Replication / ISR / Leader Election2026-04-01
Categories
  • Network1
  • OS4
  • 算法1
Tags
topic consumer-group kraft arithmetic-intensity compression profiling continuous-batching partition 进程管理 llm occupancy engineering HTTP rebalance offset reference group-coordinator raft bank-conflict inference consumer linking autoregressive header acks move-semantics gemm llm-inference metadata transformer LSO Linux thread DNS throughput ISR smart-pointer 侵入式链表 tiling pull
Archives
  • April 2026 18
  • March 2026 6
Website Info
Article Count :
24
Total Word Count :
44k
Unique Visitors :
Page Views :
Last Update :
© 2025 - 2026 By John DoeFramework Hexo 7.3.0|Theme Butterfly 5.5.0
Search
Loading Database