3348| 3
|
关于嵌入式操作系统任务切换的问题。 |
2金钱
最佳答案1.实际使用中,经常用软件模拟IIC和SPI,软件模拟的在通信时需要做临界保护,关中断关调度都行,一般是关中断
2.任务函数是while(1)的循环,当它经过调度器开始运行时,情况1:一个时间片内能执行一遍while(1)里面的所有语句,那就接着从头开始重复执行,直到时间片到了发生调度;情况2:一个时间片内不能执行一遍while(1)里面的所有语句,那么时间片一到马上发生调度。
但是这个调度后,有可能这个任务还是就绪的最高优先 ...
| ||
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
| ||
| ||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-9 07:36
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网