CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Critical Section
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Critical Section - List
[
uCOS
]
MicroC-OS-III-
DL : 0
UCOS-III中支持了时间片的轮转调度,为了减少关中断的时间, 内核在对临界段的处理上使用了一些方法,比如为防止中断中访问 临界段代码,把中断的事情分两步来做,即中断中把对内核的操作 仅做保存,实际的操作推迟到一个称为OS_IntQTask中完成!这样 就可以在程序中使用禁止调度的方式来处理临界段的代码,也大大 减少了关中断的时间!但这并不意味着这种方法就是最优了,它是在 任务切换的消耗和关中断的时间来平衡的,所以UCOS-III也支持使用 关中断的方法! -UCOS-III in support of a time slice of the round-robin scheduling, in order to reduce the interrupt off time, the kernel in the handling of the critical section using a number of methods, such as to prevent interruption in access to critical sections of the code, to break things in two steps do, that is to interrupt the operation of the kernel to do only save the actual operating postponed to a called OS_IntQTask done! This procedure can be used in a way against scheduling critical sections of code to deal with, but also greatly reduces the time to break off! But this does not mean that this method is optimal, and it is consumed in the task switching and interrupt time off to balance, so UCOS-III also supports the use of off interrupt method!
Date
: 2025-12-19
Size
: 6.78mb
User
:
比斌
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.