Question: Consider the following figure of a process image PCB Process ID State Program Counter Memory pointers Contextdata Others E SP PSW Program Code Static/Global
Consider the following figure of a process image PCB Process ID State Program Counter Memory pointers Contextdata Others E SP PSW Program Code Static/Global Heap Stack Memory Note that during a process switch, the dispatcher does not include the memory pointers when saving the execution context. a. Explain why this is the correct behavior if the OS is operating under the 5-state process model (Figure 3.6 of textbook). b. Suppose the OS is operating under the 7-state process model (Figure 3.9(b) of textbook), describe how the OS should interact with the memory pointers when there are Suspend states in the model.
Step by Step Solution
There are 3 Steps involved in it
ANS FiveState Process Model is an extension of the TwoState Model The twostage model is efficient if all the processes in the Notrunning state are ready for execution but this may not be true Some pro... View full answer
Get step-by-step solutions from verified subject matter experts
