Define process in operating system. How many attributes and states in process

Define process in operating system. How many attributes and states in process

 A process is program is execution.it is basic unit of resource allocation is an operating system .A process has starting and ending point.it must execute and progress sequentially. A process is controlled and scheduled b   by operating system .an operating system execute different program depending  on the system 

Process attributes

program counter: It is used to keep  track of the address  of the next instruction to be executed.

Stack: a stack is used to  store temporary data for the process

Data section: a data section is used that may contain global variables 

Heap: a process may include heap .it is memory that dynamically allocated during process execution

Process states

New: The process not yet created in memory 

Running: The process  has an instruction that being executed

Waiting: The process waiting some event to occur  

Ready:  The process is waiting to be executed 

Terminated: the process ha finish the execution and is no longer in memory 

Process states diagram 



Post a Comment

Previous Post Next Post