# VxWorks

**VxWorks** 是风河（Wind River）为嵌入式关键任务系统开发的实时操作系统（RTOS），旨在为飞机航电、工业机器人、医疗设备和航天器等设备中的处理器提供确定性、低延迟的性能。它于1987年推出，已成为部署最广泛的实时操作系统之一，运行在超过20亿台设备上<sup>[1](https://www.windriver.com/news/press/news-8961)</sup><sup> • </sup><sup>[2](https://www.carestream.com/en/us/-/media/publicsite/resources/service-and-support-publications/product-security-advisory-urgent-11-v35.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 首次发布 | 1987年，由风河系统公司发布；该公司由杰里·菲德勒（Jerry Fiddler）于1981年在加利福尼亚州伯克利创立<sup>[1](https://www.windriver.com/news/press/news-8961)</sup> |
| 内核 | Wind内核，支持基于优先级的抢占式调度、可选的轮转时间片，以及256个优先级（0最高，255最低）<sup>[3](https://vxworks.net/training/vxworks-rtos-architecture-and-embedded-system-implementation-guide/)</sup> |
| 硬件支持 | Arm、Power Architecture、Intel和RISC-V；32位和64位CPU；支持超过100种板卡<sup>[4](https://www.windriver.com/resource/vxworks-datasheet)</sup> |
| 安全认证 | Cert Edition 携带 DO-178C DAL A、IEC 61508 SIL 3、ISO 26262 ASIL D 和 IEC 62304 Class C 的认证证据，工业和汽车软件包持有 TÜV SÜD 证书<sup>[5](https://www.windriver.com/resource/vxworks-cert-edition-product-overview)</sup> |
| 航电平台 | VxWorks 653，符合 ARINC 653 的分区操作系统，2003年推出，已被350多家客户用于90多种飞机上的550多个项目<sup>[6](https://www.windriver.com/resource/vxworks-653-product-overview)</sup> |
| 航天飞行记录 | NASA 火星探路者号（1997年）及包括好奇号在内的后续火星巡视器的飞行软件，在抗辐射 PowerPC 处理器上运行 VxWorks<sup>[7](https://jacobfilipp.com/DrDobbs/articles/DDJ/1999/9911/9911a/9911as1.htm)</sup><sup> • </sup><sup>[8](https://robotics.jpl.nasa.gov/what-we-do/flight-projects/mars-science-laboratory/surface-system-software-and-rover-navigation/)</sup> |
| 重大安全事件 | URGENT/11（2019年）：IPnet TCP/IP 协议栈中的11个零日漏洞，影响6.5及以后版本，已在 VxWorks 7 SR620 中修复<sup>[9](https://www.cyber.gc.ca/en/alerts/wind-river-vxworks-ipnet-tcpip-stack-vulnerabilities)</sup> |
| 所有权 | 风河于2009年被英特尔收购<sup>[1](https://www.windriver.com/news/press/news-8961)</sup> |

## 起源

风河系统公司由杰里·菲德勒于1981年在加利福尼亚州伯克利的一间车库里创立，菲德勒曾是[劳伦斯伯克利国家实验室](https://www.edgepedia.org/zh/lawrence-berkeley-national-laboratory)的计算机科学家。公司最初是一家实时软件咨询公司，随后于1987年发布了其第一款产品 VxWorks 1.0——一款为嵌入式微处理器设计的操作系统<sup>[1](https://www.windriver.com/news/press/news-8961)</sup><sup> • </sup><sup>[10](https://vxworks.net/news/the-development-history-of-vxworks/)</sup>。风河称1987年的这个版本是首个具备跨计算机网络通信能力的实时操作系统<sup>[11](https://www.windriver.com/node/1154)</sup>。公司于1993年上市，1995年推出 Tornado 开发环境，2009年被英特尔收购<sup>[1](https://www.windriver.com/news/press/news-8961)</sup>。

## 架构与调度

VxWorks 的核心是 Wind 内核，一个为确定性多任务处理而构建的轻量级实时内核。默认调度算法是基于优先级的抢占：只要有更高优先级的任务就绪，内核立即抢占正在运行的低优先级任务。可以启用轮转时间片，使同等优先级的任务共享处理器；程序员也可以显式禁用和重新启用调度器<sup>[3](https://vxworks.net/training/vxworks-rtos-architecture-and-embedded-system-implementation-guide/)</sup><sup> • </sup><sup>[12](https://vxworks.net/app/comparison-of-cpu-scheduling-in-vxworks-and-lynxos/)</sup>。系统支持256个优先级，0为最高，255为最低<sup>[3](https://vxworks.net/training/vxworks-rtos-architecture-and-embedded-system-implementation-guide/)</sup>。

互斥信号量提供 SEM_INVERSION_SAFE 选项，可启用优先级继承：持有资源的任务以被该资源阻塞的最高优先级任务的优先级运行，从而保护其不被中间优先级的任务抢占<sup>[13](https://prex.jlab.org/wiki/images/8/86/Vxworks_programmers_guide5.5.pdf)</sup>。

VxWorks 7 版本围绕模块化架构重组了系统，将核心内核与协议、应用程序及其他软件包分离，因此添加功能和修复缺陷时所需的返工、测试或重新认证工作极少。仅20 KB 的微内核与标准内核共享同一平台，使一个实时操作系统基础可以跨设备类别扩展<sup>[14](https://www.windriver.com/blog/vxworks-7-the-rtos-for-the-internet-of-things-is-here)</sup>。

VxWorks 7 中的应用程序有两种形式：实时进程（RTP），即在自己受保护环境中运行的用户空间可执行程序；以及可下载内核模块（DKM），即具有完整硬件访问权限的内核态应用程序，可以静态链接或在运行时加载<sup>[15](https://www.labs.windriver.com/downloads/wrsdk-vxworks7-docs/Application-Developer-Guide.html)</sup>。

## 航天飞行应用

VxWorks 首次飞行是在 NASA 的[火星探路者](https://www.edgepedia.org/zh/mars-pathfinder)号任务上，该任务于1997年登陆火星；着陆器的飞行软件用 C 语言编写，运行在针对 R6000 计算机适配的 VxWorks 上<sup>[16](https://planetarydata.jpl.nasa.gov/img/data/mpfl-m-imp-2-edr-v1.0/mpim_0001/document/insthost.htm)</sup>。根据风河自己的里程碑列表，VxWorks 是该任务的实时操作系统<sup>[1](https://www.windriver.com/news/press/news-8961)</sup>；自火星探路者号以来，NASA 发射的每一个行星表面巡视器的飞行软件，都是作为 VxWorks 下的抢占式优先级任务，运行在抗辐射 PowerPC 或 POWER 衍生处理器上<sup>[17](https://space-robotics.org/software/flight-software/flight-computers-and-rtos/)</sup>。

**探路者号优先级反转事件**成为实时调度领域广泛讲授的教训。1997年7月，着陆器开始反复自行重启。原因是优先级反转：一个持有共享资源的低优先级任务阻塞了一个高优先级任务，而中等优先级的任务在中间运行。由于出故障的代码所使用的 VxWorks 互斥信号量在创建时没有启用优先级继承选项，反转持续存在并触发了看门狗复位。风河提供了信号量参数的全局变量，因此 JPL 的工程师从地球诊断出故障，在受影响的信号量上启用优先级继承，远程修复了火星上的系统<sup>[7](https://jacobfilipp.com/DrDobbs/articles/DDJ/1999/9911/9911a/9911as1.htm)</sup>。

后续任务延续了这一模式。好奇号巡视器的飞行软件在 VxWorks 下运行于 RAD750 处理器，电机控制由独立的 SPARC 处理器以512 Hz 的速率处理<sup>[8](https://robotics.jpl.nasa.gov/what-we-do/flight-projects/mars-science-laboratory/surface-system-software-and-rover-navigation/)</sup>。洞察号着陆器的飞行软件用 C 和 C++ 编写，运行在 VxWorks 内，部署于冗余的 RAD 750 计算机上，工作频率为115.5 MHz<sup>[18](https://www.jpl.nasa.gov/news/press_kits/insight/landing/mission/spacecraft/)</sup>。

## 安全认证

VxWorks Cert Edition 将标准商用操作系统与面向受监管行业的认证证据打包在一起。它支持机载系统 RTCA DO-178C 和 EUROCAE ED-12C A 级目标、工业功能安全 [IEC 61508](https://www.edgepedia.org/zh/iec-61508) SIL 3、汽车安全 [ISO 26262](https://www.edgepedia.org/zh/iso-26262) ASIL D，以及医疗器械软件 IEC 62304 Class C；独立认证机构 [TÜV SÜD](https://www.edgepedia.org/zh/tuv-sud) 为 IEC 61508 和 ISO 26262 软件包颁发证书<sup>[5](https://www.windriver.com/resource/vxworks-cert-edition-product-overview)</sup>。Cert Edition 包含近900个内核态 API 和420多个用户态 API，全部具有确定性，可在 DO-178C 指南下部署<sup>[5](https://www.windriver.com/resource/vxworks-cert-edition-product-overview)</sup>。风河表示，已有600多个项目通过了包括 DO-178C、IEC 61508、IEC 62304 和 ISO 26262 在内的标准认证<sup>[19](https://www.windriver.com/products/embedded/vxworks)</sup>。

## VxWorks 653 与航电分区

针对综合模块化航电（IMA），风河开发了 VxWorks 653，一个符合 ARINC 653 的运行环境，提供稳健的时间和空间分区，使不同关键级别的应用程序可以共享同一个计算平台。开发始于2002年，平台于2003年推出<sup>[20](https://www.windriver.com/resource/civil-certification-of-multi-core-processing-systems-in-commercial-avionics)</sup><sup> • </sup><sup>[21](https://www.windriver.com/resource/a-security-strategy-for-avionics-systems)</sup>。多核版使用 Type-1 虚拟机监控器来虚拟化未经修改的客户操作系统，两级调度器使模块操作系统上的开销随着分区数量的增长保持恒定<sup>[6](https://www.windriver.com/resource/vxworks-653-product-overview)</sup><sup> • </sup><sup>[22](https://www.windriver.com/sites/default/files/2022-02/422204601.pdf)</sup>。风河报告称，该平台已被350多家客户用于90多种飞机上的550多个项目，包括空客 A400M 和波音787<sup>[6](https://www.windriver.com/resource/vxworks-653-product-overview)</sup>。阿古斯塔韦斯特兰（AgustaWestland）在一架军用直升机上使用 VxWorks 653 实现安全关键的触摸屏显示，并在“零号项目”（Project Zero）——一架无人全电动倾转旋翼飞机——中选用了它<sup>[23](https://www.windriver.com/success-stories/agusta-westland)</sup><sup> • </sup><sup>[19](https://www.windriver.com/products/embedded/vxworks)</sup>。

## 安全记录

2019年，Armis 研究团队披露了 URGENT/11，即 VxWorks 附带的 IPnet TCP/IP 协议栈中的11个零日漏洞。这些漏洞编号为 CVE-2019-12255 至 CVE-2019-12265，影响6.5及以后的所有 VxWorks 版本，包括远程代码执行、拒绝服务和信息泄露等情况；部分漏洞无需用户交互即可触发，TCP 紧急指针漏洞可以触及 NAT 和防火墙后面的设备<sup>[9](https://www.cyber.gc.ca/en/alerts/wind-river-vxworks-ipnet-tcpip-stack-vulnerabilities)</sup><sup> • </sup><sup>[24](https://i.blackhat.com/USA-19/Thursday/us-19-Seri-Critical-Zero-Days-Remotely-Compromise-The-Most-Popular-Real-Time-OS-wp.pdf)</sup>。风河发布了包含修复代码的 VxWorks 7 SR620，加拿大网络安全中心建议采取网络分段和尽量减少设备暴露作为缓解措施<sup>[9](https://www.cyber.gc.ca/en/alerts/wind-river-vxworks-ipnet-tcpip-stack-vulnerabilities)</sup>。6.5之前版本中另一个 DHCP 漏洞 CVE-2021-29998 的 CVSS v3 基础评分为9.8<sup>[25](https://www.cisa.gov/news-events/ics-advisories/icsa-21-194-12)</sup>。

当前版本增加了自身的防御功能：带数字签名镜像的安全启动、带不可执行页和栈保护页的内核加固、支持 [FIPS 140-2](https://www.edgepedia.org/zh/fips-140-2) 的 OpenSSL 3.x、Arm TrustZone 支持，以及一个符合 OCI 的容器引擎——风河称这在实时操作系统中属首创<sup>[4](https://www.windriver.com/resource/vxworks-datasheet)</sup>。

## 当今开发

风河以非商业许可证分发免费的 VxWorks SDK，支持 QEMU 仿真、[树莓派](https://www.edgepedia.org/zh/raspberry-pi) 3B/3B+ 和 4B、UP Squared、恩智浦 i.MX 8M，以及 RISC-V 板卡如 Microchip PolarFire SoC Icicle Kit<sup>[26](https://www.labs.windriver.com/vxworks-sdk/)</sup>。SDK 使用标准 C/C++ 工具链构建 RTP 和 DKM，并通过 wrdbg 命令行界面或 Microsoft VS Code 进行调试<sup>[15](https://www.labs.windriver.com/downloads/wrsdk-vxworks7-docs/Application-Developer-Guide.html)</sup>。数据表列出的现代语言支持包括 C11、C++17 和 [C++20](https://www.edgepedia.org/zh/c-20)、Rust 和 Python，以及 TensorFlow Lite 等 AI 框架和用于确定性通信的[时间敏感网络](https://www.edgepedia.org/zh/time-sensitive-networking)<sup>[4](https://www.windriver.com/resource/vxworks-datasheet)</sup>。

## References

1. [Wind River Celebrates 30 Years of Embedded Innovation, Wind River press release](https://www.windriver.com/news/press/news-8961)
2. [Carestream Product Security Advisory: VxWorks URGENT/11](https://www.carestream.com/en/us/-/media/publicsite/resources/service-and-support-publications/product-security-advisory-urgent-11-v35.pdf)
3. [VxWorks RTOS Architecture and Embedded System Implementation Guide, vxworks.net](https://vxworks.net/training/vxworks-rtos-architecture-and-embedded-system-implementation-guide/)
4. [VxWorks Datasheet, Wind River](https://www.windriver.com/resource/vxworks-datasheet)
5. [VxWorks Cert Edition Product Overview, Wind River](https://www.windriver.com/resource/vxworks-cert-edition-product-overview)
6. [VxWorks 653 Multi-core Edition Product Overview, Wind River](https://www.windriver.com/resource/vxworks-653-product-overview)
7. [Priority Inversion: How We Found It, How We Fixed It, Dr. Dobb's Journal, November 1999](https://jacobfilipp.com/DrDobbs/articles/DDJ/1999/9911/9911a/9911as1.htm)
8. [Surface System Software and Rover Navigation, JPL Robotics](https://robotics.jpl.nasa.gov/what-we-do/flight-projects/mars-science-laboratory/surface-system-software-and-rover-navigation/)
9. [Alert AL19-015: Wind River VxWorks IPnet TCP/IP Stack Vulnerabilities, Canadian Centre for Cyber Security](https://www.cyber.gc.ca/en/alerts/wind-river-vxworks-ipnet-tcpip-stack-vulnerabilities)
10. [The Development History of VxWorks, vxworks.net](https://vxworks.net/news/the-development-history-of-vxworks/)
11. [Wind River company history (Japanese), Wind River](https://www.windriver.com/node/1154)
12. [Comparison of CPU Scheduling in VxWorks and LynxOS, vxworks.net](https://vxworks.net/app/comparison-of-cpu-scheduling-in-vxworks-and-lynxos/)
13. [VxWorks Programmer's Guide 5.5](https://prex.jlab.org/wiki/images/8/86/Vxworks_programmers_guide5.5.pdf)
14. [VxWorks 7: The RTOS for the Internet of Things Is Here, Wind River blog](https://www.windriver.com/blog/vxworks-7-the-rtos-for-the-internet-of-things-is-here)
15. [VxWorks SDK Application Developer Guide, Wind River Labs](https://www.labs.windriver.com/downloads/wrsdk-vxworks7-docs/Application-Developer-Guide.html)
16. [Mars Pathfinder Lander Description, JPL Planetary Data](https://planetarydata.jpl.nasa.gov/img/data/mpfl-m-imp-2-edr-v1.0/mpim_0001/document/insthost.htm)
17. [Flight Computers and Real-Time Operating Systems, Space Robotics](https://space-robotics.org/software/flight-software/flight-computers-and-rtos/)
18. [InSight Landing Press Kit: Spacecraft, JPL](https://www.jpl.nasa.gov/news/press_kits/insight/landing/mission/spacecraft/)
19. [VxWorks RTOS Product Page, Wind River](https://www.windriver.com/products/embedded/vxworks)
20. [Civil Certification of Multi-Core Processing Systems in Commercial Avionics, Wind River](https://www.windriver.com/resource/civil-certification-of-multi-core-processing-systems-in-commercial-avionics)
21. [A Security Strategy for Avionics Systems, Wind River](https://www.windriver.com/resource/a-security-strategy-for-avionics-systems)
22. [Wind River Avionics Electronics Europe 2017 presentation](https://www.windriver.com/sites/default/files/2022-02/422204601.pdf)
23. [AgustaWestland Success Story, Wind River](https://www.windriver.com/success-stories/agusta-westland)
24. [Critical Zero-Days Remotely Compromise the Most Popular Real-Time OS, Armis/Black Hat USA 2019 white paper](https://i.blackhat.com/USA-19/Thursday/us-19-Seri-Critical-Zero-Days-Remotely-Compromise-The-Most-Popular-Real-Time-OS-wp.pdf)
25. [Siemens VxWorks-based Industrial Products (Update C), CISA Advisory ICSA-21-194-12](https://www.cisa.gov/news-events/ics-advisories/icsa-21-194-12)
26. [VxWorks Software Development Kit (SDK), Wind River Labs](https://www.labs.windriver.com/vxworks-sdk/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Embedded & soft processors › Embedded systems › Embedded operating systems and software platforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/vxworks

English original: https://www.edgepedia.org/vxworks
