Process states in unix

broken image

The stack is used for local variables.The heap is used for dynamic memory allocation, and is managed via calls to new, delete, malloc, free, etc.The data section stores global and static variables, allocated and initialized prior to executing main.The text section comprises the compiled program code, read in from non-volatile storage when the program is launched.Process memory is divided into four sections as shown in Figure 3.1 below:.job scheduling ), and the two terms are often used interchangeably.

broken image

Many modern process concepts are still expressed in terms of jobs, ( e.g.

broken image

Abraham Silberschatz, Greg Gagne, and Peter Baer Galvin, 'Operating System Concepts, Ninth Edition ', Chapter 3.

broken image