If I have a process, and I clone it, is the PID the same?

前端 未结 5 1489
南方客
南方客 2020-12-20 05:25

Just a quick question, if I clone a process, the PID of the cloned process is the same, yes ? fork() creates a child process where the PID differs, but everything else is th

5条回答
  •  清歌不尽
    2020-12-20 06:31

    Since PID is an unique identifier for a process, there's no way to have two distinct process with the same PID.

提交回复
热议问题