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

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.

running Done request Schedule request Start ready blocked

running Done request Schedule request Start ready blocked

Step by Step Solution

3.39 Rating (171 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The PC always addresses the next instruction to be fetch... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

34-E-CE-OS (433).docx

120 KBs Word File

Students Have Also Explored These Related Computer Engineering Questions!