Windows上的Node-Webkit在3个不同的进程中运行? [英] Node-Webkit on Windows runs in 3 different processes?

查看:200
本文介绍了Windows上的Node-Webkit在3个不同的进程中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,如果这是重复的.我试图 Google 答案但这不是很有帮助.

如果我使用nw .运行node-webkit应用,然后打开Windows任务管理器,则按nw的名称运行三个不同的进程.我已经反复检查过,但是系统上运行了单个node-webkit应用程序.另外,如果我结束任务", any 其中之一,应用程序退出,其他两个进程也消失了.

  1. 这是正常的行为吗?
  2. 此后是否有记录在案的解释?

这是屏幕截图.

侧注:我使用Process Explorer来查看这些进程的详细信息,发现其中两个是第三个的子级.两个孩子的命令行参数都不同且很长.父母是我实际执行的,即nw .

我知道Google Chrome使用了一种新颖的软件体系结构,该体系结构使每个选项卡(和插件)作为单独的进程运行,从而使资源管理更加可管理和高效(?)这是怎么回事?


请原谅我的无知.我没有Windows或Node/-Webkit的任何高级知识.我希望从中学到一些东西.因此,非常感谢手册页,常见问题解答,文档等的任何链接.

解决方案

应该至少两个.由于Chromium具有多进程体系结构,而node-webkit基于Chromium:

http://www.chromium.org/developers/design-文档/多进程架构

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.

解决方案

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

这篇关于Windows上的Node-Webkit在3个不同的进程中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆