浏览器多进程构架的好处
Browser | Controls "chrome" part of the application including address bar, bookmarks, back and forward buttons.
Also handles the invisible, privileged parts of a web browser such as network requests and file access. |
Renderer | Controls anything inside of the tab where a website is displayed. |
Plugin | Controls any plugins used by the website, for example, flash. |
GPU | Handles GPU tasks in isolation from other processes. It is separated into different process because GPUs handles requests from multiple apps and draw them in the same surface. |
奔溃一个进程不会伤及所有选项卡,为了共享内存,Firefox(或进程达到限制的 Chrome) 折中了方案:使用了多进程,但并不是每个选项卡一个
安全性和沙盒:由于操作系统提供了限制进程权限的方法,因此浏览器可以从某些功能中对某些进程进行沙箱处理。