node. JS Process Communication Module Child_process

Source: Internet
Author: User

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

    1. Child_process Introduction

    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.