task_struct中real_parent与parent这两个指针有何区别

task_struct中real_parent与parent这两个指针有何区别

Content #

Linux task_struct中real_parent与parent这两个指针有何区别?

These are pointers to the parent’s task structure. For a normal process, both these pointers refer to the same task_struct; they only differ for multi-thread processes, implemented using posix threads.

For such cases, real_parent refers to the parent thread task structure and parent refers the process task structure to which SIGCHLD is delivered.

From #