a predefined set of files
…with predefined sizes located in predefined regions of storage.
Comment on Sometimes I want to call malloc, just as a treat
bus_factor@lemmy.world 11 months agoUsing a file system is much less bad than dynamically allocating memory, at least as long as you keep a predefined set of files.
a predefined set of files
…with predefined sizes located in predefined regions of storage.
Yeah, that’s what I was implying, just didn’t want to write a whole novel about it.
troyunrau@lemmy.ca 11 months ago
I hate to alarm you but… What is a file system except dynamically allocated memory. ;)
Redkey@programming.dev 11 months ago
It’s a persistent dynamic memory allocation that’s accessed by multiple processes! :)
bort@feddit.de 11 months ago
multiple processes?!
Image
noli@programming.dev 11 months ago
FreeRTOS tasks are basically processes, IIRC other rtoses have similar mechanics too
frezik@midwest.social 11 months ago
Lots of microcontrollers have multiple cores now.
sunbeam60@lemmy.one 11 months ago
And indeed, with memory mapped files the distinction almost disappears completely.