NetApp Interview Question for Software Engineer / Developers






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

1. Interrupt request(IRQ) signal is sent by the device to the processor.
2. If the interrupt line is enabled the following sequence of events occur in the system, else the interrupt is ignored. The processor completes its present instruction (if any) and pay attention to the IRQ.
3. It stores the address of the next location and content of status register to the stack
4. It informs the device that its request has been granted and in response the device de-activates its IRQ.
5. Using some suitable technique the processor loads its program counter(PC) with address of the ISR.
6. With return statement occurring at the end of the ISR all stored content is loaded back into the respective registers and the processor resumes its suspended program

- surya November 26, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Nice one...

- Raj September 23, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. User process called a system call.
2. Disable interrupts.
3. Copy arguments and system call number to registers.
4. Process would be waiting.
5. Context switch.
6. Copies arguments from registers to kernel stack.
7. Re-enable interrupts.
8. Depending on system call number, execute the interrupt service routine. This is obtained from Syscall Dispatch table.
9. Copy the results to registers.
10. Scheduler moves the user process from waiting state to ready state.
11. Context switch.
12. User process gets its results from the registers (From step 9).

- Sam March 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Sorry guyz.. there are some mistakes in the above description.. viewers discretion is expected. I tried my best below:

1. User process called a system call.
2. Disable interrupts.
3. Copy arguments and system call number to registers.
4. Process would be in ready state though not running.
5. Mode switch to Kernel mode.
6. Copies arguments from registers to kernel stack.
7. Re-enable interrupts.
8. Depending on system call number, execute the interrupt service routine. This is obtained from Syscall Dispatch table.
8.a. Depending on the kind of system call the user process might be moved to blocked queue.
9. Copy the results to registers.
9.a. Scheduler might have to move the process from blocked queue to ready queue.
10. Mode switch to User mode.
11. User process gets its results from the registers (From step 9).

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

Is an ISR called only when a system call is encountered..???
What about the hardware interrupts..lyk clock, disk drivers,etc...??

- Enigma June 25, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Sam: The que. says.. what happens in an ISR.. and you r talkin sum other useless stuff.

- Enigma June 25, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Plz don't comment on other user's answer........post it if u have the better one

- Coreman July 10, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

mm

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

• the main program is being executed
• an interrupt (hardware signal) is requested by some external device
• the interrupt is ignored until the current instruction has been completed (up to 174 clocks on 68000)
• instruction pointer is saved in the stack (IPOLD points to the next instruction of main program)
• program status is saved
• IP is loaded with interrupt service routine, ISR, address (interrupt vector)
• ISR is now executed and interrupts are disabled to avoid re-entrancy
• ISR saves program context (CPU registers)
• ISR resets hardware that created interrupt (EOI_REG, external flip-flop, status register of PI/T...)
• ISR services the interrupt (read keyboard, read A/D, write to USART,...)
• ISR restores program context reloading CPU registers
• ISR re-enables interrupts
• return from interrupt restoring IPOLD (RETE)
• the normal program is resumed from the instruction immediately after the last instruction completed before servicing the interrupt.

- Anonymous July 22, 2014 | 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