Google Chrome浏览器在打开新标签时的确切功能是什么? [英] What does the Google Chrome exactly do when a new tab is opened?
问题描述
当我在Google Chrome浏览器中打开一个新选项卡时,查看任务管理器,创建一个新进程。
但是,一段时间后,此进程终止。
为什么它显示出这种行为?是否由于系统调用 vfork()
?子进程是否立即调用 exec()
?
只有在Google Chrome浏览器或所有其他浏览器运行在类似的方式?
AFAIK Chrome为每个标签维护一个进程,也是一些插件的进程。他们更喜欢多进程架构而不是多线程架构,因为当您正在使网络应用程序始终与网络进行通信时,您可能期望接收可能导致内存不足的数据包。因此,多进程将阻止除一个进程以外的所有进程,而不是多线程将终止这些选项卡。
您可以在以下博客中启发自己: p>
http:// blog.chromium.org/2008/09/multi-process-architecture.html
Today, i observed an interesting behavior. I am using windows XP-sp3 OS.
When i open a new tab in Google Chrome & view the task manager, a new process is created.
But, after some time, this process is terminated.
Why it is showing such kind of behavior? Is it due to system call vfork()
? Does the child process immediately call exec()
?
Does it happen only with Google Chrome or all other browsers behave in a similar fashion?
AFAIK Chrome maintains one process for each tab, also one process for some plugins too. They preferred multi-process architecture over multi-threaded one because when you are making network application which communicate with network all the time, you can expect to receive packets which can garble the memory. So having multi-process will prevent all but one process, as opposed to multi-threaded will kill the the tabs.
You can enlighten your self on following blog:
http://blog.chromium.org/2008/09/multi-process-architecture.html
这篇关于Google Chrome浏览器在打开新标签时的确切功能是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!