Why does Android create a unique VM for each process?
-
Why can't Android create a common VM and allow all apps to share that?
-
Answer:
Security and reliability. By running each app in its own process, each app is sandboxed, separated from other apps both logically and physically. Each process needs its own VM, and thus Android runs a unique Dalvik instance for each app you run. Android actually goes even further: Each app is not only run in a unique process, but each process is owned by a unique user. This ensures not only process separation but user credential separation. Given that processes are cheap in Linux and that Dalvik's code and some of its data is sharable across processes, this model provides very strong security and reliability guarantees with little cost. It wouldn't work with the existing Unix model, but Android rethought all of that.
Robert Love at Quora Visit the source
Related Q & A:
- How to create a unique identifier for tracking?Best solution by Stack Overflow
- How to create a jar in Android studio?Best solution by Stack Overflow
- Why can't I create a screen name?Best solution by answers.yahoo.com
- How can I create a cute, artsy, unique facebook profile?Best solution by Quora
- How to create a unique blog name?Best solution by spinxo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.