Hour 17. The Child Process Module

What You’ll Learn in This Hour:

• What child processes are

• Creating child processes with Node.js

• Running a system command using a child process

• Managing child processes

What Is a Child Process?

In Hour 16, “The Process Module,” you saw how Node.js provides a module to allow you to run and manage a Node.js process. You may also need to create child processes from your Node.js process, and the Child Process module gives you the tools you need to do this. A child process is simply one created by another process. The process that created the child process is referred to as the parent. A parent can have many child processes, but a child process can only have one parent. Some scenarios where you might want ...

Get Sams Teach Yourself Node.js in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.