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