有高手知道sched_yield是什么意思吗?

springstart 2005-04-14 10:17:23
有高手知道sched_yield是什么意思吗?

送分100:)
...全文
1054 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
gaoxianfeng 2005-04-14
  • 打赏
  • 举报
回复
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 并排到调度队尾
如果在最高运行优先级队列里只有他一个 就继续运行
slone 2005-04-14
  • 打赏
  • 举报
回复
http://www-128.ibm.com/developerworks/cn/linux/sdk/rt/part8/index.html

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧