I see the pricessid ranging from 800 to arround 6500. So what process or algorithm does Ubuntu use to assign unique pid to the process?
1 Answer
The kernel
beneath the ubuntu platfrom uses some process-scheduling algorithm
to schedule the process by accessing its PCB
(Process Control Block).
PCB is a datastructure
in linux
OS where the whole information is kept regarding the process
and the processID
is also kept in that data structure. You can also see the PCB in linux under /proc/