Can an interrupt handler be preempted?

前端 未结 2 1113
说谎
说谎 2021-01-01 04:26

I know that linux does nested interrupts where one interrupt can \"preempt\" another interrupt, but what about with other tasks.

I am just trying to understand how l

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 04:33

    Simple answer: An interrupt can only be interrupted by interrupts of higher priority.

    Therefore an interrupt can be interrupted by the kernel or a user task if the interrupt's priority is lower than the kernel scheduler interrupt priority or user task interrupt priority.

    Note that by "user task" I mean user-defined interrupt.

提交回复
热议问题