Such schemes can be considered a type of block multithreading among the user program thread and the interrupt threads.
这些计划可以被看作是一种类型的块多线程之间的用户程序线程和中断线程。
Almost all interrupt handlers are converted to kernel threads that run in process context.
几乎所有的中断处理程序都被转换为运行在进程中的内核线程。
Whenever any interrupt occurs, these threads will be woken up (wake_up_interruptible) and resume execution based on the interrupt.
不管何时中断被触发,这些线程都会被唤醒(wake_up _ interruptible)并基于中断恢复执行。
two threads (an interrupt and polling thread)
两个线程(中断线程和轮询线程)
You will not need a larger number of threads, since this approach runs on a per-interrupt basis.
并不需要很多线程,因为这种方法是按照每个中断逐一运行的。
With threads, important tasks can be scheduled to take precedence over-and even interrupt-lower-priority tasks.
通过线程,可以优先调度重要任务—甚至中断—低优先级任务。
It ensures mutual exclusion among threads but also interrupt handling code.
可以保证线程与中断服务代码的互斥。
It ensures mutual exclusion among threads but also interrupt handling code.
可以保证线程与中断服务代码的互斥。
应用推荐