JVM and Dalvik differences

Source: Internet
Author: User

JVM and Dalvik differences
     1, Dalvik is based on registers, the register is a memory space inside the CPU, access speed, and the JVM is based on the stack, the stack is a contiguous memory of storage space, access speed than register slower. Register-based virtual machines for larger programs, it takes less time to compile.
2, Dalvik is mainly the completion of object lifecycle management, stack management, thread management, security and exception management, as well as garbage collection and other important functions.
3, Dalvik responsible for process isolation and thread management, each Android application in the bottom will be corresponding to a separate Dalvik virtual machine instance, its code in the virtual machine interpretation to execute.
4. Unlike Java virtual machines running Java bytecode (. java. Class), the Dalvik virtual machine runs its proprietary file format, DEX (Dalvik executable) The Dex file format reduces the overall file size and improves the class lookup speed of I/O operations (. java. class-. Dex).
5, all the android application threads are corresponding to a Linux thread, the virtual machine can therefore rely more on the operating system thread scheduling and management mechanism

6. Dalvik is typically written in C or C + +, and the JVM is typically written in C + + or Java

7, if the JVM accidentally died, then all the Java programs running above are dead, and Dalvik dead, only one corresponding application died, the other did not affect.













JVM and Dalvik differences

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.