Operating System Fundamentals 29 As an example suppose that the process table looks like the example above with the four processes and Word.exe executing. Here is the order in which things happen.
1. The word process is executing normally using the CPU registers as it requires.
2. The clock triggers an interrupt.
3. The interrupt service routine attached to the clock runs the OS scheduler.
4. The scheduler searches the process table for the process in the Running state.
5. The scheduler changes the state of the running process to ready.
6. The scheduler copies all of the current value of the registers into the process table (or information block)
7. The scheduler looks in the table to find the next process to run. The topic of selecting a process to run is covered in the next chapter but for here lets assume that iexplorer is about to run.
8. The scheduler
marks iexplorer as Running 9. The scheduler copies all of the registers for iexplorer into the CPU from the process table. The scheduler then jumps to the next instruction that iexplorer should perform.
Share with your friends: