Page 1 of 1

Process Transition

Posted: Sat Sep 24, 2005 11:00 pm
by Velan
Every process has three states

1) Running
2) Ready
3) Blocked

According to Process transition, the following are possible:

Running -> Ready
Running -> Blocked

Blocked -> Ready

Ready -> Running.

Besides all these four transitions, is it possible that each stage has 2 transitions, so that the process transitions are 6 ?

Re: Process Transition

Posted: Sat Sep 24, 2005 11:00 pm
by AltCtrlDel
what would this mean?

Blocked -> Running
means a process was blocked for IO or something else, then it moved directly into the processor .. this is no good, not everytime a process gets unblocked it should run, it should wait its turn in the ready queue, or otherwise a process that performs frequent short IOs will monopolize the processor.
But, if the process were unblocked and the ready queue were empty then it would turn immediately into the running state :)
Blocked --> Ready --> Running

Ready -> Blocked
what makes a ready process get blocked? blocking happens due to some course of action done by the process which makes it wait for completion .. usually IO

have i answered your question?

Re: Process Transition

Posted: Sat Sep 24, 2005 11:00 pm
by Velan
Yes, Now I figured out the two missing states. Thankx for the explanation.