operating system - Is there a child's PID? -


i in operating systems class , teacher spent half of class period talking pids. mentioned, many know, processes know parent's id.

my question this:

does process's pcb know child's id? if so, way go obtaining it?

as far know process doesn't have explicit list of children's pids, can built, since process should know child processes spawns. example unix fork() call returns child pid in parent process , 0 in child process, createprocess() on windows returns (iirc) pid of new process created.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -