This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于sysbios 的 hwi_disable

Other Parts Discussed in Thread: SYSBIOS

看sysbios 的user guide,关于hwi_disable()有点疑问, 发现有些人用它来避免线程切换。

可看文档,hwi_disable()只说disable HWI, 没有说会避免线程切换。

如果有两个task   T1 和 T2,假设T1 优先级低于T2,且TI执行了 hwi_disable() ,是不是就可以避免T1 被 T2 抢占 ,同时也避免了被SWI抢占CPU。

另外SWI_disable 是不是可以避免被task 和 SWI线程抢占,而不能避免被HWI抢占?