[英]Application calls another Application. Does it create another process?
I was reading about Processes. 我在阅读有关流程的文章。 I wan't to know what really happens. 我不知道真正发生了什么。 My situation : "I opened an Application. That creates a process say process1. I have other applications interfaced with this one and all these open up when i click a button inside my running application. I want to know Does my process1 create new processes and IPC happens OR processes for all the linked applications are created at once and then IPC happens?" 我的情况是:“我打开了一个应用程序。创建了一个名为process1的进程。我有其他应用程序与此接口连接,当我单击正在运行的应用程序中的一个按钮时,所有这些应用程序都会打开。我想知道我的process1是否创建新进程并发生IPC还是立即创建所有链接的应用程序的进程,然后发生IPC?”
Obviously,a running application is a bunch of processes,or maybe a single process which has internally multiple threads acting within these processes. 显然,一个正在运行的应用程序是一堆进程,或者可能是一个进程,这些进程内部有多个线程在运行。
So,your activity decides the creation and deletion of processes.say,if you are running an application such as media player and you suddenly start searching related info about the album---so here,totally a new process is created which helps interaction through web and after returning the output,it may die,may not,but the process was created on your request.Also,mostly ipc happens within processes,exactly as per your thinking,but shared memory communication is also one of the option,which is complicated and is less common. 因此,您的活动决定了流程的创建和删除。例如,如果您正在运行媒体播放器之类的应用程序,而突然开始搜索有关专辑的相关信息,那么,这里将创建一个新的流程,该流程有助于通过Web并返回输出后,它可能会死亡,也可能不会,但是进程是根据您的请求创建的。此外,ipc大多发生在进程内,完全按照您的想法进行,但是共享内存通信也是一种选择,它是复杂且不常见。
One more thing to point out is that there are several 'daemon processes' which are running in the background and don't die before shutdown instruction!So,these processes are also sometimes related to the running application and serves its request.But,mostly,newer processes are created when we switch our task or perform certain action in the application. 还有一点要指出的是,有几个“守护进程”在后台运行,并且在关闭指令之前不会死掉!因此,这些进程有时也与正在运行的应用程序相关并可以满足其请求。 ,当我们切换任务或在应用程序中执行某些操作时,就会创建更新的流程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.