windows PID = 0 valid?

user156144 picture user156144 · Jul 12, 2010 · Viewed 31k times · Source

In Windows, is 0 valid PID for a process or is it reserved by OS? It would be nice if you can provide a link to a doc that says it is reserved or what. Thank!

Answer

developmentalinsanity picture developmentalinsanity · Jul 12, 2010

Open task manager - switch to the processes tab (maybe click "View", "Show columns" and enable the PID column).

PID 0 is the System Idle Process. Since that process isn't really a process and never exits, I suspect that it is always the case.

No documentation available to me, but I'm pretty certain this is always going to be the case.