标签:style http os strong io art
Q: 我能在我的开发板PREEMPT_RT内核的环境上直接运行POSIX的应用, 那用Xenomai3 的理由是什么呢?
A:如果你的应用已经完全是POSIX,并且性能也满足的话,那并没有什么理由用Xenomai3.但是你可能会基于以下两点考虑采用Xenomai3.
- 你想移植遗留的嵌入式应用到Linux上而不用修改API. 比如说,你不想在POSIX接口上重写API, 这时候Xenomai就能发挥它的用场.因为它通过一个共通的实时性来支持多个编程接口,包括传统的RTOS API, Xenomai3也将在基于PREEMPT_RT的系统上支持这些API.
- 你的目标板的性能不足,或/并且你想要你的实时任务给系统追加最小的负载. 这就是双内核机制优于原生的抢占系统的一个地方. 后者的情况下,所有的Linux系统必须执行内部代码(如优先级继承,中断线程化)来防止实时处理被延迟, 但是在双内核系统里, 并没有这种必要,因为实时内核是区别于Linux内核独立执行的,故而,通常的Linux动作并不会对实时动作有影响,它甚至都不需要知道实时内核.
Q: I can run POSIX based applications directly over a PREEMPT_RT kernel on my target system, so what is the point of running Xenomai 3 there?
A: If your application is already fully POSIXish, and the performances requirements are met, then there is likely no point. However, you may want to consider Xenomai 3 in two other situations:
In short, there cannot be any pre-canned answer to such a question: it really depends on your performance requirements, and your target hardware capabilities. This has to be evaluated on a case-by-case basis. Telling the world about "we can achieve X microseconds worst-case latency" without specifying the characteristics of the target platform would make no sense.
Xenomai 3 和 PREEMPT_RT 相比有什么好处,布布扣,bubuko.com
Xenomai 3 和 PREEMPT_RT 相比有什么好处
标签:style http os strong io art
原文地址:http://blog.csdn.net/robertsong2004/article/details/38059725