本文介绍了是否为每个应用程序创建了Dalvik虚拟机实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是为每个应用程序创建的Dalvik虚拟机实例,还是所有Android应用程序共享同一个Dalvik虚拟机实例?

Is a Dalvik virtual machine instance created for each application, or all Android applications share the same Dalvik virtual machine instance?

推荐答案

每个Android应用程序都使用自己的Dalvik虚拟机实例在其自己的进程中运行.编写Dalvik的目的是使设备可以有效地运行多个VM.

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.

Dalvik VM执行Dalvik Executable(.dex)格式的文件,该格式经过优化以最小化内存占用.

The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimised for minimal memory footprint.

VM基于寄存器,并运行由Java语言编译器编译的类,这些类已通过随附的dx工具转换为.dex格式.

The VM is register-based, and runs classes compiled by a Java language compiler that have been transformed into the .dex format by the included dx tool.

也请参阅什么是Dalvik虚拟机... a,以获取有关DVM的详细说明.

Also have a look at What is... The Dalvik Virtual Machine for detailed description about DVM.

这篇关于是否为每个应用程序创建了Dalvik虚拟机实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!