Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How exactly are tasklets scheduled internally?

I know that Tasklets are deferred interrupt handlers are are executed in interrupt context besides they have the highest priority (most certainly above user processes).

However if we have multiple Tasklets with a lot of work to be done, how are these Tasklets scheduled ? What is the order in which they are executed ?

like image 420
Eastern Monk Avatar asked Nov 04 '22 03:11

Eastern Monk


1 Answers

You are asking a very general question about a rather complex topic. (you might also want to specify your kernel version and whether you are using the RT-preempt patch.) I found this page to contain a pretty good description of tasklets.

tasklets

Hope that helps. But I guess the quick answer to "how are they scheduled" is first-come-first-serve within the softirq-tasklet thread.

Michael

like image 77
mwang25 Avatar answered Nov 09 '22 09:11

mwang25