Purchase Solution

Purpose and Steps of an Interrupt

Not what you're looking for?

Ask Custom Question

See attached file.
1. What is the purpose of an interrupt?
2. What steps are carried out by the hardware when an interrupt occurs?
3. What steps are carried out by the interrupt handler when an interrupt occurs?
4. Why is it necessary to disable interrupts at certain points in time?
5. What might happen if there was no way to disable interrupts?
6. If interrupts are disabled, when can they be enabled?
7. What is the difference between a synchronous interrupt and an asynchronous interrupt?
8. Why do computer systems have different execution modes (user mode and supervisor or kernel mode)?
9. What is a privileged instruction and why are they necessary? When can a privileged instruction be executed? Give an example of such an instruction.
10. What is memory protection and why is it necessary?

Attachments
Purchase this Solution

Solution Summary

The solution answers questions about the purpose and steps of an interrupt.

Solution Preview

1. What is the purpose of an interrupt?
Ans:
An interrupt is a signal raised from hardware or software to indicate the occurence of an event. It indicates the need of a change in the execution. Interrupt is a mechanism required for implementing the multitasking concept. It will use the concept of context switching, for servicing the request.

2. What steps are carried out by the hardware when an interrupt occurs?
Ans:
Interrupt handling or servicing of an interrupts depends upon the design of the operating system. A routine which is called for servicing the interrupt is known as Interrupt Service Routine (ISR) and the request for the ISR through an interrupt is known as Interrupt Request (IRQ).

3. What steps are carried out by the interrupt handler when an interrupt occurs?
Ans:
i) The interrupt handler initially examines the device to determine whether this device issued the interrupt
ii) Informing a device regarding servicing is a device-specific operation that is required for the majority of devices
iii) Devices can interrupt for different reasons, such as transfer done or transfer error.
iv) Do some ...

Purchase this Solution


Free BrainMass Quizzes
Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C++ Operators

This quiz tests a student's knowledge about C++ operators.