2 ms·
"real time" has nothing to do with raw speed, and even with C/C++ requires custom allocators to get around normal memory code being unpredictable. Real time re
by p_l 7y ago
"real time" has nothing to do with raw speed, and even with C/C++ requires custom allocators to get around normal memory code being unpredictable.
Real time requires predictability, something that was solved in GCs by mid-1990s and had workarounds (which are required in C/C++ as well, and widely used by games etc.) by 1980s - when real-time GC'ed programs started to be used. Including hard-realtime in telephone switches.
- phkahler 7y agoOn smaller real time systems, we simply dont do dynamic memory allocation at all. Everything is global/static, or on the stack. Malloc can never fail if it's not called.