[0] https://www.reddit.com/r/IAmA/comments/1853ap/we_are_spacex_...
Linux used to run as a non-privileged process in hard real-time kernel, which taken together was guaranteeing responses in nanoseconds range.
If this is still the case (along with what Wikipedia states) , the whole system is by definition hard real-time.
In any case, SpaceX doesn't use Linux for hard realtime systems.
> They do not have hard realtime requirements
https://lwn.net/Articles/540368/
And I probably wouldn't use the RTLinux for a real hard realtime system if I were making the choice. Putting all of the realtime code in the same memory domain as the rest of the Linux kernel is a huge surface area for corruption. I'd probably use sel4 with a virtualized Linux to get the same semantics.
However on the SpaceX software side I think they’re fairly conservative and “boring”, so I’d guess C and similar guidelines to what you’ve mentioned.
I don’t expect seing rust code in the shuttle, but maybe formal proof with custom functionnal languages...