Regarding State of Process in an OS

  Kiến thức lập trình

I would like to know if the following is possible:

A process starts in the Ready state (I suppose waiting in queue) and moves to Run state and performs some instructions, as a result it moves to the Wait state (I believe because of an I/O operation, once it receives whatever information was waiting for it moves o Ready again and from then on it will switch to Wait and Ready for the rest of its lifetime.

I’m imagining it might be a loop in which a read request is performed over and over (Maybe like a server dealing with requests) but wouldn’t the process be moved to the Run state at some point in order to do something with the information received? I’m wondering if there is any case in which a program could behave in this way.

Thanks for the help.

LEAVE A COMMENT