Hour 16. The Process Module

What You’ll Learn in This Hour:

• What a process is

• Sending signals to a process

• Creating executable scripts with Node.js

• Passing arguments to a process

What Processes Are

Whenever you run anything on a computer, you are running a process. If you have a browser open, you have at least one, and probably more than one, process running for the browser to do its work. As you have learned, Node.js runs on one process, so when you run a Node.js program, it runs on a single process. Operating systems assign processes an id that is sometimes referred to as the pid or process id. This is a unique number assigned to the process for as long as it is alive.

With the Process module, Node.js allows developers to discover ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.