3 ms·
Do hard real time systems discourage dynamic memory because historically there were no systems that could provide real time guarantees or because of some theore
by adrianN 10y ago
Do hard real time systems discourage dynamic memory because historically there were no systems that could provide real time guarantees or because of some theoretical barriers? I think it's the former.
- openasocket 10y agoThere's other issues. Like the fact that you could run out of memory and allocation fails. Then what do you do? For hard real time systems crashing isn't acceptable, so you have to continue on, but assuming you actually needed that data you tried to allocate that's not going to be easy. So you need to prove your system won't ever allocate too much memory. That's pretty hard to do, and in most cases if you can prove that you can also write your system to use only static allocations.