当前位置: 技术问答>linux和unix
有高手知道sched_yield是什么意思吗?
来源: 互联网 发布时间:2015-09-21
本文导语: 有高手知道sched_yield是什么意思吗? 送分100:) | http://www-128.ibm.com/developerworks/cn/linux/sdk/rt/part8/index.html | A process can relinquish the processor voluntarily without blocking by ...
有高手知道sched_yield是什么意思吗?
送分100:)
送分100:)
|
http://www-128.ibm.com/developerworks/cn/linux/sdk/rt/part8/index.html
|
A process can relinquish the processor voluntarily without blocking by
calling sched_yield. The process will then be moved to the end of the
queue for its static priority and a new process gets to run.
Note: If the current process is the only process in the highest prior-
ity list at that time, this process will continue to run after a call
to sched_yield.
说的很清楚
就是主动放弃cpu 并排到调度队尾
如果在最高运行优先级队列里只有他一个 就继续运行
calling sched_yield. The process will then be moved to the end of the
queue for its static priority and a new process gets to run.
Note: If the current process is the only process in the highest prior-
ity list at that time, this process will continue to run after a call
to sched_yield.
说的很清楚
就是主动放弃cpu 并排到调度队尾
如果在最高运行优先级队列里只有他一个 就继续运行