NVIDIA Interview Question for Software Engineer / Developers






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

i guess its the process control block[PCB] thats keeps getting pushed on top of stack for each interruption/switch by another process,,, so the moment one process is over the one sitting on TOP of the stack is picked and that is exactly the same process that was running when the request for serving another process come...and this applies recursively upto the last process left in the Stack...similar to function calls in programming languages like C/C++ etc...

- desiNerd July 24, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

From my understanding each process has its own stack so when new process starts runnign how does os know of which process stack it needs to access after it is done with the current one

- CUNOMAD July 25, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

the front element in ready queue decides that .

- Anonymous July 27, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

What I can think of is this, it depends on the type of interrupt. If the interrupt is asynchronous, then it goes back to the same process. This is because, when the interrupt came in, the program counter, along with the %esp are stored, on another stack, i.e a stack switch occurs, and these are restored once the ISR is complete.
On the other hand, if this the interrupt is a blocking system call, then the ISR would invoke the scheduler to select the next process....

- Lokesh October 07, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I can suggest something for hardware interrupts, since I am not aware about OS concepts.

In case of hardware ISR makes sure to save the values of important registers like PC, nPC, Processor State Registers, and other special function registers on to the stack. While returning from the ISR, these values are popped and the state of the processor is regained.

- Anonymous February 14, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Program Counter which is stored in the stack will help to identify where the control has to jump back after completing a critical part.

- vijay Mukilan S September 26, 2013 | 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