NVIDIA Interview Question






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

function calls are done in the program

ISR are the special function that are excuted on particular interrupts..
it mit be s/w or h/w.
u can call function as F()
but isr cannot be involed like that its based on the signal(s/w / h/w)

- raven November 05, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

ISR is not function .

ISR never accept or return any value !!!!!

- Gaurav Kumar Garg December 23, 2013 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

Though Jammulak's effort is appreciable, his explanation has some flaws. Even function can exercise enabling/disabling interrupts depending on the situation. Yes, it is true that ISRs have to re-enable interrupts. However, it's not essentially while we are returning; it could be just after copying contents from register to the kernel stack. The main difference between a function call and an ISR is that for a function call, the context doesn't change where as for an ISR it does.

- Sam January 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

ISR execution not necessarily causes a context switch, it causes a mode switch to kernel mode from user mode. After the execution of the ISR kernel may decide to continue with the same process or make a context switch.

- Devesh June 13, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

an ISR flow usually consist of:
- Save ALL registers and system states
- Set all registers needed by the ISR, including the data and stack pointers.
- Process the event
- Restore ALL registers
- Return to the interrupted process

- isisme January 27, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

ISR:
Asynchronous event that can occur any time during the execution of the program
Saves the PC, Flags and registers on the stack and disables all the interrupts and loads the address of the ISR
ISR cannot have arguments that can be passed to it
Cannot return values
Enables the interrupts
Generally small as they are taking the time of some other process
Some of ISR have have their own stack

Fucntion:
Occurs when ever there is a function call
Saves the PC and registers on the stack
Can have arguments
Can return values
No restriction on the size and duration of execution

- clueless August 07, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

While Returning from functions we can simple return, where as while returning from ISRs we need to enable the interrupts disabled previously.

- jammulak. November 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

ISR have to be taken care of right away where as user function calls can be delayed

- abhimanipal March 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

ISR works in the context of kernel. Function calls are generally referred to user space activities.

- Anonymous November 06, 2009 | 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