There are many ways to examine process IDs in Windows.
For example, using the PowerShell command:
ps | select Id, ProcessName | Sort Id | ft -AutoSize
We see the following output:
Id ProcessName
-- -----------
0 Idle
4 System
264 svchost
388 smss
476 csrss
536 wininit
580 winlogon
620 services
628 lsass
728 svchost
828 dwm
1060 chrome
1080 rundll32
1148 vmms
1620 spoolsv
2912 taskhostex
3020 explorer
...
All the process IDs are even numbers and, in addition, they are all multiples of 4.
There are no odd process IDs on any version of Windows that is based on Windows NT.
What is the reason for this?
Best Answer
"Why are there no odd Windows process Ids?"
Why are process and thread IDs multiples of four?
Source Why are process and thread IDs multiples of four?
Why are kernel HANDLEs always a multiple of four?
Source Why are kernel HANDLEs always a multiple of four?
Further reading