What happens if a running tasklet is interrupted by a hardware interrupt. I mean if there is a tasklet in the middle of execution and a hardware interrupt happens. Does the tasklet complete its execution before the interrupt code is run, or the tasklet is executed after the interrupt.
Ordinarily a hardware interrupt will be executed immediately. On return, the tasklet will resume execution.
It is possible and even common that a tasklet will disable interrupts during short critical sections while it manipulates shared data structures.
Taskelts can be interrupted by hardware interrupts. See, eg this .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.