Android的:如何fork一个新的进程进程、Android、fork

2023-09-07 13:23:49 作者:江南烟胧雨

欲在同一DalvikVM运行两个进程。这意味着,我要运行第一个应用程序,然后,这个应用程序将启动第二个应用程序。我想,这两个应用程序,然后在同一个DalvikVM运行。我认为这是可能的,如果第一个应用程序叉的工艺为第二应用程序。但我不确定我怎样才能做到这一点。 谢谢

解决方案   

欲在同一DalvikVM运行两个进程。

根据定义,那是不可能的。

  

这意味着,我要运行第一个应用程序,然后,这个应用程序将启动第二个应用程序。我想,这两个应用程序,然后在同一个DalvikVM运行。

根据定义,那是不可能的。

  

我认为这是可能的,如果第一个应用程序叉的工艺为第二个应用程序。

没有。

Android运行机制

I want to run two processes in the same DalvikVM. This means that I want to run a first app and then that this app starts the second app. And I want that this two apps are then running in the same DalvikVM. I think it is possible if the first app forks an process for the second app. But I´m not sure how can I do that. Thanks

解决方案

I want to run two processes in the same DalvikVM.

By definition, that is impossible.

This means that I want to run a first app and then that this app starts the second app. And I want that this two apps are then running in the same DalvikVM.

By definition, that is impossible.

I think it is possible if the first app forks an process for the second app.

No.