android – Dalvik与Zygote流程之间的关系是什么?

我只是想知道 :

>谁创建了dalvik_Vm?
>受精卵过程是在vm中运行还是相反?

解决方法:

Dalvik VM由Dan Bornstein撰写
每个Android应用程序都在一个单独的进程中运行,拥有自己的Dalvik VM.

Zygote is a daemon with the only mission to launch applications. This means that Zygote is the parent of all App process. When app_process launches Zygote, it creates the first Dalvik VM and calls Zygote’s main () method. Once Zygote starts, it preloads all necessary Java classes and resources, starts System Server and opens a socket /dev/socket/zygote to listen for requests for starting applications.

上一篇:本机代码可以导致Android中Java代码中的内存损坏吗?


下一篇:android – Xamarin运行时vs Dalvik