«

»

May 26

Android Virtual Machine

Android Virtual Machine

 

אייקון-Android-Virtual-Machine.png

 

:Theoretical Background

 
 

There are many differences between the Java API and the Android API, and Android does not use a Java Virtual Machine, but it has its own Virtual Machine.

 

Starting Lollipop (and as an option in KitKat) Google has released its New Virtual Machine, Android RunTime – ART, previous to that the Dalvik Vitual Machine was used.

 

The Dalvik and ART are different from regular Java VMs, for example, they are designed to use less space

 

The ART VM uses Ahead Of Time compilation by compiling all the code to machine code upon the installation of the application and storing it in memory.

Dalvik uses JIT compiler, which compiles only at run time when necessary.

 

This means that an application that is installed on a device running ART will take up more space than the same exact application that is installed on a device running Dalvik.

However, the runtime performance of an application installed on a device running ART will be better than the performance of the same exact application installed on a device running Dalvik, also improving CPU usage and reducing battery consumption

 
 

בהצלחה !

Leave a Reply

Your email address will not be published.

אתם יכולים להשתמש באפשרויות ותגי ה-HTMLהבאים: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>