Dr Nishant Jain
Assistant Professor
MITS-DU Gwalior MP
Dr Nishant Jain, MITS DU Gwalior
,Process
A process is a program in execution.
A process is a running program that serves as the foundation for all
computation
For example, when we write a program in C or C++ and compile it, the compiler
creates binary code. The original code and binary code are both programs. When
we actually run the binary code, it becomes a process.
Dr Nishant Jain, MITS DU Gwalior
,Process vs Program
A process is an ‘active’ entity instead of a program, which is considered a
‘passive’ entity. A single program can create many processes when run multiple
times; for example, when we open a .exe or binary file multiple times, multiple
instances begin (multiple processes are created).
Dr Nishant Jain, MITS DU Gwalior
, Components of a Process
• Stack : Temporary data like method or function parameters, return address,
and local variables are stored in the process stack.
• Heap : This is the memory that is dynamically allocated to a process during
its execution.
• Text : This comprises the contents present in the processor’s registers as
well as the current activity reflected by the value of the program counter.
• Data : The global as well as static variables are included in this section
Dr Nishant Jain, MITS DU Gwalior