2 ms·
Preferably none. Saner APIs like Android will call low memory signals and start swapping out applications both ahead of time and as needed. It also has a relati
by AstralStorm 7y ago
Preferably none. Saner APIs like Android will call low memory signals and start swapping out applications both ahead of time and as needed.
It also has a relatively smart memory manager to detect unexpected vs expected spikes as well as slow leaks.
POSIX has no such API. It was designed in a simple time.
- anticristi 7y agoCan you point to documentation on how Android deals with low-memory situations? My understanding is that: (A) They moved the problem to user-space. (B) Apps are supposed to constantly save the state they care about and expect to be killed whenever Android sees fit (or even at every app switch for developers).