linux – 标识符PID,PPID,SID,PGID,UID,EUID是什么意思?

我被分配到

Write a C program that prints the following identifiers PID,PPID,SID,PGID,UID,EUID.

然后,作业继续询问

What represents each identifier?

我已完成该程序,但尚未找到有关标识符的充分解释.

>他们真正代表什么?
>特别是SID和PGID标识符的用途是什么?

解决方法

他们如下

> PID – 进程ID
> PPID – 父进程ID
> SID – 会话ID
> PGID – 流程组ID
> UID – 用户ID
> EUID – Effective User ID

看看this SO Post和第一个答案,以便对它们的用途进行健康的解释.

从他们发布的推荐定义页面
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html

3.270父进程ID

An attribute of a new process identifying the parent of the process. The parent process ID of a process is the process ID of its creator,for the lifetime of the creator. After the creator’s lifetime has ended,the parent process ID is the process ID of an implementation-defined system process.

3.343会议

A collection of process groups established for job control purposes. Each process group is a member of a session. A process is considered to be a member of the session of which its process group is a member. A newly created process joins the session of its creator. A process can alter its session membership; see setsid(). There can be multiple process groups in the same session.

3.296过程组

A collection of processes that permits the signaling of related processes. Each process in the system is a member of a process group that is identified by a process group ID. A newly created process joins the process group of its creator.

3.297进程组ID

The unique positive integer identifier representing a process group during its lifetime.

3.142有效用户ID

An attribute of a process that is used in determining varIoUs permissions,including file access permissions; see also User ID.

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...