Process Transition

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Velan
Posts: 5
Joined: Sat Sep 24, 2005 11:00 pm

Process Transition

Post 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 ?
AltCtrlDel
Member
Member
Posts: 25
Joined: Sat Jun 25, 2005 11:00 pm

Re: Process Transition

Post 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?
Velan
Posts: 5
Joined: Sat Sep 24, 2005 11:00 pm

Re: Process Transition

Post by Velan »

Yes, Now I figured out the two missing states. Thankx for the explanation.
Post Reply