找回密码
 立即注册
进程theProcessZygote | android开发 2022-11-09 43 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
Android系统里边的使用程序进程有一个特点,那就是它们是被系统保管的。也就是说,系统依据需求来创建进程以及收回进程。进程创建发作在组件启动时,它们是由Zygote进程担任创建。Zygote进程是由系统中的第一个进程init担任启动。此外,用来运行各种系统服务的SystemServer进程也是由Zygote进程创建的。进程收回发作在内存严重时,由LowMemoryKiller履行。此外,组件管理服务ActivityManagerService和窗口管理服务WindowManagerService也会在恰当的时候自动进行进程收回。每一个使用程序进程依据运行状况被赋予优先级,当需求收回进程的时候,就依照优先级从低到高的次序进行收回。这个PPT讲Android使用程序进程的启动和收回,首要涉及到Zygote进程、SystemServer进程,以及组件管理服务ActivityManagerService、窗口服务WindowManagerService,还有专用驱动LowMemoryKiller。通过理解Android系统对使用程序进程的管理,我们就能更清楚使用程序的运行机制。

(One feature of the user processes in the Android system is that they are kept by the system. In other words, the system creates and retracts processes according to requirements. Process creation occurs when components are started. They are created by the Zygote process. The Zygote process is started by init, the first process in the system. In addition, the SystemServer process used to run various system services is also created by the Zygote process. The process recall is performed by LowMemoryKiller when the memory is serious. In addition, the component management service ActivityManagerService and window management service WindowManagerService will also automatically retract the process when appropriate. Each user process is given priority according to the running status. When the process is called back, it is called back in the order of priority from low to high. This PPT talks about the startup and recall of Android application processes, mainly involving Zygote processes, SystemServer processes, component management services ActivityManagerService, window services WindowManagerService, and dedicated drivers LowMemoryKiller. By understanding the Android system's management of the application process, we can better understand the operation mechanism of the application.)

[下载]10385303250.rar




上一篇:Android应用程序资源管理框架
下一篇:Android组件设计思想