Software interrupt required by processor - Operating System

Q.  Why is the Software interrupt required by the processor?
- Published on 25 Aug 15

a. Return from subroutine.
b. Obtain system services, which need execution of privileged instruction.
c. Test the interrupt system of the processor.
d. Implement co-routines.

ANSWER: Obtain system services, which need execution of privileged instruction.
 

    Discussion

  • Rahul saroj   -Posted on 14 Sep 19
    My best knowlage saftware farmating and instaling .

  • Nirja Shah   -Posted on 23 Nov 15
    - The requirement of software interrupts is used by the CPU to obtain System services which need execution of privileged instructions.

    - It is caused either by an exceptional condition in the processor itself, or a special instruction in the instruction set which causes an interrupt when it is executed.

    - The former is often called a trap or exception and they are used for errors or events occurring during program execution that are exceptional enough that they cannot be handled within the program itself.

    - A high-priority condition requiring the interruption of the current code the processor is executing is alerted to the processor by an interrupt.

    - The processor responds by suspending its current activities, saving its state, and executing a function called an interrupt handler (or an interrupt service routine, ISR) to deal with the event.

    - This interruption is temporary, and, after the interrupt handler finishes, the processor resumes normal activities.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)