Is there just one PID for an application and the services it loads
Posted on 2013-11-08
I have an android application that loads three services. The application itself runs in the background with the three services. I am wanting to do some CPU usage measures for the application and the three services. I had placed the code that gathers the metrics that I am using in one of the services. It occurred to me that the PID that I am getting me only be for the service. I was hoping someone might know exactly how this works. Does the application and the three services each have there own PID or is there one PID shared between the application and the services? If I have not given enough information to answer this question, let me know and I will do what I can to supply more info.