3 ms·
This is built into any operating system. If an application frees up memory, the OS doesn't throw that data out, it just marks it as "can be overwritten" and ens
by Sylos 9y ago
This is built into any operating system. If an application frees up memory, the OS doesn't throw that data out, it just marks it as "can be overwritten" and ensures that it actually can be overwritten without data loss (so, if the data in RAM has been changed, it writes back these changes to the hard drive).
Yes, you can actually manage RAM more efficiently for your application, if you just reserve a whole bunch of it and work inside of that, but at best you'll trick your users into thinking your applications is fast, but it's not actually in the interest of the user. If they wanted to dedicate all RAM to your application, they would not have opened a second application.