a cpp files is not runnable, it is not a process. It will be compiled, and linked together with other compiled files and the result will be one single program. if you execute this process it will get a process id. In a multithreaded environment all the running threads will get also an id, but a source file (like your cpp) will never have a process id.
|