Processes and Threads//进程和线程
When an application component starts and the application does not have any other components running, the Android system starts a new Linux process for the application with a single thread of execution. By default, all components of the same application run in the same process and thread (called the "main" thread). If an application component starts and there already exists a process for that application (because another component from the application exists), then the component is started within that process and uses the same thread of execution. However, you can arrange for different components in your application to run in separate processes, and you can create additional threads for any process.
//当一个应用的组件开始运行并且这个应用没有其它的组件在运行,安卓系统会以单线程的运行为应用开启一个新的Linux进程。默认情况下,同样一个应用里面所有的组件是运行在一个相同的进程和线程(叫做主线程)里面的.如果一个应用的组件开始了,这是这个应用里面已经存在了一个进程(因为这个应用里面的其它组件已经存在了),那么这个组件会在这个进程里面开始,并且使用使用相同的线程执行.但是,你可以在你的应用里面安排不同的组件在分开的进程里面,并且你可以为任何进程建立额外的线程。
This document discusses how processes and threads work in an Android application.
//这个文档讨论,在安卓应用里面这个线程和进程是如何工作的。