Previous Next Contents

6.4  进程关系

6.4.1  基本概念

6.4.2  终端和网络登录过程

Login process via terminal
图 4-8 终端上的登录过程

6.4.3  进程组

===============================================================================
       #include <unistd.h>

        int setpgid (pid_t pid, pid_t pgid);
        pid_t getpgid (pid_t pid);
        int setpgrp (void);
        pid_t getpgrp (void);
-------------------------------------------------------------------------------
    * 进程只能将自身和其子进程设置为进程组 id. 
    * 某个子进程调用 exec 函数之后, 就不能再将该子进程的 id 作为进程组 id.
===============================================================================

6.4.4  会话

6.4.5  控制终端

Process relationship
图 4-9 进程关系

6.4.6  Shell 中的命令执行

6.4.7  作业控制





Previous Next Contents