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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -