简体   繁体   English

应用程序调用另一个应用程序。 它会创建另一个过程吗?

[英]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.

相关问题 创建一个将锁定另一个应用程序事件的应用程序 - Create an application which will lock another application event 如何检测另一个应用程序启动的进程是否正在执行? - how to detect if a process launched by another application is executing? 检测应用程序是否启动了另一个过程 - Detect if the application started made another process 在另一个过程中从应用程序上下文开始活动 - Start activity from application context in another process 在WPF应用程序中使用process.start调用另一个WPF应用程序 - Using process.start in a wpf application to invoke another wpf application 如何从 C# 应用程序远程调用另一个进程方法 - How to remote invoke another process method from C# application 为什么在使用控制台应用程序测试时在 DLL 文件中启动的进程可以工作,但在被另一个 DLL 文件调用时却不能工作? - Why does a process started in a DLL file work when tested using console application, but not when called by another DLL file? Python另一个应用程序启动 - Python another application launch 如何让 java 运行应用程序,当用户关闭应用程序时,java 在 mac 或 windows 中运行另一个进程 - how to get java to run an application and when user closes the application, java runs another process in mac or windows 在C#中创建进程而不是应用程序 - Create a process not an application in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM