NVIDIA Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
2
of 2 vote

An interrupt handler, also known as an interrupt service routine (ISR), is a callback subroutine in an operating system or device driver whose execution is triggered by the reception of an interrupt

Step in executing an Interrupt:

1) It finish the instruction it is executing and saves the address of the next instruction (PC) on the stack.

2) It also saves the current status of all the interrupt internally.

3) It Jumps to a fixed location in memory called the interrupt vector table that holds the address of the interrupt service routine.

4) The microcontroller gets the address of the ISR from the interrupt vector and jumps to it. It starts to execute the interrupt service subroutine until it reaches the last instruction of the subroutine.

5) Upon executing the RETI instruction ,the microcontroller returns to the Place where it was interrupt.

- vaibhav garg March 14, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

thanx a ton!!

- rohit December 11, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

x86 intepretation
1 - interrupt occurs (from PCI, keyboard controller, whatever...)
2 - save current context (unless interupt is masked, then do nothing end of story)
3.- Lookup address in interrupt descriptor table, jump to it.
4 - do stuff...
5 - Clear interrupt (maybe a legacy thing)
6 - return

- Doug Paulson September 27, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. Identifies the IRQ line
2. From Interrupot table, identifies the handler
3. Drops the present context
4. Jumps to process 0(Swapper)
5. Starts Executes the Handler

- mlakshmanarao July 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1-- ISRs are the functions that the kernel runs in response to a specific interrupt.
2-- Each device that generates an interrupt has an associated ISR which is the part of the device driver.
3--Basically the object of the struct irq_action { } maintains the ISR provided by the device driver.

- ESHANK January 11, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

basic operations are :-
1-- The first job is to acknowledge the interrupt's receipt to the hardware.
2-- Complete the critical task and notify the system to record deferred processing events.

- eshank rastogi January 11, 2012 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More