Linggo, Mayo 22, 2011

CaseStudy4



A process state diagram with no transition:
.  On the diagram below, as we can see on the diagram  there is no transition from the ready state  to waiting state same with waiting to running. In the ready state to waiting state, there is no transition between them because you can only send the job in the waiting state if it came from the running state. Also, it will proceed to the waiting state if there are some interrupts and if it needs input/output request. In the waiting state to running state, there is also no transition because the process scheduler selects processes from the ready state for the CPU. Also, all jobs in the waiting list was arranged and prepared to proceed in the ready state.  In addition, only the jobs in the ready state will proceed to the running state to be run and to sidestep  the ready state would make process management impossible. In every state there would be a process to make it run before you can jump to another state but if it takes failures you go back to where you have started.
 As I understand the flow of diagram let us assign job1 to be processed.
At first job1 will go to the hold state then it will proceed to ready state which is controlled by the job scheduler-to move a job or process from one state to another,. If  job1  fails in a ready state level  because of some device failure it will go back to the hold state, and  if not, it will proceed to ready state. From the ready state, job1 will go on to the running state. If there are no interrupts occurs it will directly  proceed to the finished state. But, if it will encounter interrupts to the finished state  it will go back to the ready state and when  it fails to have the input/output request it will proceed to the waiting state. 



Walang komento:

Mag-post ng isang Komento