3 Interrupt handling
3 Interrupt handling
3 Interrupt handling
>>
#2. Why polling can not be used in OS?
#3. What is interrupt?
#4. What are irq lines?
Each peripheral can generate interrupt.
So to get that we need many irq lines.
#5. What is ISR?
It is nothing but the interrupt handler.
#6. What is the difference between normal function and interrupot handler in linux
kernel?
Interrupt hander runs in the interrupt context and
Normal function runs in the process context.
#7. Which is the IRQ 0 in linux kernel?
IRQ0 is the TIMER in linux kernel
#8. What is atomic context?
Its is scenario at which atomic instructions are executing.
Atomic instructions which will execute in one go.
That maeans, When atomic instructions are executing we can't preempt that.
We can schedule any other thing just after the completion of the Atomic
instructins.
#9. What is interrupt context?
Whenever linux kernel handling interrupt then we will say that it is in
iterrupt context.
#10. What is top halves and bottom halves?
In Top Halvs we do the time critical things and priorities which needs the
immidiate action.
And the things can be handled later in the button halves.
#11. Why its needed?
#12. What tasks are performed in top halves and bottom halves?
In the top halvs the tasks are performed which cann't be delayed.
ex: Reading the data from the external device and coping it to the local
buffer will be done here.
In the bottom halves those tasks will be performed which can be delayed or
perform later.
ex: Then the above collected data will be processed here according to our
requirement.