On Wednesday, March 14, 2012 2:12:47 AM UTC-7, ManojB wrote: > > > > Hi all, I am just new in android and trying to learn about android. > I read this statement in android documentation. > "Each process has its own virtual machine (VM), so an application's code > runs in isolation from other applications." > then I have a question, why each process has its own VM, why not only one > VM. > Is it affect on performance? > > You can also see in the Android documentation: "Dalvik has been written so that a device can run multiple VMs efficiently."
The reason is safety. WIth a marketplace of a bazillion app developers, you want maximum isolation of each app from each other so they don't mess each other up. Also, it's an easier programming model to assume an app is the only one on its machine. -- Lew -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

