Series: Subject: Topic:
Question: 42 of 143

interrupt "trap" what is this trap?

Asked by: sakthivadivel | Member Since Nov-2007 | Asked on: Feb 3rd, 2008

View all questions by sakthivadivel

Showing Answers 1 - 3 of 3 Answers

Answered On : Feb 16th, 2008

View all answers by dishaV

There are two hinderances to a process. Interrupt and trap.Interrupt is when the process needs some I/O services whereas trap occurs due to some fault or exception in the code.

Login to rate this answer.

Answered On : Oct 24th, 2008

View all answers by maaz_qureshi

A trap is a software-generated interrupt, An interrupt is a
hardware-generated change-of-flow within the system. An interrupt handler is
summoned to deal with the cause of the interrupt; control is then returned to
the interrupted context and instruction. A trap can be used to call operating
system routines or to catch arithmetic errors.

Login to rate this answer.

Answered On : Jan 12th, 2010

View all answers by thukral.rahul

A Trap is a Software generated interrupt. A Trap is set to have occured when some exceptions occurs like - a process accessing a memory address outside it's address space would result in a trap which is handled by the OS.Generally a System architecture has a limited number of interrupts that can occur within that particular system,  So a table of pointers called a interrupt vector table is genearally maintained in the low memory area which can we used to call the appropriate interrupt service routine.Interrupts can be either hardware or software genearated.

Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.