1.

What is a process? What are the different states of a process?

Answer»

The process is basically a program that is currently under execution. The main function of an OS is to manage and handle all of these processes. When a program is loaded into the memory and it becomes a process, it can be divided into four sections ─ stack, heap, text, and DATA. There are two types of processes:

  1. Operating System Processes
  2. User Processes

STATES of Process:

Different states of the process through which process goes are given below:

  • New State: In this state, a process is just created.
  • Running: In this state, the CPU starts working on the process’s instructions.
  • Waiting: In this state, the process cannot RUN because it just waits for some event to occur
  • Ready: In this state, the process has all resources available that are required to run but it waits to get assigned to a PROCESSOR because CPUs are not working currently on instructions passed by the process.
  • Terminate: In this state, the process is completed I.e., the process has finished execution.


Discussion

No Comment Found