Concepts of processes and threads:
Process: A running instance of a program. Thread: The basic unit of CPU dispatch. When the activity starts, start a main thread, two binder threads. How is the mainline STABL generated?
Zygoteinit starts, and after a series of calls the final zygote creates the main thread-->activitythread for the activity. Which threads are used for binder when are they created? 1,service is also hosted in Activitythread, and the start-up process is basically consistent with activity. 2, start service, also need two binder thread support. Start multiple activity, the main thread does not change, binder threads increase. Four components defined in the same androidmanifest.xml are run in the same process unless specifically stated. Androidmanifest.xml can configure android:process to specify which process the component is running in.
Android process and thread management