微軟解釋了為什麼一個 Edge 網頁會導致如此多的 Windows 進程

閱讀時間圖標 4分鐘讀


讀者幫助支持 MSpoweruser。如果您透過我們的連結購買,我們可能會獲得佣金。 工具提示圖標

請閱讀我們的揭露頁面,了解如何幫助 MSPoweruser 維持編輯團隊的發展 阅读更多

瀏覽器是當今我們 PC 使用的焦點,如果您曾經打開過 Windows 10 任務管理器,您會認為它們已經接管了您的 PC,這是可以原諒的,因為任務管理器將由大量 Web 瀏覽器進程主導.

在最近的一篇博文中,微軟準確解釋了為什麼一個網頁會導致許多 Windows 進程。

他們指出,現代瀏覽器是使用多進程體系結構構建的,這意味著瀏覽器被劃分為不同的進程。

  • 瀏覽器過程: 這是主要進程,它幫助管理窗口和選項卡,並控制瀏覽器框架,例如地址欄和前進和後退按鈕。 它還將特權訪問路由到實用程序進程,如網絡請求和文件訪問。
  • 渲染器過程: These control how websites are rendered in a tab by executing code provided by the website.這些控件通過執行網站提供的代碼來控制如何在選項卡中呈現網站。 They handle HTML (Hypertext Markup Language), CSS (Cascading Style Sheets), JavaScript, images, and more.它們處理HTML(超文本標記語言),CSS(級聯樣式表),JavaScript,圖像等。 The resource usage of each renderer process varies depending on the content being hosted.每個渲染器進程的資源使用情況都取決於所託管的內容。
  • GPU過程: GPU是一種硬件,可以快速執行與圖形相關的計算,並將輸出發送到監視器以進行顯示。 Modern browsers use the GPU to quickly render web pages.現代瀏覽器使用GPU來快速呈現網頁。
  • 實用程序: 這些過程處理音頻播放,網絡服務,視頻捕獲,數據解碼和集合管理器,因此Microsoft Edge可以控制和審核對這些資源的訪問並協調全局系統資源的使用。
  • 插件流程和擴展流程: Plug-in processes contain active plug-ins such as Adobe Flash, and extension processes contain active extensions.插件進程包含活動插件,例如Adobe Flash,而擴展進程包含活動擴展。 Each process executes the code provided by the plug-in or extension.每個進程執行由插件或擴展提供的代碼。 The resource usage of each process varies depending on the code provided.每個進程的資源使用情況取決於所提供的代碼。 Each process also has code that allows the plug-in or extension to communicate with the browser and renderer processes.每個進程還具有允許插件或擴展與瀏覽器和渲染器進程通信的代碼。
  • Crashpad處理程序流程: Microsoft使用這些崩潰報告來查找和修復崩潰。

出於可靠性和安全性原因,即使是同一網頁上的不同元素也可能有自己的進程。 如果惡意軟件利用了其中一個渲染器進程中的安全漏洞,它就很難逃脫該進程並影響另一個進程。

Microsoft解釋了以下優點:

增強的安全性:

The renderer process is the process most likely to get attacked because it is the process interacting with the website.渲染器進程是最有可能受到攻擊的進程,因為它是與網站交互的進程。 This process has low privileges, and extremely restricted access to the operating system, so if malware were to take control of that process, it would be unable to take control of the machine.該進程的特權較低,並且對操作系統的訪問受到極大限制,因此,如果惡意軟件控制該進程,則它將無法控制該計算機。 The communication between the renderer process and the browser process are narrow in scope and protected.渲染器進程和瀏覽器進程之間的通信範圍狹窄且受到保護。 It is hard for malware to take advantage of this to exploit the browser process.惡意軟件很難利用此優勢來利用瀏覽器進程。

此外, 流程隔離 prevents one process from accessing another process's memory, which also improves a browser's security.阻止一個進程訪問另一個進程的內存,這也提高了瀏覽器的安全性。 Let's say, for example, that you're purchasing a shirt online and there's an ad on the site.舉例來說,假設您正在網上購買襯衫,並且該網站上有一個廣告。 The site that you're on needs access to your credit card information to complete the transaction;您所訪問的網站需要訪問您的信用卡信息才能完成交易; however, the ad does not need access to this information.但是,廣告不需要訪問此信息。 Ads are put in their own process so that even if the ad is compromised, it won't have easy access to your sensitive information.廣告將按照自己的流程進行處理,因此即使廣告遭到入侵,也無法輕鬆訪問您的敏感信息。

可靠性

If a crash occurs on a web page, web app, extension, or plug-in, only the process that experiences the crash will be affected, improving the browser's reliability.如果在網頁,Web應用程序,擴展或插件上發生崩潰,則僅會遇到崩潰的過程將受到影響,從而提高了瀏覽器的可靠性。 The rest of the browser, including most other tabs, will remain stable.瀏覽器的其餘部分,包括大多數其他選項卡,將保持穩定。

資源責任制

Microsoft Edge使用最多的資源,還是網站,擴展程序或插件? You can also see this information in Microsoft Edge's internal task manager, which you can open by pressing Shift+Esc while in Microsoft Edge or by going to the top corner of the browser and selecting您還可以在Microsoft Edge的內部任務管理器中查看此信息,可以通過在Microsoft Edge中按Shift + Esc或轉到瀏覽器的頂部並選擇 設置及更多(…) 更多工具 > 瀏覽器任務管理器.

讀者可以了解更多 在微軟這裡。

有關主題的更多資訊: 瀏覽器, 邊緣, 微軟