What is meant by Process in Operating System

For Complete YouTube Video: Click Here

In this class, we will understand what is meant by Process in Operating System.

We have already discussed the basic intuition on operating system.

What is meant by Process in Operating System?

The program will be stored on the hard disk whenever we want to execute a program.

Whenever we compile the program, the program will get converted into machine-level language.

To run the compiled program, the program on the hard disk will get shifted to the RAM.

Before shifting to the RAM, the machine-level program will be allocated some memory.

The program with allocated memory is shown below.

In the above program, the text part is the machine-level program.

Above that, we have the stack, heap data structure, and data section to store the program’s content, like global, static variables, run-time memory or dynamic memory, function calls, etc.

The stack part of the process is used to store the functions whenever a function call is made.

The Heap part allocates the run-time or dynamic memory using malloc, calloc, and realloc functions.

The data section stores the global and static variables in the programs.

The operating system converts a program into a process.