Operating System Fundamentals 30 Main) {
System.in.read(value);
} When this process is started, there will be some instructions required to get the application ready, but eventually the instruction wait for key is reached. When the process reaches this instruction what does the operating system do with the process state In our two state process model introduced earlier (see Figure 3.2), leaving the process as Running is probably not a good idea because it really is not doing anything. Moving the process to the Ready state does not help either because the process is not actually ready to run. It needs to wait for the user to do something. We solve this problem by the introduction of a third state that we will call ‗
Blocked‘. This state tells the operating system that the process is currently
waiting for something, and therefore it should never be considered by the scheduler when anew process is being selected for running. The term blocked exists because the execution is being blocked by some external event. Some operating systems might use the term
wait. Running dispatched interrupted
Ready
Blocked wait
Event
completeShare with your friends: