项目成本管理/质量管理/人力资源管理重点
2015-10-06 22:30
281 查看
这有些情况下,同步是不需要的:
1.所有的中断处理函数在执行时,irq line是disable的,所以相同的中断不会再次被触发。
2.Interrupt handlers,softirqs,and tasklets are both nonpreemptable and nonblocking,他们不会被挂起很长时间,
最坏情况下,他们只会被slightly delayed,因为会有其它的中断会发生。
3.a kernel control path performing interrupt handling cannot be interrupted by a kernel control path executing
a defferrable function or a system call service routine.
4.softirq 和 tasklet 不会再同一个cpu上被交叉执行,但是softirq可以在多个cpu上同时执行
5.tasklet不能同时在多个cpu上同时被执行
这样的约定使得kernel的设计可以得到简化。
2009/01/31 六
1.所有的中断处理函数在执行时,irq line是disable的,所以相同的中断不会再次被触发。
2.Interrupt handlers,softirqs,and tasklets are both nonpreemptable and nonblocking,他们不会被挂起很长时间,
最坏情况下,他们只会被slightly delayed,因为会有其它的中断会发生。
3.a kernel control path performing interrupt handling cannot be interrupted by a kernel control path executing
a defferrable function or a system call service routine.
4.softirq 和 tasklet 不会再同一个cpu上被交叉执行,但是softirq可以在多个cpu上同时执行
5.tasklet不能同时在多个cpu上同时被执行
这样的约定使得kernel的设计可以得到简化。
2009/01/31 六