Today Questionôs Câu hỏi & Trả lời phiên đến với chúng tôi lịch sự của SuperUser‚Äîa phân khu của Stack Exchange, một nhóm cộng đồng theo định hướng của các trang web Q & A.
Câu hỏi
Nếu bạn tò mò về tất cả các quy trình Chrome có vẻ trùng lặp, bạn không phải một mình. Người đọc SuperUser PolyShell thực sự muốn tìm hiểu những điều sau:
In Windows Task Manager it seems that I have multiple Chrome processes running, even though I only have one Chrome window open.
How is this possible? I always thought each open program represented one process.
Mặc dù số lượng tuyệt đối của các quy trình chrome.exe riêng lẻ lúc đầu xuất hiện nhưng vẫn có một giải thích hoàn hảo cho việc giải quyết.
Những câu trả lời
Một số người đóng góp của SuperUser đã ghé vào để trả lời câu hỏi. Jeff Atwood cung cấp một tham chiếu đến blog Phát triển Chrome:
You can read the details here:
Google Chrome takes advantage of these properties and puts web apps and plug-ins in separate processes from the browser itself. This means that a rendering engine crash in one web app won’t affect the browser or other web apps. It means the OS can run web apps in parallel to increase their responsiveness, and it means the browser itself won’t lock up if a particular web app or plug-in stops responding. It also means we can run the rendering engine processes in a restrictive sandbox that helps limit the damage if an exploit does occur.
Basically, each tab has one process unless the tabs are from the same domain. The renderer has a process for itself. Each plug-in will have one and so will each extension that is active.
KronoS chia sẻ một mẹo để kiểm tra các quy trình bên trong Chrome thay cho Trình quản lý tác vụ khó hiểu hơn:
You can see which process does what on:
Menu-> Tools -> Task Manager
Which looks like this:
Don’t forget to read the Chrome introduction comic that covers this among other design decisions.
Có cái gì để thêm vào lời giải thích? Âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.