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 1 year 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 1 year ago
I hate to alarm you but… What is a file system except dynamically allocated memory. ;)
Redkey@programming.dev 1 year ago
It’s a persistent dynamic memory allocation that’s accessed by multiple processes! :)
bort@feddit.de 1 year ago
multiple processes?!
Image
noli@programming.dev 1 year ago
FreeRTOS tasks are basically processes, IIRC other rtoses have similar mechanics too
frezik@midwest.social 1 year ago
Lots of microcontrollers have multiple cores now.
sunbeam60@lemmy.one 1 year ago
And indeed, with memory mapped files the distinction almost disappears completely.