linux some basic

Posted on August 12, 2021   1 minute read ∼ Filed in  : 

延缓操作

当中断发生的时候,Linux将其分成了两个部分,handler(top half) 和 deferable task(bottom half)

Handler: cpu和外设之间的交互,获取状态,ack状态,收发数据等

deferable task 用于表示不那么紧急需要处理的事情(后段的数据处理)。推迟执行他们,这要用延缓操作

延缓的方式:

  • 推迟到top half后 => softirq, task let
  • 推迟到a specific timer 后 => softer
  • 推迟到一个线程被调度的时候 => workqueue

TaskLet

内核定时器

workqueue





END OF POST




Tags Cloud


Categories Cloud




It's the niceties that make the difference fate gives us the hand, and we play the cards.