O'Reilly logo

Sams Teach Yourself Node.js in 24 Hours by George Ornbo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required