PM system
Process in an Operaing system
A process is defined as an entity which represents the basic unit
of work to be implemented in the system. To put it in simple terms, we write our
computer programs in a text file and when we execute this program, it becomes a
process which performs all the tasks mentioned in the program. A process is a
program in execution which then forms the basis of all computation.
Process memory is divided into four sections for efficient working :
• The Text section is made up of the compiled program code, read in
from non-volatile storage when the program is launched.
• The Data section is made up of the global and static variables, allocated
and initialized prior to executing the main.
• The Heap is used for the dynamic memory allocation and is managed
via calls to new, delete, malloc, free, etc.
• The Stack is used for local variables. Space on the stack is reserved for
local variables when they are declared.
about:bl 1