是为每个应用创建一个 Dalvik 虚拟机实例,还是所有 Android 应用共享同一个 Dalvik 虚拟机实例?
最佳答案
来自开发者文档:
Every Android application runs in its own process, with its own instance of the Dalvik virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently.
The Dalvik VM executes files in the Dalvik Executable (
.dex
) format which is optimised for minimal memory footprint.The VM is register-based, and runs classes compiled by a Java language compiler that have been transformed into the
.dex
format by the includeddx
tool.
也可以看看 What is... The Dalvik Virtual Machine有关 DVM 的详细说明。
关于android - 是否为每个应用程序创建了一个 Dalvik 虚拟机实例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13577733/