answersLogoWhite

0


Best Answer

An interrupt is generally initiated by an I/O device, and causes the CPU to stop what it's doing, save its context, jump to the appropriate interrupt service routine, complete it, restore the context, and continue execution. For example, a serial device may assert the interrupt line and then place an interrupt vector number on the data bus. The CPU uses this to get the serial device interrupt service routine, which it then executes as above.

A trap is usually initiated by the CPU hardware. When ever the trap condition occurs (on arithmetic overflow, for example), the CPU stops what it's doing, saves the context, jumps to the appropriate trap routine, completes it, restores the context, and continues execution. For example, if overflow traps are enabled, adding two very large integers would cause the overflow bit to be set AND the overflow trap service routine to be initiated.

User Avatar

Wiki User

โˆ™ 2010-09-24 09:20:52
This answer is:
User Avatar
Study guides

Is Microsoft Access an RDBMS or DBMS

How might an automobile company use a management information system to reduce its costs and better serve its customers

What are PCs that are classified as mobile computers

What are the entry barriers that act as a potiential threat to new entrants in the market

โžก๏ธ
See all cards
4.23
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
13 Reviews

Add your answer:

Earn +20 pts
Q: What is key difference between a trap and interrupt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between public key and private key cryptography?

difference between public key criptography and privare key criptography


What is the key difference between a protosun and a sun?

what is the key difference between a protosun and the real sun?


What is the difference between a key and a legend?

There is no difference.


What is the difference between secret key cryptography and symmetric key cryptography?

Secret key cryptography is also known symmetric key cryptography. So there is no difference between the two.


What is the differences between the delete key and the backspace key?

No difference at all


What is the difference between a keyboard and a keytar?

KEY


What is the key difference between a diskette and a hard drive?

there are not difference that is same thing...........


HOW IS SOFTWARE INTERRUPT INITIATED?

Interrupt signals initiated by programs are called software interrupts. A software interrupt is also called a trap or anexception. A signal informing a program that an event has occurred. When a program receives an interrupt signal, it takes a specified action (which can be to ignore the signal). Interrupt signals can cause a program to suspend itself temporarily to service the interrupt. Interrupt signals can come from a variety of sources. For example, every keystroke generates an interrupt signal. Interrupts can also be generated by other devices, such as a printer , to indicate that some event has occurred. PCs support 256 types of software interrupts and 15 hardware interrupts. Each type of software interrupt is associated with an interrupt handler -- a routine that takes control when the interrupt occurs. For example, when you press a key on your keyboard, this triggers a specific interrupt handler. The complete list of interrupts and associated interrupt handlers is stored in a table called the interrupt vector table , which resides in the first 1 K of addressable memory.


How is a software interrupt initiated?

Interrupt signals initiated by programs are called software interrupts. A software interrupt is also called a trap or anexception. A signal informing a program that an event has occurred. When a program receives an interrupt signal, it takes a specified action (which can be to ignore the signal). Interrupt signals can cause a program to suspend itself temporarily to service the interrupt. Interrupt signals can come from a variety of sources. For example, every keystroke generates an interrupt signal. Interrupts can also be generated by other devices, such as a printer , to indicate that some event has occurred. PCs support 256 types of software interrupts and 15 hardware interrupts. Each type of software interrupt is associated with an interrupt handler -- a routine that takes control when the interrupt occurs. For example, when you press a key on your keyboard, this triggers a specific interrupt handler. The complete list of interrupts and associated interrupt handlers is stored in a table called the interrupt vector table , which resides in the first 1 K of addressable memory.


What is the key difference between a liquid and a gas?

intermolecular attractions


What is the key difference between a liquid a gas?

intermolecular attractions


What is the key difference between a liquid and a gas answer?

A is expanded in a container.

People also asked