DVM instance creation per activity or application

北慕城南 提交于 2020-01-14 06:40:34

问题


For Android, each application has its own instance of DVM or each activity of an application has its own DVM instance i.e. the instance of DVM is created based on the application or activity?


回答1:


Generally, each process has its own Dalvik VM. Since normally each application runs in a single process, all activities share the Dalvik VM for that process.

There are more complicated scenarios (one app spread across N processes, N apps sharing one process), but those are very unusual in conventional Android application development.



来源:https://stackoverflow.com/questions/16545917/dvm-instance-creation-per-activity-or-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!