Introduction to the Process

Process
The process is an instance of a computer program that is being executed. It is also defined as the program in execution.
The process contains multiple threads of execution that executes the instructions concurrently. For example, a word processing program which is run by the individual user is called as the process.
When a program is loaded into the memory and it becomes a process. It is divided into four sections such as stack, heap, text and data. It shows a simplified structure of a process inside main memory.
process


Stack
The process Stack contains the temporary data such as method or function parameters, return address and local variables.The OS allocates the stack for each system-level thread when the thread is created.

Heap
It is the dynamically allocated memory assigned to the process during its run time.
Text
The Text includes the current activity represented by the value of Program Counter and the contents of the processor's registers.
Data
This section contains information about the global and static variable.


EmoticonEmoticon