在看 man page ( man clone )时有这样一句:
Since the child and calling process may share memory, it is not possible for the child process to execute in the same stack as the calling process.
中文翻译是:由于子进程和调用进程可能共享内存,因此子进程不可能与调用进程在同一堆栈中执行。
为什么会由于共享内存( share memory )会导致父子进程运行在相同的栈上?