LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what will happen to tasklet execution if interrupt occurs in between (https://www.linuxquestions.org/questions/linux-newbie-8/what-will-happen-to-tasklet-execution-if-interrupt-occurs-in-between-4175496874/)

theone.prav 03-03-2014 10:57 AM

what will happen to tasklet execution if interrupt occurs in between
 
The things I know about tasklet:

1. Tasklet runs with all interrupt enabled.
2. The tasklet runs in interrupt context.
3. It can't be sleep.
4. It runs in atomic way.
5. It has the assurance to be scheduled never late than next tick.

My questions:

1. Since in bottom half all interrupts are enabled, what happened If a tasklet is running and in between any interrupt comes. (If interrupts are
disabled during tasklet execution then what is the benefit of tasklet)?

2. Why is the surety that tasklet will always be scheduled upto next tick?

3. Is it correct to say that tasklets are softirq with priority level 0(Hi priority tasklet) and priority level 6(Normal taslet)?

anupamsr 03-03-2014 12:19 PM

What is a tasklet? Is it related to any window manager in particular?

theone.prav 03-03-2014 12:26 PM

tasklet is bottom half mechanism to defer the work later in linux.

padeen 03-03-2014 08:23 PM

Quote:

Originally Posted by anupamsr (Post 5128169)
What is a tasklet? Is it related to any window manager in particular?

It's to do with interrupt handling in the kernel. There's plenty of detail on google, here's a brief one: tasklets.


All times are GMT -5. The time now is 12:09 PM.