retagged by
923 views
0 votes
0 votes
Suppose that you were to design an advanced computer architecture that did process switching in hardware, instead of having interrupts. What information would the CPU need? Describe how the hardware process switching might work.
retagged by

1 Answer

0 votes
0 votes

Answer:

We can have one register which contains the pointer to the currently running process-table entry. On the completion of the I/O, the CPU will store the present machine state in the presently executing process-table entry.  After this, it will jump to the interrupt vector and get a pointer to other process-table entry. Then this process will get started.

So, this is how the hardware process switching might work.

Related questions

1 votes
1 votes
1 answer
1
admin asked Oct 24, 2019
2,354 views
On all current computers, at least part of the interrupt handlers are written in assembly language. Why?
0 votes
0 votes
1 answer
2