Xenomai在不同域中的优先级问题
2014-07-14 17:26
387 查看
First example: --------------------- Suppose that at a rescheduling we have the following thread in the ready queues - High Priority -> Linux thread H - Medium Priority -> Xenomai thread M in PRIMARY domain - Low Priority -> Xenomai thread L in primary domain Then, the Xenomai scheduler will select M, and M will be dispatched. Second example: -------------------------- - High Priority -> Linux thread H - Medium Priority -> Xenomai thread M in SECONDARY domain - Low Priority -> Xenomai thread L in primary domain
Then, the Xenomai scheduler will select M. but M is in secondary mode, which means the Linux kernel will be scheduled. The Linux scheduler knows H (it's a linux thread), M (it's in secondary mode), and maybe about L (if it has been created by UVMs). The Linux scheduler will choose H, and H will be scheduled.
比如例一,在Xenomai域中的低优先级的线程M(低于Linux域的线程H)会被调度。
例二,如果线程M进入Linux域后,这里比较关键,不是线程L被调度,而是在Linux域中的高优先级线程H被调度。
如果在Xenomai域中有优先级高于线程M的线程Z,那么Z则会被调度。
参考:
http://www.xenomai.org/pipermail/xenomai/2005-December/001881.html
http://www.xenomai.org/pipermail/xenomai/2005-December/001882.html
相关文章推荐
- 浏览器对于CSS不同类中的同属性不同值优先级问题
- android点击事件在不同级别view中的优先级问题
- 路由选路不同路由协议优先级相同疑难问题
- android点击事件在不同级别view中的优先级问题
- android点击事件在不同级别view中的优先级问题
- android点击事件在不同级别view中的优先级问题
- android事件在不同级别view中的优先级问题
- Android对不同DPI的dimen选择优先级问题
- 浏览器对于CSS不同类中的同属性优先级问题
- android点击事件在不同级别view中的优先级问题
- (原创)处理Sql server在不同环境下排序规则不一致的问题(一)
- 不同进程间的共享问题
- 不同Thread中使用相同OledbConnect 实例的问题
- 前缀加一、减一操作符在C/C++中的不同语义问题
- 不同映射模式下的直线输出的效果问题
- 不同单位转换问题
- 优先级翻转问题
- 不同版本数据库的exp/imp问题
- (原创)处理Sql server在不同环境下排序规则不一致的问题(三)
- Asp.net中处理一个站点不同Web应用共享Session的问题