TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to use Linux as a quasi real time system

3 点作者 FrojoS超过 6 年前
I've heard, that e.g. SpaceX use Linux on many of their flight computers. For instance, what hardware and what software tweeks are used to allow sampling of sensor data with a fixed frequency?

3 条评论

seren超过 6 年前
You can use Linux with the Preempt RT patch or Xenomai, which is using a kind of micro kernel in addition to the Linux Kernel. The downside is you have to rewrite your drivers for Xenomai.<p>I thought that the latter was better in terms of performance but the article below seems to affirm they are not that big. (but it is coming from the Preempt RT side)<p><a href="http:&#x2F;&#x2F;linuxgizmos.com&#x2F;real-time-linux-explained&#x2F;" rel="nofollow">http:&#x2F;&#x2F;linuxgizmos.com&#x2F;real-time-linux-explained&#x2F;</a>
PaulHoule超过 6 年前
The basic tweak is overprovisioning. If the computer is not busy it will get tasks done on time and not freeze up. If it has too much work to do in a time frame than it is not going to get it all done. The one thing it can really do differently is abort a task early when it is clear that that task can&#x27;t be done on time, but then you will get complaints from the people whose tasks are responsible from that task completing.
Jack000超过 6 年前
for PCs you can try the jitter measurement from linuxcnc <a href="http:&#x2F;&#x2F;wiki.linuxcnc.org&#x2F;cgi-bin&#x2F;wiki.pl?Latency-Test" rel="nofollow">http:&#x2F;&#x2F;wiki.linuxcnc.org&#x2F;cgi-bin&#x2F;wiki.pl?Latency-Test</a>