Posts Tagged ‘PC’

This blog has been moved. Please click to open the post in blog.rambabusaravanan.com

This blog has been moved. Please click to open the post in blog.rambabusaravanan.com

Android Powered Devices have virtual machine in which apps run is one of the huge advantage. Android has been using Dalvik Virtual Machine which make use of JIT (Just-In-Time) Compiler since first version of it. Now it is the decision by Google to include a new runtime in Android 4.4 KitKat known as Android RunTime (ART) which make use of Ahead-Of-Time (AOT) Compilation that promises to make your device faster and your battery last longer ..

Android Virtual Machine : Dalvik vs ART

Android Virtual Machine : Dalvik vs ART

Before we jump into this brand new VM, and why it’s turned off by default, let’s make sure everyone understands what we’re talking about ..

Virtual Machine

Virtual Machines are not physical machines but as a software makes possible to run other machines in a your physical machine. For example consider you having a Windows Machine (Assume as it is the only physical machine you are having with you) and if you want to use a Linux or a Mac System, then Virtual Machine paves the way to running a Linux machine or Mac Machine in your Windows Machine ..

Advantages

One of the advantages is the physical separation of each environment in which all the apps (including viruses, malware, and even crashed apps) are all kept apart from your main OS ..

And the next thing is the ability to run programs written for one architecture on a box that runs something different. For example, the ability to run programs compiled to run on an ARM-based CPU when your computer is running an Intel-based processor ..

Android and VM

In order to target different many devices like Tablet, Smartphones, PC, TV, Watch and other gadgets running Android on different hardware architecture, Android uses a specialized virtual machine to run their apps ..

The concept lies here. Developers write code and we download those from the Play Store or some other source. This code is mostly uncompiled. When you use those, it gets comipled to target(in otherwords ‘according to’) the type of device we are having ..

Dalvik (JIT Compilation)

Usually Android uses Dalvik Virtual Machine to compile and run. The concept of Dalvik lies here. Dalvik VM uses JIT (Just-In-Time) Comiplation, which means the downloaded and installed app remains uncompiled untill it’s first launch. And when it is launched first time, it gets compiled just in that time and loaded into RAM (main memory) and hence the name Just-In-Time Compilation. This whole process repeats again when the app/os gets restarted ..

ART (AOT Compilation)

Now Android 4.4 KitKat includes a new runtime call “Android runtime”, ART. Unlike JIT, which must compile every app everytime whenever it’s loaded, ART works on a concept called ahead-of-time (AOT) compilation. The Concept lies here. When you download and install an app it automatically pre-compiles. This takes up more space on your device and takes longer to initially install when compared to Dalvik. However, apps launch quicker and are arguably faster when run using ART rather than Dalvik. What’s more, since less time is required to run apps, your processor doesn’t get worked as hard and your battery life may benefit as a result ..

ART is not set Default

ART is currently very experimental. Not every app works properly in ART, and if you already installed all your apps under Dalvik, you’ll need to reboot and wait up to 20 minutes (less if you have fewer apps, more if you’ve got a bunch) for that first boot to complete. You see, it’s got to pre-compile all of them so they’re ready for you. For all of those reasons, ART is disabled by default ..

Benefits

As based on reports from various sources, it is approximated as follows

  1. 50% – 100% increase in speed
  2. 25% increase in battery life

AOT compilation is the future, and ART is the way Google is going to get us there. This is just the first little step toward a much more lofty goal. Perhaps ART will be the standard runtime in Android 5.0 ..

For further more information visit here ..

Advertisements

Global personal computer (PC) sales have fallen for the fifth quarter in a row, making it the “longest duration of decline” in history.

Worldwide PC shipments totalled 76 million units in the second quarter, a 10.9% drop from a year earlier, according to research firm Gartner.

PC sales have been hurt in recent years by the growing popularity of tablets.

Gartner said the introduction of low-cost tablets had further hurt PC sales, especially in emerging economies.

“In emerging markets, inexpensive tablets have become the first computing device for many people, who at best are deferring the purchase of a PC,” said Mikako Kitagawa, principal analyst at Gartner, said in a statement.

Separate data released by research firm IDC also showed an 11.4% decline in global PC shipments during the period, from a year earlier.

IDC, which uses a slightly different method to calculate the data, said that shipments totalled 75.6 million units in the second quarter.

However, it said that the numbers were better than it had expected and were likely to improve in the coming months.

“With second quarter growth so close to forecast, we are still looking for some improvement in growth during the second half of the year,” said Jay Chou, a senior analyst at IDC Worldwide PC Tracker.

But he warned that the sector was facing risks and much work needed to be done to turn around things.

“Slower growth in Europe and China reflect the risks, while the improved US outlook reflects potential improvement. Still, the weakness in emerging markets is a threat to a core long-term growth area,” Mr Chou said.

“In addition, while efforts by the PC ecosystem to bring down price points and embrace touch computing should make PCs more attractive, a lot still needs to be done in launching attractive products and addressing competition from devices like tablets.”