Tuesday 13 September 2011

Process State




As the program executes, it generally changes state. A state of the process is defined as the current activities of that process. Each process may have one of the following states:-
a.  New: – the process is being created.
b. Running: – instruction is being executed.
c. Waiting: – a process is waiting for some event (e.g. printer during sending signals) or reception of signal between computer and printer.
d. Ready: – the processor is ready to execute that particular process.
e. Terminated: – the process has finished execution.
Running state implies that process is currently run by the CPU. Ready  to run means that it needs cpu attention and time to run, otherwise it is not  blocked in any sense or in other words, process is waiting state implies that process is not running currently and is waiting for some event to occur( such as i/o completion  or reception of signal). The diagram of process state is given below:-
process states
process states and it's transition

0 comments:

Post a Comment