So I want to exhaust the Windows Memory Usage with a malloc and sleep in C progresively.
I wrote this code, but it doesn't seem to exhaust all the memory usage, I don't know what more to do.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char** argv) {
while (1) {
malloc(1024 * 1024);
sleep(1);
}
return 0;
}