0

I was asked this question in an interview. Why does firefox show a single process in the task manager even when multiple instances of the application is open while Internet Explorer 8 and Google Chrome show multiple processes in the task manager? So what factors decide this kind of behaviour in different applications? Please answer as soon as possible!

4

1 回答 1

1

每个会话始终只打开 1 个 Firefox 实例,但它可以有多个窗口。这与 chrome 和 IE 不同,其中每个选项卡和窗口都会创建一个新实例。两者都有优点和缺点。

对于初学者,如果在 IE 或 Chrome 中,1 页崩溃(由于插件或错误或其他原因),只有该实例崩溃并且不会影响其他实例。它也更安全,入侵 1 个页面并不意味着您可以访问整个浏览器,因为所有页面都是隔离的。成本是性能上的一点损失,因为您有每个实例的窗口开销,并且没有简单的资源共享方法。

编辑

请阅读: http: //blog.chromium.org/2008/09/multi-process-architecture.html

于 2011-08-09T07:20:23.500 回答