美文网首页
Linux源码解析——进程结构

Linux源码解析——进程结构

作者: speakspeak | 来源:发表于2019-04-21 19:25 被阅读0次

    注意:采用慢慢添加的方法进行记录

    struct task_struct {

        volatile long state;      //进程的状态,其值的选择见TASK宏

         struct task_struct *parent;             /* parent process */

        struct list_head children;                 /* list of my children */

        struct list_head sibling;                     /* linkage in my parent's children list */

         struct list_head tasks;                     /*all tasks*/

         struct user_struct *user;    //用户的状态,包括进程数,打开文件数

         struct rlimit rlim[RLIM_NLIMITS];   //进程的各种限制,包括进程的最大个数。详见RLIMIT宏

    };

    相关文章

      网友评论

          本文标题:Linux源码解析——进程结构

          本文链接:https://www.haomeiwen.com/subject/jsgjgqtx.html