Assignment 1
Assignment 1
Zain Mushtaq
70067944
Section B
MAD
Virtual Machine
Firstly let us understand what a virtual machine is? It is
basically a software implementation of a physical computer.
This implementation works like a real physical computer. It
even compiles and runs programs the same as a physical
computer. It can be understood like an emulator. There are
some issues with virtual machines too. One is that it is less
efficient when compared to physical computers. Another issue
is its performance, which is unstable when multiple virtual
machines are working simultaneously on the same machine.
Even though Java Virtual machine has a high performance
and provides great memory management, it is not optimized
for low-powered devices. Dalvik VM is also a virtual machine
that is highly optimized for mobile devices. Thus, it provides
all the three things, that are memory management, high performance
as well as battery life. It is strictly developed for Android mobile
phones.
DALVIK VIRTUAL
MACHINE ANDROID RUN TIME
Cache builds up
overtime The cache is built during the first boot
Stable and tested Experimental and new – not much app support
virtual machine comparatively
Longer app loading Extremely Faster and smoother Faster and app
time loading time and lower processor usage
DALVIK VIRTUAL
MACHINE ANDROID RUN TIME
What’s Better?
It depends on the device and one’s own device and preferences:
in the long run, ART is better, but the apps do get bigger, requiring
large storage space over time, unlike flappy bird which was just
1MB and required less space.