Question: 31. (15 pts] The following are steps in a sequential Interrupt handling. These steps are in the user-to-kernel direction, while the steps in the opposite

 31. (15 pts] The following are steps in a "sequential Interrupt

31. (15 pts] The following are steps in a "sequential Interrupt handling. These steps are in the user-to-kernel direction, while the steps in the opposite direction are simply reversed. Hardware does the following: 1. Mask further interrupts 2. Change mode to Kernel 3. Copy PC, SP, EFLAGS to the Kernel Interrupt Stack (KIS) 4. Change SP: to the KIS (above the stored PC, SP, EFLAGS) 5. Change PC: Invoke the interrupt handler Software (i.e., the handler code) does the following: 1. Stores the rest of the general-purpose registers being used by the interrupted process 2. Performs the rest of the interrupt handling operation Now, answer the following questions: (a) [7 pts] What changes would you make in the steps below so that nested Interrupts can be handled? (b) (3 pts) For sequential interrupt handling, can you interchange steps 2 and 3? Explain. (c) (2 pts) For sequential interrupt handling, can we interchange step 1 and 2? Explain. (d) [3 pts) For sequential interrupt handling, can we interchange step 1 and 3? Explain. 31. (15 pts] The following are steps in a "sequential Interrupt handling. These steps are in the user-to-kernel direction, while the steps in the opposite direction are simply reversed. Hardware does the following: 1. Mask further interrupts 2. Change mode to Kernel 3. Copy PC, SP, EFLAGS to the Kernel Interrupt Stack (KIS) 4. Change SP: to the KIS (above the stored PC, SP, EFLAGS) 5. Change PC: Invoke the interrupt handler Software (i.e., the handler code) does the following: 1. Stores the rest of the general-purpose registers being used by the interrupted process 2. Performs the rest of the interrupt handling operation Now, answer the following questions: (a) [7 pts] What changes would you make in the steps below so that nested Interrupts can be handled? (b) (3 pts) For sequential interrupt handling, can you interchange steps 2 and 3? Explain. (c) (2 pts) For sequential interrupt handling, can we interchange step 1 and 2? Explain. (d) [3 pts) For sequential interrupt handling, can we interchange step 1 and 3? Explain

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!