7
I’m starting to study desktop applications. I had a certain question about how I could know if a particular application is running and I was told that I could use the PID, as a solution, to detect this.
I usually work with operating system Linux and, as I understand it, it seems to me to be an ID of a process. That would be it?
I wanted to know a little more details:
What would be the PID?
Assuming that the PID has to do with identifying the process, if the same application is opened twice, it will have PID same or different?
That one PID is Linux thing or other operating systems use? I mean, that’s a default name or something adopted by Linux?
PID is the process id and is used by the operating system. Each process has a different id.
– Anderson F. Viana
In windows is also used, if you type
tasklist
in cmd it brings the running processes: https://i.stack.Imgur.com/Fp4x0.png the second line being the PID– MarceloBoni