Node-Webkit on Windows runs in 3 different processes?

耗尽温柔 提交于 2019-12-20 04:12:29

问题


I'm sorry if this is a duplicate. I tried to Google the answer but it isn't very helpful.

If I run a node-webkit app using nw ., and then open Windows Task Manager, there are three different processes by the name of nw running. I have checked repeatedly but there is a single node-webkit application running on my system. Also, if I "End Task" any one of them, the app exits and the other two processes vanish too.

  1. Is that normal behaviour?
  2. Is there a documented explanation behind this?

Here is a screenshot.

Sidenote: I used Process Explorer to see the details of these processes and found out that two of these are children of the third. Command-line arguments for both children are different and very long. The parent is what I actually executed i.e. nw .

I know that Google Chrome uses a novel software architecture which makes each tab (and plugin) run as a separate process, thus making resource-management more manageable and efficient (?) Is that what is going on here?


Please forgive my ignorance. I don't have any advanced knowledge of Windows or Node/-Webkit. I'm looking to learn something out of this. So any links to man-pages, FAQs, docs etc will be greatly appreciated.


回答1:


It should be at least two. Because Chromium has the multiprocess architecture and node-webkit is based on Chromium:

http://www.chromium.org/developers/design-documents/multi-process-architecture



来源:https://stackoverflow.com/questions/21870963/node-webkit-on-windows-runs-in-3-different-processes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!