The Linux kernel assigns a Process ID (PID) to a task. The PID range from 1...

The Linux kernel assigns a Process ID (PID) to a task. The PID range from 1 to 32768. The maximum number may vary, you can find it with the command: cat /proc/sys/kernel/pid_max. After reaching the maximum value, the kernel cycles back through using values that are not currently assigned to any task. With Linux, each thread also has a PID. The PID you see with the ps command is that of the thread group leader. To see the threads, you need to add the L option, such as ps -eLf.

Click Here!