Linux Kernel:进程表示

环境:

Kernel Version:Linux-5.10

ARCH:ARM64

一:前言

Linux内核涉及进程和程序的所有算法都围绕task_struct数据结构建立,具体可看另一篇文章:

Linux Kernel:thread_info与task_struct

同时Linux提供了资源限制(resource limit, rlimit)机制,对进程使用系统资源施加某些限制,数据类型为:struct rlimit和struct rlimit64,该机制后续会新开一章详细分析。

struct rlimit {
	__kernel_ulong_t	rlim_cur;
	__kernel_ulong_t	rlim_max;
};

#define RLIM64_INFINITY		(~0ULL)

struct rlimit64 {
	__u64 rlim_cur;
	__u64 rlim_max;
};

二:进程类型

典型UNIX进程的产生方式&#

你可能感兴趣的:(Linux,Kernel,linux)