ADS

Thursday, 10 May 2018

What is Process? Process state Diagram

What is Process? Process state Diagram    :


Process:

•A program at a time of execution become process.
•A program is a passive entity, process is active entity.
•A program have number of processes.
•ex: 
void mul( )
 {
int i, prod=1;
for(i=1;i<100;i++)
prod=prod*i;
}

here the mul function calling one time or program run one time but the for loop running 100 time's its a process.

what is Process state diagram:


Process State Diagram image
Process State Diagram


 •New state: Just newly created process.
•Ready: Process is ready to execute.
•Run: process running in the CPU.
•Wait: process is waiting for some resources which are hold by another process.
•Terminate: process complete their execution.



No comments:

Post a Comment

Popular Posts