Chapter 2. Programs, Processes and Threads

One popular definition of a process is an instance of a program whose execution has started but has not yet terminated. This chapter discusses the differences between programs and processes and the ways in which the former are transformed into the latter. The chapter addresses issues of program layout, command-line arguments, program environment and exit handlers.

How a Program Becomes a Process

A program is a prepared sequence of instructions to accomplish a defined task. To write a C source ...

Get Unix™ Systems Programming: Communication, Concurrency, and Threads now with O’Reilly online learning.

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