When a new process moves from the ready state to the running state ( in Figure), each

Question:

When a new process moves from the ready state to the running state ( in Figure), each register in the CPU must be set either to initial values or to the values the process had when it was last interrupted. Explain why the PC register is typically the last register loaded for the new process. Show a pseudo assembly language code segment to load a new process onto a CPU (that is, to change the PC after restoring other registers) for a processor that contains arithmetic-logical registers R0?R3, processor status register PSR, condition code register CC, program counter PC, and instruction register IR.

image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: