CSE430 Midterm 1
CSE430 Midterm 1
1 The Process
A process is more than the program code, which is sometimes known as the text
section. It also includes the current activity, as represented by the value of the
program counter and the contents of the processors registers. A process
generally also includes the process stack, which contains temporary data (such as
function parameters, return addresses, and local variables), and a data section,
which contains global variables. A process may also include a heap, which is
memory that is dynamically allocated during process run time.
We emphasize that a program by itself is not a process. A program is a passive
entity, such as a file containing a list of instructions stored on disk (often called an
executable file). In contrast, a process is an active entity, with a program counter
specifying the next instruction to execute and a set of associated resources. A
program becomes a process when an executable file is loaded into memory.