650) this.width=650; "src=" Http://blog.fens.me/wp-content/uploads/2015/03/child_process.png "width=" "height=" "alt=" Child_process.png "/>"
Objective
node. JS is a single-threaded programming model, and the praise and criticism of node. JS is also due to its single-threaded model, where all tasks are done in one thread (I/O, etc.). The single-threaded model not only makes the code very concise, but also avoids the complexity of thread scheduling, and it is not applicable to CPU-intensive computing applications because of the single thread.
In the kernel of node. js, we are given a new option to create a new process through the Child_process module, which enables multi-core parallel computing.
Directory
-
Child_process Introduction
-
Basic use of child_process: Spawn, exec, execfile, fork
Overall article: http://blog.fens.me/nodejs-child-process/
node. JS Process Communication Module Child_process