If I have one application with activity, service, and contentprovider. Then when I run this program how many process, threads will be created? Is it possible to run these components in more than one process?
One process, one Thread, Yes it is possible to run in more than one process.
One process, one thread, one application can have only one process.
One process, one thread, one application can have only one process
Process is not related with Application
Before loading an application into RAM, a process will be created with a thread by default. Even though in Linux, an application will be given only one process to run all its components, it is quite possible that components of a given application can run in more than one process provided both processes have same Linux user id.
Back To Top