Android 中的 DalvikVM 与 JavaVM?
一般来说,Android 将每个应用程序作为 Dalvik VM 中的单独进程运行。我从 Doc 得到这个。但我不明白使用 Dalvik VM for Android 的主要原因是什么。它比Java VM有什么优势?分享您的知识。它有帮助。
提前致谢。
In General, Android runs the each App as a seperate process in Dalvik Vm. I got this from the Doc. But i can not understand what is the main reason to go to Dalvik VM for Android. What are the Advantages it has than Java VM. Share your Knowledge. It helps.
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现了一些差异...
除此之外
Dalvik 还能够通过减少最终 apk 大小来压缩应用程序中的资源,并使设备运行 VM 的多个实例高效
虚拟机被精简以使用更少的空间
针对最小的内存占用进行了优化。
从 Android 2.2 SDK 开始,Dalvik 有了一个即时编译器
关于许可证
Dalvik 据说是一个干净的房间实现,而不是在标准 Java 运行时之上的开发,这意味着它不会继承标准版或开源版 Java 运行时基于版权的许可限制。 Dalvik 是在 Apache 2 许可证下发布的。 (来源:维基百科)
您还可以在以下链接中阅读有关相同内容的更多信息
http://code.google.com /events/io/2010/sessions/jit-compiler-androids-dalvik-vm.html
http://en.wikipedia.org/wiki/Dalvik_%28software%29
http://2009.confidence.org.pl/materialy/prezentacje/marc_schoenefeld_reconstructing_confidence_2009.pdf
A few differences that i found...
In Addition to this
Dalvik has the capacity to compress resources that you have in your application there by reducing the final apk size and makes the device run multiple instances of the VM efficiently
The VM was slimmed down to use less space
Optimized for minimal memory footprint.
From Android 2.2 SDK Dalvik has got a Just in Time compiler
Regarding Licenses
Dalvik is said to be a clean-room implementation rather than a development on top of a standard Java runtime, which would mean it does not inherit copyright-based license restrictions from either the standard-edition or open-source-edition Java runtimes. Dalvik is published under the Apache 2 license. (Source: wikipedia)
You can also read more information regarding the same on the following links
http://code.google.com/events/io/2010/sessions/jit-compiler-androids-dalvik-vm.html
http://en.wikipedia.org/wiki/Dalvik_%28software%29
http://2009.confidence.org.pl/materialy/prezentacje/marc_schoenefeld_reconstructing_confidence_2009.pdf
Dalvik VM特别适用于内存较小且处理器处理速度不高的嵌入式系统。
Dalvik使用dex文件来执行,它是class文件的转换和压缩版本。它的大小非常非常小,大约小于或等于相同class文件的压缩jar文件。
Dalvik VM is used in system specially in embedded systems where memory is low and processing speed of processor is not high.
Dalvik uses dex files to execute which is converted and zipped version of class files.It is very very small in size roughly less or equal of compressed jar file of same class files.