About the pid of the process

后端 未结 7 1812
借酒劲吻你
借酒劲吻你 2020-12-11 14:39

I\'ve a somewhat silly question, if i have a series of processes that are created ... these are not necessarily some sort of inheritance, the pid of the processes have to be

7条回答
  •  北海茫月
    2020-12-11 15:00

    This is determined by the Operating System.

    In general, they are usually sequentially assigned by the OS. However, this behavior is not something to base decisions upon, since most operating system specifications state that the process ID allocation is not deterministic (ie: it could be random, and could change in a future version, etc).

提交回复
热议问题