+91 9404 340 614    gyaanibuddy@gmail.com

Like
0 Likes

#5: Process states in OS

Last updated on Jan. 23, 2021, 6:58 p.m. by None

Image desc
Process states explained in detail

What is a process?

Difference between Process and Program

Process Program
i)A process is a program in execution i) A program is static by nature.
ii)A process is an active entity because it is loaded in main memory ii)A program is a passive entity because it is stored in secondary memory
iii) The process has a shorter and very limited lifespan as it gets terminated after the completion of task iii)A program has a longer span as it is stored in secondary memory
iv)A process holds resources like CPU, memory address, disk etc. iv)The program is stored on disk in some files and does not require any resources.

Process States:

i)Start-: When a process is first created/when it is loaded in main memory, it is in start state.

ii)Ready-: When a process is in a ready state, it is waiting for CPU to be allocated to it. It may come from the start state or from the running state when it is waiting for execution of an I/O operation.

iii)Running-: After a process has been allocated to the processor, it transits from ready to running state. Here, the processor executes its instructions.

iv)Wait-: Here, the process is waiting for some event like user input, or a file to become available.

v)Terminated-: After the process has finished its execution or gets terminated by OS, it transits into a terminated state where it waits to be removed from main memory.

You can refer to this YouTube video for Video Explanations

...

by None

Gyaanibuddy
blog comments powered by Disqus