Android learning notes, first known as Android .. DVM and JVM

Source: Internet
Author: User

Android is an open-source Linux-based operating system. One of the core content of Android is DVM, which is the Dalvik virtual machine. It differs from the traditional JVM:

1. Architecture differences: the former is based on Reg (in CPU), and the latter is based on stack (in memory ). The most significant difference is that the former can effectively reduce the number of memory accesses to speed upProgram.

Others, such as optimization in advance and faster compilation, cannot be understood because they do not understand the compilation principles for the time being.

2. The executed bytecode is different. The former is in Dex format and the latter is in. Class format. Dex is optimized for mobile devices.

Technorati Tag: Android

3. DVM can run multiple VM entities simultaneously and coexist in independent processes. What about JVM? It also exists in the independent process .. There is no deep understanding yet .. To be supplemented later.

....

 

4. DVM uses the Linux system to manage processes and threads. Because a thread in DVM is a thread in Linux, it depends on the system to manage threads.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.