In Operating System, the Process refers to an instance of a computer program in execution. The Process includes the current values of the program counter, registers, and variables.
Processes create a fundamental structure of any modern operating system. The general definition of a process is “a program in execution” or “a loaded program and its resources”. It carries the program code and its actions. Based on the OS (Operating System), a process may be the several threads that execute commands simultaneously.
For example, when we want to explore something, we open the web browser and start searching for any topic. This is the Process, and its task is mentioned in the Program.
When the Program is loaded in the memory and starts executing, it is divided into 4 four sections ─ stack, heap, text, and data.
Processes divided into 4 sections

Stack
In Process, Stack holds temporary data such as method/function parameters, local variables, and return address.
Heap
Heap is the allocated memory to a process during its run time.
Data
Data Contains the static and global variables.
Text
This section includes the current activity of the Program Counter and processor’s registers.
A process has different attributes linked with it. Let’s discuss the some of the attributes of the Process
Process Attributes
- Process ID: Every single Process has an ID that is known as the Process ID. This Process ID helps to identify the one Process from the other processes. Also, with the help of this Process ID, we can fetch all details of the Process.
- Process state: Every Process has a state while it is in execution. Process state can be anything like ready, blocked, waiting or running.
- CPU scheduling information: Each Process follow the scheduling algorithms to run the program successfully. Some Scheduling Algorithms are round-robin, SJF, LJF, FCSF etc.
- Input/Output information: The Process requires some input/output devices for execution. So each Process has the information about the required devices and resources. So that during the execution of the program device can be allocated.
Similar Reads
-
Advantages and Disadvantage of User level and Kernel Level Threads
User-Level Threads Advantages of User-Level Threads Speed and Efficiency: Operations such as thread creation, switching, and destruction are faster because… -
Difference Between User-level and kernel-level thread
User-level and kernel-level threads represent two approaches to thread management in operating systems. Both have some differences Difference Between User-level… -
What is Deadlock in OS? Explain with the help of a diagram.
A deadlock is a condition where each of the processes is waiting for a resource which is allotted to other… -
Preemptive and Non-Preemptive Algorithm in Operating System
Preemptive Scheduling Algorithm Here, a scheduler can preempt a running low-priority process at any time when a high-priority process enters… -
CPU scheduling algorithms Criteria in Operating System
There are different criteria for the CPU scheduling algorithm. CPU scheduling algorithms Criteria are CPU utilization: The main purpose of… -
Sleeping Barber Problem of Synchronization in Operating System
It is a synchronization and inter-process communication problem. This problem is based on a barbershop. A barbershop has a single… -
Reader-Writer Problem in Operating System with Code
The readers and writers problem based on an object like a file which is shared in different processes. Some processes… -
Discuss the Classical problem of synchronization
Using semaphores for synchronization is the traditional way to present the solutions. There are four types of the classical problem… -
Semaphore in Operating System and its types
A semaphore is simply an integer variable that is shared between multiple threads. We can also say A semaphore is… -
Mutual exclusion in Operating System with its four conditions
When a process is executed in a critical section, then no other process can be executed in their critical section.…