3 ms·
Even better question is, if it is this simple, why didn't Microsoft implement their malloc or whatever like this in the first case. If the OS needs to resize th
by avian 4y ago
Even better question is, if it is this simple, why didn't Microsoft implement their malloc or whatever like this in the first case. If the OS needs to resize the page file, why don't they just delay the return of the function until that is done?
I'm guessing the answer is something along the lines of "it makes applications freeze for <amount of time> and users don't like that".
- jraph 4y agoSure, they prefer their applications to just crash :-) Bu yes, the problem is probably not totally simple. adding delay in malloc while application might expect an immediate return could cause bugs. But swapping is a thing anyway and introduces delays so I don't know why they would not do this.
- deleted 4y ago[deleted]